• 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: libgmalloc on MacBook Pro
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libgmalloc on MacBook Pro


  • Subject: Re: libgmalloc on MacBook Pro
  • From: Jonas Maebe <email@hidden>
  • Date: Fri, 6 Apr 2007 01:47:03 +0200


On 6 apr 2007, at 01:22, Michael Anderson wrote:

It would seem
to me that the guard allocator should catch any errors that would cause
GMmalloc to fail, and should *not* die in GMmalloc. Is this observation
correct?

No. If you write to a random memory location which is not protected by GMalloc, and which happens to contain internal GMalloc state, then you can corrupt GMalloc's internal state in a way that will cause it to crash.


Or is a fault in GMmalloc an indication of a memory bug in my
application?

Yes.

If it is a problem in my application dieing in GMmalloc doesn't
help me debug it.

What you can try is figure out from which address GMalloc loads the invalid pointer value whose dereferencing causes the crash. Chances are that it'll be the same address each time you run your application (unless GMallloc includes address randomization logic). If so, you can try putting a watchpoint on that address to catch all writes to that address, in order to see where in your program you modify the value at that address.



Jonas _______________________________________________ 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
References: 
 >libgmalloc on MacBook Pro (From: "Michael Anderson" <email@hidden>)

  • Prev by Date: libgmalloc on MacBook Pro
  • Next by Date: makefile - xcode - C++ macro error
  • Previous by thread: libgmalloc on MacBook Pro
  • Next by thread: makefile - xcode - C++ macro error
  • Index(es):
    • Date
    • Thread