Re: malloc causing vm_allocate errors
Re: malloc causing vm_allocate errors
- Subject: Re: malloc causing vm_allocate errors
- From: Jonas Maebe <email@hidden>
- Date: Wed, 4 Jul 2007 17:42:46 +0200
On 04 Jul 2007, at 17:23, Omar Awile wrote:
I have a program which uses depending on the input between 1 and 2 gb
(I have only ssh access to the computer so I cannot
access any gui tools and don't know how to get system information in
console).
sw_vers
system_profiler
In general: http://bhami.com/rosetta.html
With the dataset in question this code will allocate about 1.1gb (in
linux, i386 & amd64) without complaining a bit.
Running the same code in darwin results in a ton of identical
messages:
renyi(8200) malloc: *** error: can't allocate region
renyi(8200) malloc: *** set a breakpoint in szone_error to debug
renyi(8200) malloc: *** vm_allocate(size=8421376) failed (error
code=3)
I don't understand why this error happens and what I have to do to get
rid of that error.
It presumably happens because you've exhausted the VM space. This is
pretty strange, since there should be at least about 2.5GB available
(on PPC anyway, but I assome on i386 as well). You can try running
vmmap on your process, and enable malloc debugging (man malloc,
search for "debug").
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden