Grrrr what an idiot...sorry. It was the known problem of Objects as methods...I forgot that and I was running those tests. If I now run all test but those ones, it works perfect.<br><br>Sorry for the noise.<br><br>Mariano<br>
<br><div class="gmail_quote">On Fri, Jul 30, 2010 at 3:20 PM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
HI folks. I am trying to compile and run CogVM in MacOS and it is crashing while running PharoCore 1.2 tests. I opened and saved the image with Cog.<br><br>I then tried to run the tests and it crash while doing that. I attach both .crash and also the output of the console. <br>

<br>I then compile the VM and debug it with GDB. This is what I got.<br><br>GDB console out:<br><br><br>[Session started at 2010-07-30 15:09:18 +0200.]<br>GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar  5 04:43:10 UTC 2010)<br>

Copyright 2004 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>welcome to change it and/or distribute copies of it under certain conditions.<br>Type &quot;show copying&quot; to see the conditions.<br>

There is absolutely no warranty for GDB.  Type &quot;show warranty&quot; for details.<br>This GDB was configured as &quot;x86_64-apple-darwin&quot;.tty /dev/ttys002<br>Loading program into debugger…<br>Program loaded.<br>

run<br>[Switching to process 25049]<br>Running…<br>mprotect(x,y,PROT_READ | PROT_WRITE): Cannot allocate memory<br>mprotect(x,y,PROT_READ | PROT_WRITE): Invalid argument<br>squeak: could not load plugin `MiscPrimitivePlugin&#39;<br>

squeak: could not load plugin `DropPlugin&#39;<br>squeak: could not load plugin `FilePlugin&#39;<br>squeak: could not load plugin `SecurityPlugin&#39;<br>squeak: could not load plugin `BitBltPlugin&#39;<br>squeak: could not load plugin `B2DPlugin&#39;<br>

squeak: could not load plugin `LargeIntegers&#39;<br>squeak: could not load plugin `MacMenubarPlugin&#39;<br>squeak: could not load plugin `InternetConfigPlugin&#39;<br>squeak: could not load plugin `LocalePlugin&#39;<br>

squeak: could not load plugin `UUIDPlugin&#39;<br>squeak: could not load plugin `ZipPlugin&#39;<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br>squeak: could not load plugin `HostWindowPlugin&#39;<br>

squeak: could not load plugin `FloatArrayPlugin&#39;<br>squeak: could not load plugin `FloatArrayPlugin&#39;<br>squeak: could not load plugin `FloatArrayPlugin&#39;<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br>

<br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br>

<br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br>

<br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br>

<br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br><br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br>

<br>(localPrimIndex &gt; 255) &amp;&amp; (localPrimIndex &lt; 520) 15376<br>squeak: could not load plugin `SocketPlugin&#39;<br>squeak: could not load plugin `DSAPrims&#39;<br>Program received signal:  “EXC_BAD_ACCESS”.<br>

sharedlibrary apply-load-rules all<br><br><br><br><br>Then I notice the crash was in externalQuickPrimitiveResponse(void) {<br><br>where it does <br><br>oop = longAt(((longAt(GIV(stackPointer))) + BaseHeaderSize) + ((localPrimIndex - 264) &lt;&lt; ShiftForWord));<br>

<br>I attach screenshot of GDB (sorry, I don&#39;t know a better way to export this).<br><br>Thanks for any hints.<br><font color="#888888"><br><br>Mariano<br><br><br>
</font></blockquote></div><br>