[Vm-dev] Image crashes on launch, how to debug?
Bernhard Pieber
bernhard at pieber.com
Sun Sep 20 12:28:35 UTC 2015
Hi Craig,
Unsurprisingly restart did not help.
Running with lldb did not result in much additional information:
(lldb) r
Process 920 launched: '/Users/bernhard/Documents/Squeak/5.1/CogSpur.r3427.app/Contents/MacOS/Squeak' (i386)
sqAllocateMemorySegmentOfSizeAboveAllocatedSizeInto mmap: Cannot allocate memory
sqAllocateMemory: initial alloc failed!
Process 920 exited with status = 12 (0x0000000c)
In order to start the VM from Xcode I need to check out the oscog branch from SVN first, right?
I found the following instructions:
http://www.mirandabanda.org/cogblog/compiling-the-vm/
Reading this I am in doubt if building will work with Xcode 7.0. What version of Xcode do you build your VMs with?
Cheers,
Bernhard
> Am 20.09.2015 um 13:55 schrieb Bernhard Pieber <bernhard at pieber.com>:
>
> Hi Craig,
>
> I must admit that I never have compiled a VM myself, nor used lldb nor gdb for that matter. However, I do have Xcode 7.0 installed on my machine, so I might try.
>
> In the meantime I found out that if I start the VM from the command line I get the following error:
> sqAllocateMemorySegmentOfSizeAboveAllocatedSizeInto mmap: Cannot allocate memory
> sqAllocateMemory: initial alloc failed!
>
> That is strange. I have 16 GB physical RAM 9 of which are currently used. That should leave plenty for a 2.66 GB image. And as I wrote it used to work fine.
>
> Time for a restart.
>
> Cheers,
> Bernhard
>
>> Am 20.09.2015 um 12:38 schrieb Craig Latta <craig at netjam.org>:
>>
>>
>>
>> Hoi Bernhard--
>>
>>> Any ideas what I could try next?
>>
>> How far did you get with lldb (the Mac OS 10.10 C debugger) or the
>> broader Xcode environment? I would start the system from there, building
>> your own VM with debug symbols in it if necessary, and see what
>> diagnostic information you get.
>>
>>
>> -C
>>
>> --
>> Craig Latta
>> netjam.org
>> +31 6 2757 7177 (SMS ok)
>> + 1 415 287 3547 (no SMS)
>>
>
More information about the Vm-dev
mailing list