Hi Igor,<div><br></div><div>    thanks for this.  Note to self: this is in ~/Squeak/PharoCore-1.2-12261</div><div><br></div><div>BTW, you can try and build the debug VM and use that.  It has asserts built-in that may find the problem earlier.  The mvm script makes a Debug.app by default.</div>
<div><br></div><div>HTH</div><div>Eliot<br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 1:28 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@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>
Hello, Eliot<br>
<br>
today i tried to help and see what is strange (see original message<br>
below).. and followed the instructions, but instead of &#39;strange&#39; i got<br>
VM crash. ;)<br>
<br>
I tried multiple Mac Cog VMs (one built by me, another, built by you),<br>
and both crashing during GC.<br>
<br>
To reproduce, take the latest pharo-core image<br>
(<a href="http://www.pharo-project.org/pharo-download/unstable-core" target="_blank">http://www.pharo-project.org/pharo-download/unstable-core</a>)<br>
Then evaluate following:<br>
<br>
Gofer new<br>
squeaksource: &#39;Seed&#39;;<br>
package: &#39;Seed-HaselBuilder&#39;;<br>
load.<br>
<br>
<br>
Then evaluate<br>
   HaselKernelBuilder new script.<br>
<br>
if next to that you do (if it not crashed already)<br>
<br>
Smalltalk garbageCollect.<br>
<br>
<br>
and VM will crash guaranteed (or become unresponsive).<br>
<br>
I didn&#39;t investigated deeply, but i found that culprit is most probably in<br>
HaselKernelBuilder&gt;&gt;copyClass:<br>
<br>
<br>
<br>
@ Benjamin. You have a mistake in your code (and that i think why it<br>
behaves &#39;strange&#39;)<br>
you setting the class of class to be the instance of &#39;metacopy&#39;<br>
<br>
so, you have<br>
<br>
class copy -&gt; metaclass copy basicNew -&gt; metaclass copy<br>
<br>
(&#39;-&gt;&#39; here means &#39;instance of&#39; )<br>
<br>
while it should be<br>
<br>
class copy -&gt; metaclass copy<br>
<br>
So<br>
<br>
cpy primitiveChangeClassTo: metaCopy basicNew.<br>
<br>
actually should be<br>
<br>
cpy primitiveChangeClassTo: metaCopy.<br>
<br>
<br>
---------- Forwarded message ----------<br>
From: Benjamin &lt;<a href="mailto:benjamin.vanryseghem@gmail.com">benjamin.vanryseghem@gmail.com</a>&gt;<br>
Date: 8 December 2010 17:15<br>
Subject: [Lsehub-staff] Strange behavior<br>
To: RMoD private list &lt;<a href="mailto:lsehub-staff@lists.gforge.inria.fr">lsehub-staff@lists.gforge.inria.fr</a>&gt;<br>
<br>
<br>
Hello guys,<br>
<br>
I&#39;ve a strange error when I&#39;m trying to trace some objects, and even<br>
after spending the whole day on it, I still do not understand why, so<br>
if you have any idea, you&#39;re welcome :)<br>
<br>
<br>
Source :<br>
<br>
Gofer new<br>
squeaksource: &#39;Seed&#39;;<br>
package: &#39;Seed-HaselBuilder&#39;;<br>
load.<br>
<br>
<br>
Method :<br>
<br>
Then open a Transcript and evaluate<br>
<br>
HaselKernelBuilder new script.<br>
tracedObjects := Dictionary new. objects := Dictionary new. object :=<br>
Object. HaselImageBuilder new trace: object in: objects from: nil<br>
tracedObjects: tracedObjects.<br>
<br>
<br>
Thank you in advance,<br>
<br>
<br>
Ben<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
</font></blockquote></div><br></div>