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"><<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>></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 "show copying" to see the conditions.<br>
There is absolutely no warranty for GDB. Type "show warranty" for details.<br>This GDB was configured as "x86_64-apple-darwin".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'<br>
squeak: could not load plugin `DropPlugin'<br>squeak: could not load plugin `FilePlugin'<br>squeak: could not load plugin `SecurityPlugin'<br>squeak: could not load plugin `BitBltPlugin'<br>squeak: could not load plugin `B2DPlugin'<br>
squeak: could not load plugin `LargeIntegers'<br>squeak: could not load plugin `MacMenubarPlugin'<br>squeak: could not load plugin `InternetConfigPlugin'<br>squeak: could not load plugin `LocalePlugin'<br>
squeak: could not load plugin `UUIDPlugin'<br>squeak: could not load plugin `ZipPlugin'<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br>squeak: could not load plugin `HostWindowPlugin'<br>
squeak: could not load plugin `FloatArrayPlugin'<br>squeak: could not load plugin `FloatArrayPlugin'<br>squeak: could not load plugin `FloatArrayPlugin'<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br>
<br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br>
<br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br>
<br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br>
<br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br><br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br>
<br>(localPrimIndex > 255) && (localPrimIndex < 520) 15376<br>squeak: could not load plugin `SocketPlugin'<br>squeak: could not load plugin `DSAPrims'<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) << ShiftForWord));<br>
<br>I attach screenshot of GDB (sorry, I don'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>