Stupid Instruments - how do I get NSZombies?
Stupid Instruments - how do I get NSZombies?
- Subject: Stupid Instruments - how do I get NSZombies?
- From: William Squires <email@hidden>
- Date: Thu, 22 May 2014 17:13:13 -0500
Okay, I've got a command-line app that keeps crashing (EXC_BAD_ACCESS) on [pool drain] (older non-GC, non-ARC code). To me, this means either; 1) an object created with init, new, or copy has somehow ended up in the pool, or 2) an object in the pool was send the release message before the pool got drained. I'm guessing #2.
Is this what NSZombies are for? And if so, how do I get them to tell me what object is getting sent the release message twice? I've checked to make sure "Instrument code" is set to YES, and I went into the target's scheme on the left side and selected the "profile". This brought up a pane on the right, where I set "Build Configuration" to "Debug" and "Instrument" to "Zombies". I then select "Build for Profiling". This succeeds, but does nothing further. If I click the "Run" button, it runs it, but Instruments doesn't launch, and it still crashes on [pool drain]. If I click, and hold down, the "Run" button, I can select "Profile". This runs, and Instruments launches. Unfortunately, now the app no longer crashes, and it uses the "Allocations" instrument instead of the "Zombie" instrument, and I still can't tell what object is being released, and then sent a message... :(
This is all with Xcode 4.2, BTW.
_______________________________________________
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