Re: What could cause this to fail under MallocScribble?
Re: What could cause this to fail under MallocScribble?
- Subject: Re: What could cause this to fail under MallocScribble?
- From: Ken Thomases <email@hidden>
- Date: Tue, 17 Jun 2008 22:27:41 -0500
On Jun 17, 2008, at 4:37 PM, Jens Alfke wrote:
On 17 Jun '08, at 1:23 PM, Sean McBride wrote:
It does? I thought that was the distinction between MallocScribble
and MallocPreScribble.
I did too, until yesterday. I normally run with both on, but in
tracking down this problem I first turned off MallocPreScribble, and
it continued to happen until after I turned off MallocScribble too.
(I've just filed rdar://6016065 on this.)
The malloc man page is slightly out of date with respect to
MallocDebug. If you use the MallocHelp variable to ask MallocDebug to
print out its true, current usage guide, it provides:
$ MallocHelp=1 /usr/bin/true
true(5867) malloc: environment variables that can be set for debug:
- MallocLogFile <f> to create/append messages to file <f> instead of
stderr
- MallocGuardEdges to add 2 guard pages for each large block
- MallocDoNotProtectPrelude to disable protection (when previous flag
set)
- MallocDoNotProtectPostlude to disable protection (when previous flag
set)
- MallocStackLogging to record all stacks. Tools like leaks can then
be applied
- MallocStackLoggingNoCompact to record all stacks. Needed for
malloc_history
- MallocScribble to detect writing on free blocks and missing
initializers:
0x55 is written upon free and 0xaa is written on allocation
- MallocCheckHeapStart <n> to start checking the heap after <n>
operations
- MallocCheckHeapEach <s> to repeat the checking of the heap after <s>
operations
- MallocCheckHeapSleep <t> to sleep <t> seconds on heap corruption
- MallocCheckHeapAbort <b> to abort on heap corruption if <b> is non-
zero
- MallocErrorAbort to abort on a bad malloc or free
- MallocHelp - this help!
As you can see, MallocScribble is accurately described there.
Cheers,
Ken
_______________________________________________
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