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 + 0x18. 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!

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

Accepted New (old) interests…

Leave a comment

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories

Feeds