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"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></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 'strange' 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: 'Seed';<br>
package: 'Seed-HaselBuilder';<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't investigated deeply, but i found that culprit is most probably in<br>
HaselKernelBuilder>>copyClass:<br>
<br>
<br>
<br>
@ Benjamin. You have a mistake in your code (and that i think why it<br>
behaves 'strange')<br>
you setting the class of class to be the instance of 'metacopy'<br>
<br>
so, you have<br>
<br>
class copy -> metaclass copy basicNew -> metaclass copy<br>
<br>
('->' here means 'instance of' )<br>
<br>
while it should be<br>
<br>
class copy -> 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 <<a href="mailto:benjamin.vanryseghem@gmail.com">benjamin.vanryseghem@gmail.com</a>><br>
Date: 8 December 2010 17:15<br>
Subject: [Lsehub-staff] Strange behavior<br>
To: RMoD private list <<a href="mailto:lsehub-staff@lists.gforge.inria.fr">lsehub-staff@lists.gforge.inria.fr</a>><br>
<br>
<br>
Hello guys,<br>
<br>
I've a strange error when I'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're welcome :)<br>
<br>
<br>
Source :<br>
<br>
Gofer new<br>
squeaksource: 'Seed';<br>
package: 'Seed-HaselBuilder';<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>