• 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: GuardMalloc question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GuardMalloc question


  • Subject: Re: GuardMalloc question
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 14 Sep 2006 10:49:57 -0400
  • Organization: Rogue Research

On 2006-09-14 16:25, Arthur C. said:

>I suspect that my program has either a memory leak, or a variable that gets
>released prematurely, or both...
>Now when I run GuardMalloc, after a while I get the following message:
>
>  GuardMalloc[TestGraphs-4113]: free: magic is df7648e4, not deadbeef.
>  GuardMalloc[TestGraphs-4113]: free: pointer probably not from
>  heap, or header has been trashed.
>  GuardMalloc[TestGraphs-4113]: Explicitly trapping into debugger!!!
>
>Does anyone know what this means? What is 'deadbeef', and what kind of
>'magic' is meant here?

0xDEADBEEF is everybody's favourite hex number. :)

How it related to guard malloc is explained in the man page:
<http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/
libgmalloc.3.html>

>And, more importantly, does this give me a clue about the program position
>where the error is?

Well, looks like you're trying to free something that was either
corrupted or never allocated in the first place.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >GuardMalloc question (From: "Arthur C." <email@hidden>)

  • Prev by Date: Re: GuardMalloc question
  • Next by Date: Re: Using Cocoa to detect the presence of an iSight camera
  • Previous by thread: Re: GuardMalloc question
  • Next by thread: Re: GuardMalloc question
  • Index(es):
    • Date
    • Thread