Re: malloc causing vm_allocate errors
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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. I don't understand why this error happens and what I have to do to get rid of that error. Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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) 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"). This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe