How to diagnose EXC_BREAKPOINT (SIGTRAP) crash in iPad iPhone app? - iphone

I am getting a crash with an iPad app that is (at least to me) non-specific. It's an Exception Type: EXC_BREAKPOINT. I am thinking a double memory release or attempting to access a released variable but I hoping someone can shed more light as I hunt through the code. The full crash log is:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000102, 0x31ccebd0
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x0000ab96 CFRelease + 90
1 CoreFoundation 0x0005209e __CFRunLoopTimerDeallocate + 18
2 CoreFoundation 0x0000ac68 _CFRelease + 160
3 CoreFoundation 0x0000ab8e CFRelease + 82
4 CoreFoundation 0x00019130 __CFTypeCollectionRelease + 8
5 CoreFoundation 0x00019962 __CFArrayReleaseValues + 302
6 CoreFoundation 0x0001982c __CFArrayDeallocate + 8
7 CoreFoundation 0x0000ac68 _CFRelease + 160
8 CoreFoundation 0x0000ab8e CFRelease + 82
9 CoreFoundation 0x000279c4 __CFRunLoopRun + 1092
10 CoreFoundation 0x0002748c CFRunLoopRunSpecific + 224
11 CoreFoundation 0x00027394 CFRunLoopRunInMode + 52
12 GraphicsServices 0x000044a4 GSEventRunModal + 108
13 GraphicsServices 0x00004550 GSEventRun + 56
14 UIKit 0x000374ce -[UIApplication _run] + 406
15 UIKit 0x00035148 UIApplicationMain + 664
16 MultipleDetailViews 0x00002ccc main (main.m:55)
17 MultipleDetailViews 0x00002c80 start + 32
Thread 1:
0 libSystem.B.dylib 0x0002d974 kevent + 24
1 libSystem.B.dylib 0x000d7704 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x000d7174 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x000d6b98 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x0007b24a _pthread_wqthread + 258
5 libSystem.B.dylib 0x00073970 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x00001268 mach_msg_trap + 20
1 libSystem.B.dylib 0x00003354 mach_msg + 44
2 CoreFoundation 0x00027e54 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000276de __CFRunLoopRun + 350
4 CoreFoundation 0x0002748c CFRunLoopRunSpecific + 224
5 CoreFoundation 0x00027394 CFRunLoopRunInMode + 52
6 WebCore 0x000060c8 RunWebThread(void*) + 332
7 libSystem.B.dylib 0x0007a886 _pthread_start + 242
8 libSystem.B.dylib 0x0006fa88 thread_start + 0
Thread 3:
0 libSystem.B.dylib 0x00001268 mach_msg_trap + 20
1 libSystem.B.dylib 0x00003354 mach_msg + 44
2 CoreFoundation 0x00027e54 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000276de __CFRunLoopRun + 350
4 CoreFoundation 0x0002748c CFRunLoopRunSpecific + 224
5 CoreFoundation 0x00027394 CFRunLoopRunInMode + 52
6 Foundation 0x0002d5f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x0000b192 -[NSThread main] + 38
8 Foundation 0x00004242 __NSThread__main__ + 966
9 libSystem.B.dylib 0x0007a886 _pthread_start + 242
10 libSystem.B.dylib 0x0006fa88 thread_start + 0
Thread 4:
0 libSystem.B.dylib 0x0002568c select$DARWIN_EXTSN + 20
1 CoreFoundation 0x0005ee72 __CFSocketManager + 582
2 libSystem.B.dylib 0x0007a886 _pthread_start + 242
3 libSystem.B.dylib 0x0006fa88 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x2fdff994 r2: 0x3e56e898 r3: 0x00000118
r4: 0x00000000 r5: 0x001eb094 r6: 0x0000002c r7: 0x2fdfec04
r8: 0x001eb090 r9: 0x001fc098 r10: 0x00000000 r11: 0x00000000
ip: 0x3e58f038 sp: 0x2fdfebfc lr: 0x31d160a5 pc: 0x31cceb96
cpsr: 0x600f0030

