Solved Re: Debugging a crash in dyld
Solved Re: Debugging a crash in dyld
- Subject: Solved Re: Debugging a crash in dyld
- From: Fritz Anderson <email@hidden>
- Date: Fri, 24 Apr 2009 10:46:53 -0500
I figured it out.
I had gdb generate a log, and from there found my bad-access address
(why didn't the gdb console tell me this?). atos told me it was
NXArgc, _in my binary_. I discovered that #importing <Foundation/
NSDebug.h>, which is in the Simulator SDK, or declaring
NSZombieEnabled extern, causes an access to NXArgc, crashing me at load.
My mistake was in trying to access NSZombieEnabled as a global
variable. Setting it in the executable's environment variables got me
zombies, with no crash.
I'll file a bug against NSDebug.h in the iPhone Simulator SDK.
— F
_______________________________________________
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