• 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: trying to enable NSZombie, gdb can't find OSO file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trying to enable NSZombie, gdb can't find OSO file


  • Subject: Re: trying to enable NSZombie, gdb can't find OSO file
  • From: Bill Bumgarner <email@hidden>
  • Date: Sat, 13 Jun 2009 13:31:06 -0700

On Jun 13, 2009, at 1:25 PM, Martin Wierschin wrote:
I'm trying to set the NSZombieEnabled variable from the debugger, but it fails with a weird error:

	(gdb) set (BOOL)NSZombieEnabled=1
	Could not find OSO file: ""

I've done a clean build, made sure ZeroLink is off, and turned off all stripping. I'm not doing any remote debugging, which is the only thing the archives turns up. This is a simple 10.4 universal binary.

You can't set NSZombieEnabled after a program has started running. You need to set it as an environment variable and restart your app.


You can do this from Xcode's executable inspector's environment variables tab.

Or you can do it in gdb:

set env NSZombieEnabled=1
run

You might also want to enable stack logging:

set env MallocStackLoggingNoCompact=1

Thus, when your zombie is messaged, you can 'info malloc 0xDEADBEEF' (replace the address, obviously) and see where the bugger was allocated.

Or you can also do all of the above in Instruments, using the Zombies template. Though, frankly, Instruments has improved so much since the Leopard release, I'd highly recommend doing your dev work on Snow Leopard, if you have access.

Actually, all of the tools have improved so much, I do all of my dev work in Snow Leopard, booting back to Leopard for final testing / QA prior to release (for the very tiny handful of things I still do on Leopard, anyway :).

b.bum

_______________________________________________

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: trying to enable NSZombie, gdb can't find OSO file
      • From: Nick Zitzmann <email@hidden>
    • Re: trying to enable NSZombie, gdb can't find OSO file
      • From: Martin Wierschin <email@hidden>
References: 
 >trying to enable NSZombie, gdb can't find OSO file (From: Martin Wierschin <email@hidden>)

  • Prev by Date: trying to enable NSZombie, gdb can't find OSO file
  • Next by Date: Re: trying to enable NSZombie, gdb can't find OSO file
  • Previous by thread: trying to enable NSZombie, gdb can't find OSO file
  • Next by thread: Re: trying to enable NSZombie, gdb can't find OSO file
  • Index(es):
    • Date
    • Thread