I've gotten this error too and fixed it. This person is running OS3 most likely and you are using a code block from OS4 you need to set a weak link on the library so that it can properly load. in your build settings for LLVM -weak_library /usr/lib/libSystem.B.dylib

Related

crash log debugging

one of my app user is getting a wearied crash and he send me the report can any one help me in finding the error. The app is already in use so needed to fix it soon.
He said that he is getting the crash when he is navigating in a particular parten. its not happening when in general but if we go in a particular manner the its crashing.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x65436572
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x3388f5b6 objc_msgSend + 22
1 UIKit 0x3a380ecc __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke_0 + 220
2 UIKit 0x3a1d209e +[UIView(Animation) _performWithoutAnimation:] + 70
3 UIKit 0x3a1d2050 -[UITableView _configureCellForDisplay:forIndexPath:] + 96
4 UIKit 0x3a1cf558 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 432
5 UIKit 0x3a1b4306 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1306
6 UIKit 0x3a1cb7c2 -[UITableView layoutSubviews] + 202
7 UIKit 0x3a1877fe -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
8 QuartzCore 0x397b2d5e -[CALayer layoutSublayers] + 210
9 QuartzCore 0x397b28fc CA::Layer::layout_if_needed(CA::Transaction*) + 456
10 QuartzCore 0x397b3830 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 12
11 QuartzCore 0x397b3216 CA::Context::commit_transaction(CA::Transaction*) + 234
12 QuartzCore 0x397b3024 CA::Transaction::commit() + 312
13 UIKit 0x3a18d8e6 _afterCACommitHandler + 122
14 CoreFoundation 0x329ab6ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
15 CoreFoundation 0x329a99bc __CFRunLoopDoObservers + 272
16 CoreFoundation 0x329a9d12 __CFRunLoopRun + 738
17 CoreFoundation 0x3291ceb8 CFRunLoopRunSpecific + 352
18 CoreFoundation 0x3291cd44 CFRunLoopRunInMode + 100
19 GraphicsServices 0x3a71a2e6 GSEventRunModal + 70
20 UIKit 0x3a1d82f4 UIApplicationMain + 1116
21 APP 0x00103f64 main (main.m:15)
22 APP 0x000fe88c start + 36
Thread 1:
0 libsystem_kernel.dylib 0x31bc4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35004cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x35004a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x350048a0 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x31bb4648 kevent64 + 24
1 libdispatch.dylib 0x34fd54ec _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x34fc7df4 _dispatch_mgr_thread$VARIANT$up + 32
Thread 3:
0 libsystem_kernel.dylib 0x31bc4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35004cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x35004a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x350048a0 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x31bb3eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31bb4048 mach_msg + 36
2 CoreFoundation 0x329ab040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x329a9d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3291ceb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3291cd44 CFRunLoopRunInMode + 100
6 WebCore 0x36c78a40 _ZL12RunWebThreadPv + 440
7 libsystem_c.dylib 0x3500f30e _pthread_start + 306
8 libsystem_c.dylib 0x3500f1d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x31bb3eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31bb4048 mach_msg + 36
2 CoreFoundation 0x329ab040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x329a9d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3291ceb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3291cd44 CFRunLoopRunInMode + 100
6 Foundation 0x3451378a -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x345b7058 -[NSRunLoop(NSRunLoop) run] + 76
8 APP 0x0013ee96 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:127)
9 Foundation 0x345c0678 __NSThread__main__ + 968
10 libsystem_c.dylib 0x3500f30e _pthread_start + 306
11 libsystem_c.dylib 0x3500f1d4 thread_start + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x31bb3eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31bb4048 mach_msg + 36
2 CoreFoundation 0x329ab040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x329a9d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3291ceb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3291cd44 CFRunLoopRunInMode + 100
6 Foundation 0x3453cbc8 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x345c0678 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3500f30e _pthread_start + 306
9 libsystem_c.dylib 0x3500f1d4 thread_start + 4
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x31bc4594 __select + 20
1 CoreFoundation 0x329af1f2 __CFSocketManager + 674
2 libsystem_c.dylib 0x3500f30e _pthread_start + 306
3 libsystem_c.dylib 0x3500f1d4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x31bc4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35004cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x35004a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x350048a0 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x31bc4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35004cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x35004a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x350048a0 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x31bc4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35004cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x35004a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x350048a0 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x2fd029f0 r1: 0x3a60c4ec r2: 0x00000000 r3: 0x6543657a
r4: 0x3a60dbc7 r5: 0x00000001 r6: 0x3a60109d r7: 0x2fd029b0
r8: 0x00000000 r9: 0x0e98313b r10: 0x000002f4 r11: 0x2fd029d0
ip: 0x3c399d64 sp: 0x2fd02908 lr: 0x3a380ed1 pc: 0x3388f5b6
cpsr: 0x00000030
it seems you are using multiThreading for network operations.
in case you calling your thread from UIViewContoller please look at the Deallocation problem:
deallocation problem
search for the paragraph deallocation problem.
thats happens when calling threads from UIViewControoler and navigating before thread finish works.
look at the link for full description of the problem.

Stucking on crashs on device?

I've a question within my App and I don't know how to fix this, because it's the first time of developing IOS Apps for me. The App works fine on Simulator and my Iphone 3gs. But on my Ipod touch it won't work.
So my crash log shows me something like this:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x312f488f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x37632259 objc_exception_throw + 33
2 CoreFoundation 0x312f7a9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x312f6915 ___forwarding___ + 301
4 CoreFoundation 0x31251650 _CF_forwarding_prep_0 + 48
5 CoreFoundation 0x3124e3fd -[NSObject performSelector:withObject:withObject:] + 53
6 UIKit 0x3099ae07 -[UIApplication sendAction:to:from:forEvent:] + 63
7 UIKit 0x3099adc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
8 UIKit 0x3099ada1 -[UIControl sendAction:to:forEvent:] + 45
9 UIKit 0x3099ab11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
10 UIKit 0x3099b449 -[UIControl touchesEnded:withEvent:] + 477
11 UIKit 0x3099992b -[UIWindow _sendTouchesForEvent:] + 319
12 UIKit 0x30999319 -[UIWindow sendEvent:] + 381
13 UIKit 0x3097f695 -[UIApplication sendEvent:] + 357
14 UIKit 0x3097ef3b _UIApplicationHandleEvent + 5827
15 GraphicsServices 0x332c522b PurpleEventCallback + 883
16 CoreFoundation 0x312c8523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
17 CoreFoundation 0x312c84c5 __CFRunLoopDoSource1 + 141
18 CoreFoundation 0x312c7313 __CFRunLoopRun + 1371
19 CoreFoundation 0x3124a4a5 CFRunLoopRunSpecific + 301
20 CoreFoundation 0x3124a36d CFRunLoopRunInMode + 105
21 GraphicsServices 0x332c4439 GSEventRunModal + 137
22 UIKit 0x309adcd5 UIApplicationMain + 1081
23 My App 0x00097045 0x95000 + 8261
24 My App 0x00096078 0x95000 + 4216
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x37f0e32c __pthread_kill + 8
1 libsystem_c.dylib 0x353d9208 pthread_kill + 48
2 libsystem_c.dylib 0x353d2298 abort + 88
3 libc++abi.dylib 0x373a1f64 abort_message + 40
4 libc++abi.dylib 0x3739f346 default_terminate() + 18
5 libobjc.A.dylib 0x37632350 _objc_terminate + 140
6 libc++abi.dylib 0x3739f3be safe_handler_caller(void (*)()) + 70
7 libc++abi.dylib 0x3739f44a std::terminate() + 14
8 libc++abi.dylib 0x373a081e __cxa_rethrow + 82
9 libobjc.A.dylib 0x376322a2 objc_exception_rethrow + 6
10 CoreFoundation 0x3124a506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x3124a366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x332c4432 GSEventRunModal + 130
13 UIKit 0x309adcce UIApplicationMain + 1074
14 My App 0x0009703e 0x95000 + 8254
15 My App 0x00096070 0x95000 + 4208
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x37efe3a8 kevent + 24
1 libdispatch.dylib 0x35b18ea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35b18bc2 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x37efe004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37efe1fa mach_msg + 50
2 CoreFoundation 0x312c83ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x312c7124 __CFRunLoopRun + 876
4 CoreFoundation 0x3124a49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3124a366 CFRunLoopRunInMode + 98
6 WebCore 0x363eec9c RunWebThread(void*) + 396
7 libsystem_c.dylib 0x3539a72e _pthread_start + 314
8 libsystem_c.dylib 0x3539a5e8 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x37f0ecd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x35394f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x35394cc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f22bd98 r6: 0x00000002 r7: 0x2fe93a08
r8: 0x0012eac0 r9: 0x373a2a4a r10: 0x00000000 r11: 0x0e031d60
ip: 0x00000148 sp: 0x2fe939fc lr: 0x353d920f pc: 0x37f0e32c
cpsr: 0x000f0010
And another thing is that some views are loading slowly and it mostly crashes on my Ipod touch 4g (on 3gs it works fine, 4 I don't know, 4s I don't know, 5 I don't know).
Sometimes it shows me on my crash logs the name of my app like this ^, and sometimes it shows me Process:Unknown Type:Unknown. Any suggestions what to do?
And in the Unknown one there's not a crash log it doesnt look like.
Your errors seems to have to deal with device compatibility and some people are facing the same errors like you. Take a look at this https://discussions.apple.com/thread/4317775?start=0&tstart=0

Application crash on device but works fine on iphone simulator

My app worked fine on my device but I have added features and when I test on my device (iphone 4 iOs 4.2.1), it crashes just on launching; But it works fine on simulator.
I have looked for an answer to my question on the web and this forum but I don't find...
Here is the crash report :
Incident Identifier: 7204BFE3-E826-438E-8B3E-78301DE6AA99
CrashReporter Key: 06d77d7d3219de2a9a56c2fa0510b92310e5da62
Hardware Model: iPhone3,1
Process: ColorMixer [1074]
Path: /var/mobile/Applications/AD6EC67E-FCBE-4D02-8EE3-06153233CA2E/ColorMixer.app/ColorMixer
Identifier: ColorMixer
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: punchd [1]
Date/Time: 2011-05-20 00:02:28.738 +0200
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x33bd52d4 __kill + 8
1 libSystem.B.dylib 0x33bd52c4 kill + 4
2 libSystem.B.dylib 0x33bd52b6 raise + 10
3 libSystem.B.dylib 0x33be9d72 abort + 50
4 libstdc++.6.dylib 0x31bdba20 __gnu_cxx::__verbose_terminate_handler() + 376
5 libobjc.A.dylib 0x3347c594 _objc_terminate + 104
6 libstdc++.6.dylib 0x31bd9df2 __cxxabiv1::__terminate(void (*)()) + 46
7 libstdc++.6.dylib 0x31bd9e46 std::terminate() + 10
8 libstdc++.6.dylib 0x31bd9f16 __cxa_throw + 78
9 libobjc.A.dylib 0x3347b4c4 objc_exception_throw + 64
10 CoreFoundation 0x33ac07c2 +[NSException raise:format:arguments:] + 62
11 CoreFoundation 0x33ac07fc +[NSException raise:format:] + 28
12 UIKit 0x3224b77c -[UINib instantiateWithOwner:options:] + 1104
13 UIKit 0x3224cb32 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 86
14 UIKit 0x3209e86a -[UIApplication _loadMainNibFile] + 90
15 Backgrounder.dylib 0x00090b4c 0x8f000 + 6988
16 UIKit 0x3209a1f6 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 174
17 UIKit 0x32066484 -[UIApplication handleEvent:withNewEvent:] + 1108
18 UIKit 0x32065ec2 -[UIApplication sendEvent:] + 38
19 UIKit 0x32065900 _UIApplicationHandleEvent + 5084
20 GraphicsServices 0x33b0eefc PurpleEventCallback + 660
21 CoreFoundation 0x33a556f8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
22 CoreFoundation 0x33a556bc __CFRunLoopDoSource1 + 160
23 CoreFoundation 0x33a47f76 __CFRunLoopRun + 514
24 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
25 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
26 UIKit 0x32099302 -[UIApplication _run] + 374
27 UIKit 0x32096e8c UIApplicationMain + 664
28 ColorMixer 0x00002c70 main (main.m:23)
29 ColorMixer 0x00002c18 start + 32
Thread 1:
0 libSystem.B.dylib 0x33b89974 kevent + 24
1 libSystem.B.dylib 0x33c33704 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x33c33174 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x33c32b98 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x33bd724a _pthread_wqthread + 258
5 libSystem.B.dylib 0x33bcf970 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x33bd79e0 __workq_kernreturn + 8
1 libSystem.B.dylib 0x33bd7364 _pthread_wqthread + 540
2 libSystem.B.dylib 0x33bcf970 start_wqthread + 0
Thread 3:
0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20
1 libSystem.B.dylib 0x33b5f354 mach_msg + 44
2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
6 WebCore 0x304df124 RunWebThread(void*) + 332
7 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
8 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3eaf12e8
r4: 0x00000006 r5: 0x31bd9989 r6: 0x001667ac r7: 0x2fdfe024
r8: 0x3ea4f538 r9: 0x00000065 r10: 0x0015c6b0 r11: 0x00000001
ip: 0x00000025 sp: 0x2fdfe024 lr: 0x33bd52cb pc: 0x33bd52d4
cpsr: 0x00080010
I don't know what I have to do, I don't see references to my code...
Thanks for future help.
See this post to add NSZombieEnabled, that will provide you more infos on the crash.
App crash only on iPhone Device and not in Simulator

App Store build crashes, doesn't on testing on Sim or my own device

I have just released an update for my app to the app store. I tested it within the simulater and my own devices and never had an issue. I have since discovered that the updated version crashes, but only on the iPad and only from the app store
The update has made the app universal.
Any help would be great, i dont wanna effect my reting.
Crash Log below
Incident Identifier: 36D64A4B-25EF-4352-BEFC-DF4409B48048
CrashReporter Key: ca77f364943901ada3da44974f547565326b5b64
Hardware Model: iPad1,1
Process: FuelCost [2659]
Path: /var/mobile/Applications/4A738AC7-C717-46C2-9469-9B8888B6FE10/FuelCost.app/FuelCost
Identifier: FuelCost
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-05-14 16:20:31.338 +0100
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x360ffa1c __pthread_kill + 8
1 libsystem_c.dylib 0x33e093b4 pthread_kill + 52
2 libsystem_c.dylib 0x33e01bf8 abort + 72
3 libstdc++.6.dylib 0x363fca64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x33b2806c _objc_terminate + 104
5 libstdc++.6.dylib 0x363fae36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x363fae8a std::terminate() + 10
7 libstdc++.6.dylib 0x363faf5a __cxa_throw + 78
8 libobjc.A.dylib 0x33b26c84 objc_exception_throw + 64
9 CoreFoundation 0x303c548a +[NSException raise:format:arguments:] + 62
10 CoreFoundation 0x303c54c4 +[NSException raise:format:] + 28
11 UIKit 0x35aa2a4c -[UINib instantiateWithOwner:options:] + 1104
12 UIKit 0x35aa3e02 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 86
13 UIKit 0x358ce4c6 -[UIApplication _loadMainNibFile] + 90
14 UIKit 0x358c8b02 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 174
15 UIKit 0x3589d7d0 -[UIApplication handleEvent:withNewEvent:] + 1108
16 UIKit 0x3589d20e -[UIApplication sendEvent:] + 38
17 UIKit 0x3589cc4c _UIApplicationHandleEvent + 5084
18 GraphicsServices 0x35571e70 PurpleEventCallback + 660
19 CoreFoundation 0x3039ca90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
20 CoreFoundation 0x3039e838 __CFRunLoopDoSource1 + 160
21 CoreFoundation 0x3039f606 __CFRunLoopRun + 514
22 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
23 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
24 UIKit 0x358c7d42 -[UIApplication _run] + 366
25 UIKit 0x358c5800 UIApplicationMain + 664
26 FuelCost 0x000022ee main (main.m:14)
27 FuelCost 0x000022b8 0x1000 + 4792
Thread 1:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3e8a148c r5: 0x00000006 r6: 0x0015bb5c r7: 0x2fdfe068
r8: 0x3f039964 r9: 0x00000065 r10: 0x0014ec40 r11: 0x00000001
ip: 0x00000148 sp: 0x2fdfe05c lr: 0x32d8f3bb pc: 0x32ae2a1c
cpsr: 0x00000010
Binary Images:
There are many things to check here
Make sure that all of your files are included in the target, specifically the Nib files.
Check to make sure you have nibs included for the iPad.
You left out the Binary Images section of the report, but check to make sure these crashing devices aren't jail-broken.
Finally, if you are going to support iPad, I would highly recommend getting a physical one to test on. You could have avoided this otherwise.

ambiguous iPhone crash report

I'm trying to decipher a crash report from an app in the app store; but it isn't very meaningful.
The crash file has been emailed to us, and we have tried symbolicating with the dSYM file from the original app build for the store; but none of the symbols resolve correctly; so we have reverted to using atos and running it over the binary submited to the app store along with the memory addresses in the crash file.
When we resolve the symbols using atos.
Thread 0 Crashed:
0 libSystem.B.dylib 0x33b5d268 0x33b5c000 + 4712
1 libSystem.B.dylib 0x33b5f354 0x33b5c000 + 13140
2 CoreFoundation 0x33a48648 0x33a20000 + 165448
3 CoreFoundation 0x33a47ed2 0x33a20000 + 163538
4 CoreFoundation 0x33a47c80 0x33a20000 + 162944
5 CoreFoundation 0x33a47b88 0x33a20000 + 162696
6 GraphicsServices 0x33b0e4a4 0x33b0a000 + 17572
7 GraphicsServices 0x33b0e550 0x33b0a000 + 17744
8 UIKit 0x32099322 0x32062000 + 226082
9 UIKit 0x32096e8c 0x32062000 + 216716
10 MyApp 0x00002b6c 0x1000 + 7020
11 MyApp 0x00002b20 0x1000 + 6944
After we run atos over the memory addresses: 0x00002b6c & 0x00002b20
atos -o MyApp -arch armv7 0x00002b6c 0x00002b20
and it resolves to the following:
main (in MyApp) (main.m:14)
start (in MyApp) + 32
What could cause an app to crash in start/main ? We don't know the use case here; and are unable to resolve the symbols further up the stack.
Any help would be greatly appreciated.
Cheers
UPDATE: I did manage to symbolicate.
Incident Identifier: xxx
CrashReporter Key: yyy
Hardware Model: iPhone3,1
Process: MyApp [343]
Path: /var/mobile/Applications/1DACD08C-ECFA-4B24-913A-65E8F594AF7F/MyApp.app/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-03-03 10:28:38.346 +1000
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 Crashed:
0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20
1 libSystem.B.dylib 0x33b5f354 mach_msg + 44
2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
6 GraphicsServices 0x33b0e4a4 GSEventRunModal + 108
7 GraphicsServices 0x33b0e550 GSEventRun + 56
8 UIKit 0x32099322 -[UIApplication _run] + 406
9 UIKit 0x32096e8c UIApplicationMain + 664
10 MyApp 0x00002b6c main (main.m:14)
11 MyApp 0x00002b20 start + 32
Thread 1:
0 libSystem.B.dylib 0x33b89974 kevent + 24
1 libSystem.B.dylib 0x33c33704 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x33c33174 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x33c32b98 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x33bd724a _pthread_wqthread + 258
5 libSystem.B.dylib 0x33bcf970 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20
1 libSystem.B.dylib 0x33b5f354 mach_msg + 44
2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
6 WebCore 0x304df124 RunWebThread(void*) + 332
7 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
8 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 3:
0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20
1 libSystem.B.dylib 0x33b5f354 mach_msg + 44
2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
6 Foundation 0x336465f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x33624192 -[NSThread main] + 38
8 Foundation 0x3361d242 __NSThread__main__ + 966
9 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
10 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 4:
0 libSystem.B.dylib 0x33b8168c select$DARWIN_EXTSN + 20
1 CoreFoundation 0x33a7f662 __CFSocketManager + 582
2 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
3 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 5:
0 libSystem.B.dylib 0x33bd3d94 __semwait_signal_nocancel + 24
1 libSystem.B.dylib 0x33bd3944 nanosleep$NOCANCEL + 108
2 libSystem.B.dylib 0x33bcba50 usleep$NOCANCEL + 36
3 libSystem.B.dylib 0x33be9d78 abort + 56
4 libstdc++.6.dylib 0x31bdba20 __gnu_cxx::__verbose_terminate_handler() + 376
5 libobjc.A.dylib 0x3347c594 _objc_terminate + 104
6 libstdc++.6.dylib 0x31bd9df2 __cxxabiv1::__terminate(void (*)()) + 46
7 libstdc++.6.dylib 0x31bd9e46 std::terminate() + 10
8 libstdc++.6.dylib 0x31bd9f16 __cxa_throw + 78
9 libobjc.A.dylib 0x3347b4c4 objc_exception_throw + 64
10 CoreFoundation 0x33ac0304 __NSFastEnumerationMutationHandler + 208
11 libobjc.A.dylib 0x33481486 objc_enumerationMutation + 18
12 MyApp 0x00016a32 -[Library downloadImages] (Library.m:202)
13 Foundation 0x33624192 -[NSThread main] + 38
14 Foundation 0x3361d242 __NSThread__main__ + 966
15 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
16 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 6:
0 libSystem.B.dylib 0x33bd79e0 __workq_kernreturn + 8
1 libSystem.B.dylib 0x33bd7364 _pthread_wqthread + 540
2 libSystem.B.dylib 0x33bcf970 start_wqthread + 0
Thread 7:
0 libSystem.B.dylib 0x33bd79e0 __workq_kernreturn + 8
1 libSystem.B.dylib 0x33bd7364 _pthread_wqthread + 540
2 libSystem.B.dylib 0x33bcf970 start_wqthread + 0
Thread 8:
0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20
1 libSystem.B.dylib 0x33b5f354 mach_msg + 44
2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
6 AudioToolbox 0x316504ba GenericRunLoopThread::RunLoop() + 30
7 AudioToolbox 0x31663306 TRunLoop<AQClient>::Entry(void*) + 90
8 AudioToolbox 0x316501d2 CAPThread::Entry(CAPThread*) + 138
9 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
10 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 9:
0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20
1 libSystem.B.dylib 0x33b5f354 mach_msg + 44
2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350
4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52
6 CFNetwork 0x30cffb24 CFURLConnectionSendSynchronousRequest + 244
7 Foundation 0x336c7cfc +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 76
8 Foundation 0x33665952 -[NSData(NSData) initWithContentsOfURL:] + 134
9 Foundation 0x33665b74 +[NSData(NSData) dataWithContentsOfURL:] + 24
10 MyApp 0x0001448c -[Song retrieveImage] (Song.m:69)
11 MyApp 0x00016a58 -[Library downloadImages] (Library.m:204)
12 Foundation 0x33624192 -[NSThread main] + 38
13 Foundation 0x3361d242 __NSThread__main__ + 966
14 libSystem.B.dylib 0x33bd6886 _pthread_start + 242
15 libSystem.B.dylib 0x33bcba88 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x10004005 r1: 0x07000006 r2: 0x00000000 r3: 0x00000c00
r4: 0x00001303 r5: 0xffffffff r6: 0x00000000 r7: 0x2fdfecf4
r8: 0x00000000 r9: 0x050fc098 r10: 0x00000000 r11: 0xffffffff
ip: 0xffffffe1 sp: 0x2fdfecbc lr: 0x33b5f35b pc: 0x33b5d268
cpsr: 0x600f0010
Did you check some object released, which send message ? My English is not good, I give some example as following.
NSString *aReleasedStr = [[NSString stringWithString:#"test"] release]; //< released
int aIntVal = [aReleasedStr intValue]; ///< crash
I encountered such crash report before, when I send a message with a released object. Maybe you can check such cases.