Autorelease crash?

March 16, 2010 at 12:43 pm Leave a comment

These days I got a strange crash report. The application was crashing at: libobjc.A.dylib!objc_msgSend + 0×18. It is from an object being released manually before it’s autoreleased.
Call stack would not help me, cannot reproduce the crash either…better, it crashed, but not deterministically.

You got it too? Now try the following:

  • add the following environment variables to executable arguments:
    • NSDebugEnabled: YES
    • NSZombieEnabled: YES
    • NSAutoreleaseFreedObjectCheckEnabled: YES
  • run the application, try to run every scenario, start with most used features.

Got it? Fix it!

Advertisement

Entry filed under: Developement. Tags: , , , .

Accepted New (old) interests…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Twit or not to twit?

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

Categories

Recent Posts

Feeds


Follow

Get every new post delivered to your Inbox.