Search code examples
iosobjective-ccrashcrash-reportssymbolicatecrash

Crash from __mh_execute_header


I did an update to my app which is live since last yesterday and now some of my users seeing this crash. Normally I get at least an idea of what is causing the crash by reading the stack Trace, but this time I have no idea. I am also not very experienced in reading crash logs. This one is from Flurry and it s the only hint I have.

Does anyone has a tip what might cause the problem? What can I do to fix the crash? How to find out what is going wrong?

I am thankful for every little hint !

Full Stack Trace:
0   AppName                             0x10012e670 __mh_execute_header + 878192
1   StoreKit                            0x18997c9c0 <redacted> + 568
2   libdispatch.dylib                   0x1972e5994 <redacted> + 24
3   libdispatch.dylib                   0x1972e5954 <redacted> + 16
4   libdispatch.dylib                   0x1972ea20c __dispatch_main_queue_callback_4CF + 1608
5   CoreFoundation                      0x184f53544 <redacted> + 12
6   CoreFoundation                      0x184f515ec <redacted> + 1492
7   CoreFoundation                      0x184e7cf74 _CFRunLoopRunSpecific + 396
8   GraphicsServices                    0x18e8d76fc _GSEventRunModal + 168
9   UIKit                               0x189a7ed94 _UIApplicationMain + 1488
10  AppName                             0x100131254 __mh_execute_header + 889428
11  libdyld.dylib                       0x197312a08 <redacted> + 4

EDIT

also found this in Flurry

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0x10

Solution

  • Line 0 in this backtrace has a generic symbol (__mh_execute_header) and a huge function offset, which just means your crash report is not symbolicated so it doesn't know a name to use.

    See this technical note:

    https://developer.apple.com/library/ios/technotes/tn2151/_index.html

    Look under Symbolication for how to symbolicate the report using the .dSYM file you (hopefully) kept when you built the app for distribution.