Re: Guard Malloc crashes...
Re: Guard Malloc crashes...
- Subject: Re: Guard Malloc crashes...
- From: Jerry <email@hidden>
- Date: Sat, 22 Sep 2007 14:12:22 +0100
On 21 Sep 2007, at 14:37, Sean McBride wrote:
On 9/20/07 4:08 PM, Eric Albert said:
On Sep 20, 2007, at 7:11 AM, Sean McBride wrote:
On 9/19/07 3:21 PM, Shawn Erickson said:
I am attempting to use Guard Malloc (enabled via Xcode menu
option) to
*SNIP*
(will enable malloc history shortly and see how that goes)
That will exacerbate your problem I'm afraid:
<http://www.cocoadev.com/index.pl?MallocStackLogging>
Generally not, actually. Most of the time MallocStackLogging works
fine for most people.
That has not been my experience. And of course, there is nothing like
debugging memory problems with a tool that causes new problems. :)
In any case, though I didn't quote it, Shawn explicitly said he has
"an
application that makes heavy use of threads" and "at least two threads
attempting to 'new' memory". In my experience, those conditions make
the MallocStackLogging bug likely. In Shawn's case, I think
MallocStackLogging really will exacerbate his problems.
Yes, I've run foul of the MallocStackLogging bug several times and
IMHO it's best avoided.
Guard malloc will cause a crash if you do a lot of allocations
because you'll run out of virtual address space due to Guard Malloc
allocating a VM page for every allocation. This makes it of little
use with large applications.
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden