[Vm-dev] Re: Problems with a COG crash

Mariano Martinez Peck marianopeck at gmail.com
Fri Jul 30 14:23:18 UTC 2010


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.

Sorry for the noise.

Mariano

On Fri, Jul 30, 2010 at 3:20 PM, Mariano Martinez Peck <
marianopeck at gmail.com> wrote:

> 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.
>
> I then tried to run the tests and it crash while doing that. I attach both
> .crash and also the output of the console.
>
> I then compile the VM and debug it with GDB. This is what I got.
>
> GDB console out:
>
>
> [Session started at 2010-07-30 15:09:18 +0200.]
> GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar  5 04:43:10 UTC
> 2010)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys002
> Loading program into debugger…
> Program loaded.
> run
> [Switching to process 25049]
> Running…
> mprotect(x,y,PROT_READ | PROT_WRITE): Cannot allocate memory
> mprotect(x,y,PROT_READ | PROT_WRITE): Invalid argument
> squeak: could not load plugin `MiscPrimitivePlugin'
> squeak: could not load plugin `DropPlugin'
> squeak: could not load plugin `FilePlugin'
> squeak: could not load plugin `SecurityPlugin'
> squeak: could not load plugin `BitBltPlugin'
> squeak: could not load plugin `B2DPlugin'
> squeak: could not load plugin `LargeIntegers'
> squeak: could not load plugin `MacMenubarPlugin'
> squeak: could not load plugin `InternetConfigPlugin'
> squeak: could not load plugin `LocalePlugin'
> squeak: could not load plugin `UUIDPlugin'
> squeak: could not load plugin `ZipPlugin'
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
> squeak: could not load plugin `HostWindowPlugin'
> squeak: could not load plugin `FloatArrayPlugin'
> squeak: could not load plugin `FloatArrayPlugin'
> squeak: could not load plugin `FloatArrayPlugin'
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
>
> (localPrimIndex > 255) && (localPrimIndex < 520) 15376
> squeak: could not load plugin `SocketPlugin'
> squeak: could not load plugin `DSAPrims'
> Program received signal:  “EXC_BAD_ACCESS”.
> sharedlibrary apply-load-rules all
>
>
>
>
> Then I notice the crash was in externalQuickPrimitiveResponse(void) {
>
> where it does
>
> oop = longAt(((longAt(GIV(stackPointer))) + BaseHeaderSize) +
> ((localPrimIndex - 264) << ShiftForWord));
>
> I attach screenshot of GDB (sorry, I don't know a better way to export
> this).
>
> Thanks for any hints.
>
>
> Mariano
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100730/4ece1ba4/attachment.htm


More information about the Vm-dev mailing list