• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What could cause this to fail under MallocScribble?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: What could cause this to fail under MallocScribble?
      • From: "Sean McBride" <email@hidden>
References: 
 >What could cause this to fail under MallocScribble? (From: Jens Alfke <email@hidden>)
 >Re: What could cause this to fail under MallocScribble? (From: Fritz Anderson <email@hidden>)
 >Re: What could cause this to fail under MallocScribble? (From: Jens Alfke <email@hidden>)
 >Re: What could cause this to fail under MallocScribble? (From: "Sean McBride" <email@hidden>)
 >Re: What could cause this to fail under MallocScribble? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Equivalent to xcconfig conditionals available?
  • Next by Date: IB: Font type (localize) problem
  • Previous by thread: Re: What could cause this to fail under MallocScribble?
  • Next by thread: Re: What could cause this to fail under MallocScribble?
  • Index(es):
    • Date
    • Thread