My iPhone app crashed and I got the following stack trace from Crashlytics (iPhone 5C, iOS 7.1.1). It continues on for 500+ lines and I don't see anything that references my code anywhere. Is there any way I can debug this?
Crashed: com.apple.root.default-priority EXC_BAD_ACCESS KERN_PROTECTION_FAILURE at 0x04fccfe0
- libsystem_c.dylib __vfprintf + 29
- libsystem_c.dylib __v2printf + 374
- libsystem_c.dylib __v2printf + 374
- libsystem_c.dylib _vsnprintf + 348
- libsystem_c.dylib vsnprintf + 72
- libsystem_c.dylib __snprintf_chk + 22
- Foundation _writeJSONNumber + 1040
- Foundation _writeJSONValue + 452
- Foundation ___writeJSONArray_block_invoke + 100
- CoreFoundation__53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 90
- CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 232
- Foundation _writeJSONArray + 236
- Foundation _writeJSONValue + 504
- Foundation ___writeJSONArray_block_invoke + 100
- CoreFoundation __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 90
- CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 232
- Foundation _writeJSONArray + 236
- Foundation _writeJSONValue + 504
- Foundation ___writeJSONArray_block_invoke + 100
- CoreFoundation __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 90
- CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 232
- Foundation _writeJSONArray + 236
- Foundation _writeJSONValue + 504
- Foundation ___writeJSONArray_block_invoke + 100
- CoreFoundation __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 90
- CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 232
...
Code Block. Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000. This indicates that your app crash because it tried to referenced NULL. Code Block.
EXC_BREAKPOINT (SIGTRAP) and EXC_BAD_INSTRUCTION (SIGILL)The breakpoint exception type indicates a trace trap interrupted the process. A trace trap gives an attached debugger the chance to interrupt the process at a specific point in its execution. On ARM processors, this appears as EXC_BREAKPOINT (SIGTRAP).
This is a crash due to stack overflow, see the recurring sequences:
Foundation _writeJSONArray + 236
Foundation _writeJSONValue + 504
Foundation ___writeJSONArray_block_invoke + 100
CoreFoundation __53-[__NSArrayM enumerateObjectsWithOptions:usingBlock:]_block_invoke + 90
CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 232
Looks like you are somewhere writing an array into a JSON structure and your code ends up in an endless loop.
Your own code isn't shown in the stack trace, since the stack trace got too large (stack overflow) and those frames got pushed out of the history.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With