<div dir="ltr">Hi Max,<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 24, 2014 at 7:29 AM, Max Leske <span dir="ltr">&lt;<a href="mailto:maxleske@gmail.com" target="_blank">maxleske@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi<br>
<br>
I have a rather strange problem with rehasing that occurred simultaneously multiple times on the same day but not since. Luckily I’ve saved an image with the debugger in it. The mean thing is: that doesn’t help me at all because from what I can tell either the Debugger is broken or there’s a VM problem.<br></blockquote><div><br></div><div>I&#39;m interested in taking a look at that image...  (and I&#39;m relieved you saw it on both the Cog and the Interpreter VMs ;-) )</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Note:<br>
The image is a Pharo 1.3 image. The problem occurred on two different VMs independently, an NBCog VM (Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-EstebanLorenzano.166] 21.0) and a Squeak VM (Squeak3.10.2 of &#39;5 June 2008&#39; [latest update: #7179]).<br>
The operation during which this happened was the loading of an ImageSegment (in both instances).<br>
<br>
<br>
Here’s what happened. I got a SubscriptOutOfBounds error during rehashing of a Dictionary. When I look at the debugger it’s clear why the exception got signaled but not how that situation could ever happen.<br>
<br>
These are the top three contexts on the stack:<br>
<br>
Array(Object)&gt;&gt;errorSubscriptBounds:<br>
Array(Object)&gt;&gt;at:put:<br>
CBConfiguration(Dictionary)&gt;&gt;noCheckAdd:<br>
<br>
This is the #noCheckAdd: method”<br>
<br>
noCheckAdd: anObject<br>
        &quot;Must be defined separately for Dictionary because (self findElementOrNil:) expects a key, not an association.  9/7/96 tk&quot;<br>
<br>
        array at: (self findElementOrNil: anObject key) put: anObject.<br>
        tally := tally + 1<br>
<br>
and here’s #at:put: where the exception is signaled:<br>
<br>
at: index put: value<br>
        &lt;primitive: 61&gt;<br>
        index isInteger ifTrue:<br>
                [self class isVariable<br>
                        ifTrue: [(index &gt;= 1 and: [index &lt;= self size])<br>
                                        ifTrue: [self errorImproperStore]<br>
                                        ifFalse: [self errorSubscriptBounds: index]] &lt;——— signaled<br>
                        ifFalse: [self errorNotIndexable]].<br>
        index isNumber<br>
                ifTrue: [^self at: index asInteger put: value]<br>
                ifFalse: [self errorNonIntegerIndex]<br>
<br>
Here’s the weird thing: according to the debugger ‘array&#39; in #noCheckAdd: IS NOT THE SAME INSTANCE as ‘self’ in #at:put:!!!!!! ????????? When I look at the pointers to both arrays, the correct one is pointed to by the dictionary while the other is only being referenced by the exception context:<br>
<br>
Bad array:<br>
1: SubscriptOutOfBounds: 88<br>
2: Array(Object)&gt;&gt;errorSubscriptBounds:<br>
3: Array(Object&gt;&gt;at:put:<br>
4: an Inspector<br>
…<br>
<br>
Good array:<br>
1: aCBConfiguration(size 107)<br>
<br>
<br>
I really have no clue how this could have happened. I’d appreciate any thoughts you might have…<br>
<br>
Cheers,<br>
Max</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>