The problem is that the runtime has discovered that the autorelease pool data structure is corrupt.
This is probably a memory error somewhere. It is not necessarily a bug in the code in the stack trace, though it may be a bug in the code nearby, or a bug in the code running simultaneously on other threads.
In your case magic
is correct (it should be 0xa1a1a1a1 "AUTORELEASE!"), which means pthread
is wrong. Either a memory error mangled that value, or an autorelease pool is being used on the wrong thread somehow.