site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Sometimes I see messages like: malloc: *** mmap(size=16883712) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug /usr/include/sys/errno.h : #define ENOMEM 12 /* Cannot allocate memory */ I'd give vmmap a try and look for a VM fragmentation issue. Eric _______________________________________________ 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... On May 9, 2008, at 4:16 PM, Sean McBride wrote: I'm trying to find more details about this message. Specifically, what is error code 12? In my case, it is a 32 bit process using 60 MB of 'real memory' and 1.2 GB of 'virtual memory' (says Activity Monitor). For a mmap() the "real" (aka resident) memory is unlikely to be relevant. I'm trying to determine if 1) the process' virtual memory is just really fragmented and it really can't allocate 16.8 MB, or 2) I have some kind of memory smasher or other bug. This email sent to site_archiver@lists.apple.com