• 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
Over-release caused by Instruments?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Over-release caused by Instruments?


  • Subject: Over-release caused by Instruments?
  • From: Dave Keck <email@hidden>
  • Date: Mon, 1 Nov 2010 17:40:19 -0400

Hey list,

I'm testing some highly multi-threaded code and am encountering an
over-release bug, but I'm unable to reproduce it except when running
the program via the 'Allocations' instrument. What's more troubling is
that within Instruments, the retain/release history for the object is
incoherent. Specifically, the history reports that a single CFRelease
reduced the retain count of the object by 2 rather than 1; had it only
reduced the retain count by 1, the object wouldn't be over-released.
Here's a screenshot of the object's history:

    http://imgur.com/1WRTa.png

After many attempts I've been unable to reproduce the problem outside
of Instruments, and I've tried various combinations of
NSZombieEnabled, CFZombieLevel, and Guard Malloc. I'm not sure how to
explain the incoherent object history in the screenshot; is it
possible that Instruments is responsible for the over-release?

Thanks!

David
 _______________________________________________
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: Over-release caused by Instruments?
      • From: Bill Bumgarner <email@hidden>
    • Re: Over-release caused by Instruments?
      • From: Scott Ribe <email@hidden>
  • Prev by Date: NS_FORMAT_FUNCTION for user defined functions
  • Next by Date: Re: Over-release caused by Instruments?
  • Previous by thread: NS_FORMAT_FUNCTION for user defined functions
  • Next by thread: Re: Over-release caused by Instruments?
  • Index(es):
    • Date
    • Thread