• 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: Help tracking down a dangling pointer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help tracking down a dangling pointer?


  • Subject: Re: Help tracking down a dangling pointer?
  • From: Greg Parker <email@hidden>
  • Date: Thu, 10 Jun 2010 10:41:37 -0700

On Jun 10, 2010, at 9:00 AM, Sixten Otto wrote:
> It seems like what's happening is that there's some object someplace
> that's holding an unretained pointer to my entity, and trying to use
> it after it's gone. But the stack trace doesn't tell me much of
> anything (and I confess that I really don't grok assembly).

If you suspect a use-after-free bug somewhere, and NSZombie doesn't find it, then try this:
1. Verify that NSZombie is operating. Add `[[[[NSMutableString alloc] init] release] release]` to your code. Make sure NSZombie catches it.
2. If NSZombie doesn't help, try Guard Malloc. It's slow, but catches errors that NSZombie does not catch.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Help tracking down a dangling pointer?
      • From: Sixten Otto <email@hidden>
References: 
 >Help tracking down a dangling pointer? (From: Sixten Otto <email@hidden>)

  • Prev by Date: dataWithPDFInsideRect and NSPrintOperation
  • Next by Date: Re: home-rolled notification center... I think?
  • Previous by thread: Help tracking down a dangling pointer?
  • Next by thread: Re: Help tracking down a dangling pointer?
  • Index(es):
    • Date
    • Thread