ios - How to find where the app is crashing? -
below logs:
crashed: com.apple.main-thread exc_bad_access kern_invalid_address @ 0x0000000c 0 libobjc.a.dylib objc_msgsend + 5 respondstoselector: 1 corelocation (null) + 23946 2 corelocation (null) + 5230 3 corelocation (null) + 972 4 corefoundation __cfrunloop_is_calling_out_to_a_block__ + 12 5 corefoundation __cfrunloopdoblocks + 216 6 corefoundation __cfrunlooprun + 1714 7 corefoundation cfrunlooprunspecific + 476 8 corefoundation cfrunloopruninmode + 106 9 graphicsservices gseventrunmodal + 136 10 uikit uiapplicationmain + 1440 11 wines main.m line 40 main
on mac can find backtrace of crashes in console app under user diagnostic reports.
there can find crash file. since crash happens in custom code, sending fishy values.
you cannot tell crash happening, since backtrace stripped out. either try compile code debug symbols, or use dtrace/dtruss debug app.
the objc_msgsend standard function of objective-c.
read also:
- objc_msgsend @ ridiculousfish
- gcc/objc/objc-act.c @ opensource apple
Comments
Post a Comment