Could sleep(1) called in thread cause crash? - ios

I have used the HUD in my project. This situation will occur in my application: in main thread it will do a animation, and in the subthread it will call sleep.
I would receive the crash log like this:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xd0000008
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x383d55b0 objc_msgSend + 16
1 UIKit 0x36b7b822 -[UIAnimator stopAnimation:] + 262
2 UIKit 0x36c16252 -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 290
3 UIKit 0x36b7b384 -[UIAnimator(Static) _LCDHeartbeatCallback:] + 48
4 QuartzCore 0x35c7006c CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long) + 156
5 QuartzCore 0x35c6ffc4 CA::Display::IOMFBDisplayLink::callback(__IOMobileFramebuffer*, unsigned long long, unsigned long long, unsigned long long, void*) + 60
6 IOMobileFramebuffer 0x312a6fd4 IOMobileFramebufferVsyncNotifyFunc + 152
7 IOKit 0x312ab446 IODispatchCalloutFromCFMessage + 190
8 CoreFoundation 0x3646d5d8 __CFMachPortPerform + 116
9 CoreFoundation 0x36478170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
10 CoreFoundation 0x36478112 __CFRunLoopDoSource1 + 134
11 CoreFoundation 0x36476f94 __CFRunLoopRun + 1380
12 CoreFoundation 0x363e9eb8 CFRunLoopRunSpecific + 352
13 CoreFoundation 0x363e9d44 CFRunLoopRunInMode + 100
14 GraphicsServices 0x385962e6 GSEventRunModal + 70
15 UIKit 0x36a622fc UIApplicationMain + 1116
16 YH_EMenu 0x000e36c4 main (main.m:14)
17 YH_EMenu 0x000dd6cc start + 36
Thread 1:
0 libsystem_kernel.dylib 0x38503d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x33a27cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x33a27a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x33a278a0 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x384f3648 kevent64 + 24
1 libdispatch.dylib 0x33cc8974 _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x33cc8654 _dispatch_mgr_thread$VARIANT$mp + 32
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x384f2eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x384f3048 mach_msg + 36
2 CoreFoundation 0x36478040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x36476d9e __CFRunLoopRun + 878
4 CoreFoundation 0x363e9eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x363e9d44 CFRunLoopRunInMode + 100
6 WebCore 0x385f9a70 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x33a3230e _pthread_start + 306
8 libsystem_c.dylib 0x33a321d4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x38503d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x33a27cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x33a27a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x33a278a0 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x38503d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x33a27cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x33a27a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x33a278a0 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x385036a4 __semwait_signal + 24
1 libsystem_c.dylib 0x33a373ce nanosleep + 138
2 libsystem_c.dylib 0x33a97de6 sleep + 42
3 YH_EMenu 0x000eb580 -[MainViewController threadENDSHOWHUD:] (MainViewController.m:939)
4 Foundation 0x342ae678 __NSThread__main__ + 968
5 libsystem_c.dylib 0x33a3230e _pthread_start + 306
6 libsystem_c.dylib 0x33a321d4 thread_start + 4
I have no idea to resolve this problem.

Instead try using sleep(1000) for 1sec. Here '1000' represents 1000ms.

Related

iOS 7 crash due to EXC_BAD_ACCESS (SIGSEGV). Can anybody help me to understand the crash report?

I am getting weird crash in my application running in iOS 7 but in iOS 6 app is working fine. I am performing some operations. After 5-6 operations are completed I am experiencing this crash. This number can go till 20 also or 1 also. Attaching crash log with this.
Incident Identifier: 6702CA20-9832-4305-B723-588C6B33C199
CrashReporter Key: 0370a1a51d424d34102c66389c6b00b12585aa57
Hardware Model: iPad2,5
Process: mobile [2958]
Path:
Identifier:
Version: 2.0.0.401
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-06-02 13:35:50.243 +0530
OS Version: iOS 7.0.6 (11B651)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xef264ee9
Triggered by Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3af9eb22 objc_msgSend + 2
1 UIFoundation 0x38384d5e -[NSParagraphStyle _deallocExtraData] + 54
2 UIFoundation 0x383858ca -[NSParagraphStyle dealloc] + 22
3 CoreFoundation 0x3073d650 CFRelease + 552
4 CoreFoundation 0x30749a1e -[__NSDictionaryM dealloc] + 130
5 libobjc.A.dylib 0x3afaeb06 objc_object::sidetable_release(bool) + 170
6 UIKit 0x3304be68 -[UILabel dealloc] + 116
7 UIKit 0x32f80402 -[UIView dealloc] + 362
8 UIKit 0x3305223a -[UIScrollView dealloc] + 830
9 UIKit 0x33051cb4 -[UIScrollView removeFromSuperview] + 60
10 UIKit 0x32f80402 -[UIView dealloc] + 362
11 UIKit 0x33199088 -[_UIModalItemContentView dealloc] + 116
12 UIKit 0x3323d432 -[_UIModalItemAlertContentView dealloc] + 70
13 libobjc.A.dylib 0x3afa0002 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 354
14 CoreFoundation 0x3074097c _CFAutoreleasePoolPop + 12
15 CoreFoundation 0x307d80dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
16 CoreFoundation 0x307d7cf2 __CFRunLoopDoTimer + 778
17 CoreFoundation 0x307d608e __CFRunLoopRun + 1206
18 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
19 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
20 GraphicsServices 0x3543427e GSEventRunModal + 134
21 UIKit 0x32fe4044 UIApplicationMain + 1132
22 mobile 0x0005d2c2 main (main.m:15)
23 libdyld.dylib 0x3b4abab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3b54f83c kevent64 + 24
1 libdispatch.dylib 0x3b490210 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3b48ff96 _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 WebCore 0x3894e266 RunWebThread(void*) + 414
7 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
8 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
9 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2f7c3584 GenericRunLoopThread::Entry(void*) + 124
7 libAVFAudio.dylib 0x2f7b799c CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
9 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
10 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3b562440 __select + 20
1 CoreFoundation 0x307db680 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
3 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
4 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 5 name: GCDAsyncSocket-CFStream
Thread 5:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 Foundation 0x3112e3d6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x3117f30c -[NSRunLoop(NSRunLoop) run] + 76
8 mobile 0x000f6228 +[GCDAsyncSocket cfstreamThread] (GCDAsyncSocket.m:6741)
9 Foundation 0x311f0c82 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
11 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
12 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 Foundation 0x3117b2f2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
7 Foundation 0x311f0c82 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
9 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
10 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30784736 CFRunLoopRun + 94
6 CoreMotion 0x30df7230 ___lldb_unnamed_function1404$$CoreMotion + 724
7 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
8 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
9 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x3b562440 __select + 20
1 ExternalAccessory 0x31119352 -[EAInputStream _readInputFromAccThread] + 342
2 Foundation 0x311f0c82 __NSThread__main__ + 1058
3 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
4 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
5 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0xef264ee9 r1: 0x33566b29 r2: 0x3cf673f0 r3: 0x00000001
r4: 0x160815a0 r5: 0x33566b29 r6: 0x0000002c r7: 0x27dc88ac
r8: 0x160815a4 r9: 0x158af438 r10: 0x14e8846c r11: 0x14e88430
ip: 0x3cf59864 sp: 0x27dc88a0 lr: 0x38384d63 pc: 0x3af9eb22
cpsr: 0x20000030
Your app crashes while a UILabel inside a UIScrollView inside an alert is deallocated. I'd suspect that either your app overwrites memory somewhere and this is just a symptom, or you are using some alert in a non-standard way, possibly changing a paragraph style somewhere in the alert in a way that's wrong.
First step would be to turn all reasonable warnings on in the compiler, use the static analyser to find problems, and fix all of them.

Phonegap On Resume App Crash

Whenever my app is resuming from lock screen in iOS7, it is getting crashed. The problem is coming mostly in iOS7 devices and it is happening only when the screen is getting locked out automatically. When the I unlock the screen and press any html div or button in the app, the app crashes.
I already tried the solution posted here -
Workaround for PhoneGap, EXC_BAD_ACCESS on getDeviceInfo . It doesn't work.
The Crash log is below -
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xbe4008d4
Triggered by Thread: 3
Thread 0:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fcba __CFRunLoopRun + 858
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 GraphicsServices 0x329042e6 GSEventRunModal + 134
7 UIKit 0x3047f840 UIApplicationMain + 1132
8 SkiWithMe 0x0005f646 0x3f000 + 132678
9 libdyld.dylib 0x384ecab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38590838 kevent64 + 24
1 libdispatch.dylib 0x384df0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x384d961e _dispatch_mgr_thread + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 Foundation 0x2e6054bc +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2e67ac32 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 3 name: WebThread
Thread 3 Crashed:
0 WebCore 0x35b08dba WebCore::TimerBase::heapDeleteMin() + 30
1 WebCore 0x35b08ca2 WebCore::ThreadTimers::sharedTimerFiredInternal() + 90
2 WebCore 0x35b08c1e WebCore::timerFired(__CFRunLoopTimer*, void*) + 22
3 CoreFoundation 0x2dc61e7c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
4 CoreFoundation 0x2dc61a96 __CFRunLoopDoTimer + 790
5 CoreFoundation 0x2dc5fe1e __CFRunLoopRun + 1214
6 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
7 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
8 WebCore 0x35b970c0 RunWebThread(void*) + 416
9 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
10 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
11 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2cc395ae GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2cc2dafc CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a07c pthread_cond_timedwait + 40
3 JavaScriptCore 0x2ebee55e WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 102
4 JavaScriptCore 0x2ebee38c JSC::BlockAllocator::blockFreeingThreadMain() + 88
5 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
8 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 6 name: JavaScriptCore::Marking
Thread 6:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a03c pthread_cond_wait + 36
3 JavaScriptCore 0x2ed8caea JSC::GCThread::waitForNextPhase() + 74
4 JavaScriptCore 0x2ed8cb44 JSC::GCThread::gcThreadMain() + 48
5 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
8 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a03c pthread_cond_wait + 36
3 Foundation 0x2e6055ba -[NSCondition wait] + 190
4 SkiWithMe 0x000f3564 0x3f000 + 738660
5 Foundation 0x2e67ac32 __NSThread__main__ + 1058
6 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
8 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 Foundation 0x2e5b8692 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2e6094d4 -[NSRunLoop(NSRunLoop) run] + 76
8 SkiWithMe 0x0011b610 0x3f000 + 902672
9 Foundation 0x2e67ac32 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
11 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
12 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 9 name: WebCore: CFNetwork Loader
Thread 9:
0 libsystem_kernel.dylib 0x38590a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3859087c mach_msg + 36
2 CoreFoundation 0x2dc61554 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dc5fc74 __CFRunLoopRun + 788
4 CoreFoundation 0x2dbca46c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dbca24e CFRunLoopRunInMode + 102
6 WebCore 0x35be00a2 WebCore::runLoaderThread(void*) + 250
7 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 10 name: com.apple.CFSocket.private
Thread 10:
0 libsystem_kernel.dylib 0x385a3440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dc65456 __CFSocketManager + 482
2 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
4 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 11 name: WebCore: LocalStorage
Thread 11:
0 libsystem_kernel.dylib 0x385a2f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x38609262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3860a03c pthread_cond_wait + 36
3 JavaScriptCore 0x2ebee530 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 56
4 WebCore 0x35ccb344 WTF::PassOwnPtr<WTF::Function<void ()> > WTF::MessageQueue<WTF::Function<void ()> >::waitForMessageFilteredWithTimeout<bool (WTF::Function<void ()>*)>(WTF::MessageQueueWaitResult&, bool (&)(WTF::Function<void ()>*), double) + 104
5 WebCore 0x35ccb2ca WebCore::StorageThread::threadEntryPoint() + 162
6 JavaScriptCore 0x2ebeba68 WTF::wtfThreadEntryPoint(void*) + 12
7 libsystem_pthread.dylib 0x38609c5a _pthread_body + 138
8 libsystem_pthread.dylib 0x38609bca _pthread_start + 98
9 libsystem_pthread.dylib 0x38607ccc thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x385a3c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38607e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38607cc0 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x385a3c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38607e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38607cc0 start_wqthread + 4
Thread 14:
0 libsystem_kernel.dylib 0x385a3c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38607e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38607cc0 start_wqthread + 4
Thread 3 crashed with ARM Thread State (32-bit):
r0: 0x800004f8 r1: 0x3e4003e0 r2: 0xbe4008d8 r3: 0x00000040
r4: 0x02b1c3c0 r5: 0x04602e74 r6: 0x04602e74 r7: 0x02d0308c
r8: 0x16dc6528 r9: 0x0f9000f8 r10: 0x00000000 r11: 0x16dc64d0
ip: 0x38940808 sp: 0x02d0307c lr: 0x35b08ca7 pc: 0x35b08dba
cpsr: 0x20000030
i think u have a issue when ur app back in foreground from the background ,so it's happens due to when u r trying to access some data or array on background to foreground.that var or array wont accessible or u defined dynamic value thats why it's cause crashed .

Deciphering a Crash Report - iOS - xCode

I am trying to replicate a bug in my app which is happening for users occasionally. I have the below crash report. Am I right in thinking the app is crashing due to an NSDictionary not having a value for a specific key ? And is there anything else I can deduce from the report ?
Date/Time: 2013-09-19 12:12:54.627 +0800
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_CRASH (SIGTRAP)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x31bbd3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x39a5795e objc_exception_throw + 26
2 CoreFoundation 0x31b0e876 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 130
3 CoreFoundation 0x31b0e732 +[NSDictionary dictionaryWithObject:forKey:] + 46
4 MyApp 0x00103f34 -[WebViewJavascriptBridge _sendData:responseCallback:handlerName:] (WebViewJavascriptBridge.m:95)
5 MyApp 0x00103d2a -[WebViewJavascriptBridge callHandler:data:responseCallback:] (WebViewJavascriptBridge.m:67)
6 MyApp 0x00103cec -[WebViewJavascriptBridge callHandler:data:] (WebViewJavascriptBridge.m:63)
7 MyApp 0x000c3be2 -[ContractViewController updateHTML] (ContractViewController.m:293)
8 MyApp 0x000c2fec -[ContractViewController startEditableContract] (ContractViewController.m:199)
9 MyApp 0x000c2bc2 -[ContractViewController viewDidLoad] (ContractViewController.m:192)
10 UIKit 0x339eb574 -[UIViewController loadViewIfRequired] + 360
11 UIKit 0x33a401f2 -[UIViewController contentScrollView] + 22
12 UIKit 0x33a40138 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
13 UIKit 0x33a4001c -[UINavigationController _layoutViewController:] + 28
14 UIKit 0x33a3ff48 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
15 UIKit 0x33a3f694 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
16 UIKit 0x33a3f57c -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
17 UIKit 0x33a2db56 -[UINavigationController pushViewController:transition:forceImmediate:] + 854
18 UIKit 0x33a2d7f6 -[UINavigationController pushViewController:animated:] + 34
19 MyApp 0x000b91dc -[ExhibitorDetailsViewController contractLoadButton:] (ExhibitorDetailsViewController.m:680)
20 UIKit 0x33ab7082 -[UIApplication sendAction:to:from:forEvent:] + 66
21 UIKit 0x33ab7036 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
22 UIKit 0x33ab7010 -[UIControl sendAction:to:forEvent:] + 40
23 UIKit 0x33ab68c6 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
24 UIKit 0x33ab6db4 -[UIControl touchesEnded:withEvent:] + 484
25 UIKit 0x339df5f4 -[UIWindow _sendTouchesForEvent:] + 520
26 UIKit 0x339cc8dc -[UIApplication sendEvent:] + 376
27 UIKit 0x339cc1ea _UIApplicationHandleEvent + 6194
28 GraphicsServices 0x356c05f2 _PurpleEventCallback + 586
29 GraphicsServices 0x356c0222 PurpleEventCallback + 30
30 CoreFoundation 0x31b923e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
31 CoreFoundation 0x31b92386 __CFRunLoopDoSource1 + 134
32 CoreFoundation 0x31b9120a __CFRunLoopRun + 1378
33 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
34 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
35 GraphicsServices 0x356bf336 GSEventRunModal + 70
36 UIKit 0x33a202b4 UIApplicationMain + 1116
37 MyApp 0x00095e02 main (main.m:15)
38 libdyld.dylib 0x39e84b1c start + 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x39f4a838 __kill + 8
1 MyApp 0x00107ed0 TFHandleExceptions + 988
2 CoreFoundation 0x31bbd6cc __handleUncaughtException + 624
3 libobjc.A.dylib 0x39a57a46 _objc_terminate() + 126
4 libc++abi.dylib 0x394a4118 safe_handler_caller(void (*)()) + 76
5 libc++abi.dylib 0x394a41b0 std::terminate() + 16
6 libc++abi.dylib 0x394a5626 __cxa_rethrow + 90
7 libobjc.A.dylib 0x39a579b0 objc_exception_rethrow + 8
8 CoreFoundation 0x31b0429c CFRunLoopRunSpecific + 452
9 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
10 GraphicsServices 0x356bf336 GSEventRunModal + 70
11 UIKit 0x33a202b4 UIApplicationMain + 1116
12 MyApp 0x00095e02 main (main.m:15)
13 libdyld.dylib 0x39e84b1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x39f3b5d0 kevent64 + 24
1 libdispatch.dylib 0x39e76d22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x39e72374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x39f4b0fc __psynch_mutexwait + 24
1 libsystem_c.dylib 0x39e93e66 pthread_mutex_lock + 390
2 WebCore 0x37aea2b8 _WebTryThreadLock(bool) + 184
3 WebCore 0x37aea1e8 WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 40
4 CoreFoundation 0x31b9293e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
5 CoreFoundation 0x31b90c34 __CFRunLoopDoObservers + 272
6 CoreFoundation 0x31b91076 __CFRunLoopRun + 974
7 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
8 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
9 WebCore 0x37ae8390 RunWebThread(void*) + 440
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x32451888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x324d522c __NSThread__main__ + 968
8 libsystem_c.dylib 0x39ea40de _pthread_start + 306
9 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x324285be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x324cbc40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0011cf4c -[TFNetworkManager networkRunLoopThreadEntry] + 120
9 Foundation 0x324d522c __NSThread__main__ + 968
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x39f4b594 __select + 20
1 CoreFoundation 0x31b96474 __CFSocketManager + 676
2 libsystem_c.dylib 0x39ea40de _pthread_start + 306
3 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 6 name: JavaScriptCore::BlockFree
Thread 6:
0 libsystem_kernel.dylib 0x39f4b08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x39e9cafc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x39e9c870 pthread_cond_timedwait + 40
3 JavaScriptCore 0x35ab5df6 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 102
4 JavaScriptCore 0x35bc8532 JSC::BlockAllocator::blockFreeingThreadMain() + 78
5 JavaScriptCore 0x35bdb030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x39ea40de _pthread_start + 306
7 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 7 name: JavaScriptCore::Marking
Thread 7:
0 libsystem_kernel.dylib 0x39f4b08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x39e9cafc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x39ea6cf8 pthread_cond_wait + 36
3 JavaScriptCore 0x35b5b6dc JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 140
4 JavaScriptCore 0x35b5b620 JSC::MarkStackThreadSharedData::markingThreadMain() + 140
5 JavaScriptCore 0x35bdb030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x39ea40de _pthread_start + 306
7 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x324285be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x324cbc40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0012e308 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] + 120
9 Foundation 0x324d522c __NSThread__main__ + 968
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3ba42fc8
r4: 0xffffffff r5: 0x2fd6c311 r6: 0x2fd6c310 r7: 0x2fd6c9e0
r8: 0x2fd6c340 r9: 0x3ba38898 r10: 0x2fd6c318 r11: 0x00000015
ip: 0x00000025 sp: 0x2fd6c2fc lr: 0x00107ed5 pc: 0x39f4a838
cpsr: 0x00080010
Code which is crashing :
- (void)_sendData:(NSDictionary *)data responseCallback:(WVJBResponseCallback)responseCallback handlerName:(NSString*)handlerName {
NSMutableDictionary* message = [NSMutableDictionary dictionaryWithObject:data forKey:#"data"];
if (responseCallback) {
NSString* callbackId = [NSString stringWithFormat:#"objc_cb_%ld", ++_uniqueId];
_responseCallbacks[callbackId] = [responseCallback copy];
message[#"callbackId"] = callbackId;
}
if (handlerName) {
message[#"handlerName"] = handlerName;
}
[self _queueMessage:message];
}
The crash happens in the file WebViewJavascriptBridge.m in line 95 in the method [WebViewJavascriptBridge _sendData:responseCallback:handlerName:].
That line causes an exception in [__NSPlaceholderDictionary initWithObjects:forKeys:count:]. Since the exception message isn't shown in the crash report, and you don't provide any source code of that place we can only assume what is happening.
One assumption would be, your are creating a dictionary with nil values or keys. But without code or you actually debugging this, this is only an assumption.

What could be the reason for the following iPhone app crash [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
I am using UrbanAirship in my app and it crashes suddenly when using the app and shows the crash report option on app startup, here is the crash log:
Hardware Model: iPhone5,2
Process: OlympusiPhone [5075]
Path: /Users/USER/OlympusiPhone.app/OlympusiPhone
Identifier: com.olympus.app
Version: 16.0
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2013-04-07T11:48:30Z
OS Version: iPhone OS 6.1.2 (10B146)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0xf0000008
Crashed Thread: 28
Thread 0:
0 libsystem_kernel.dylib 0x3a6a9e80 _semaphore_wait_trap + 8
1 SpringBoardServices 0x37a0fc4b _SBSProcessAssertionCreateForPID + 423
2 UIKit 0x343a2d6d -[UIApplication beginBackgroundTaskWithExpirationHandler:] + 69
3 OlympusiPhone 0x00130d1d -[UAAnalytics enterBackground] (UAAnalytics.m:305)
4 CoreFoundation 0x32426349 __CFXNotificationPost + 1421
5 Foundation 0x32d3db7f -[NSNotificationCenter postNotificationName:object:userInfo:] + 71
6 UIKit 0x3436f133 -[UIApplication _handleApplicationSuspend:eventInfo:] + 819
7 UIKit 0x342e52d1 -[UIApplication handleEvent:withNewEvent:] + 2469
8 UIKit 0x342e47ad -[UIApplication sendEvent:] + 73
9 UIKit 0x342e41ef _UIApplicationHandleEvent + 6199
10 GraphicsServices 0x35ffb5f7 _PurpleEventCallback + 591
11 GraphicsServices 0x35ffb227 PurpleEventCallback + 35
12 CoreFoundation 0x324aa3e7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
13 CoreFoundation 0x324aa38b __CFRunLoopDoSource1 + 139
14 CoreFoundation 0x324a920f __CFRunLoopRun + 1383
15 CoreFoundation 0x3241c23d _CFRunLoopRunSpecific + 357
16 CoreFoundation 0x3241c0c9 _CFRunLoopRunInMode + 105
17 GraphicsServices 0x35ffa33b _GSEventRunModal + 75
18 UIKit 0x343382b9 _UIApplicationMain + 1121
19 OlympusiPhone 0x000bae9f main (main.m:32)
Thread 1:
0 libsystem_kernel.dylib 0x3a6aa5d0 _kevent64 + 24
1 libdispatch.dylib 0x3a5e1378 _dispatch_mgr_thread + 36
Thread 2:
0 libsystem_kernel.dylib 0x3a6a9e30 _mach_msg_trap + 20
1 CoreFoundation 0x324aa2bb __CFRunLoopServiceMachPort + 131
2 CoreFoundation 0x324a9031 __CFRunLoopRun + 905
3 CoreFoundation 0x3241c23d _CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3241c0c9 _CFRunLoopRunInMode + 105
5 WebCore 0x3841b395 _ZL12RunWebThreadPv + 445
6 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 3:
0 libsystem_kernel.dylib 0x3a6a9e30 _mach_msg_trap + 20
1 CoreFoundation 0x324aa2bb __CFRunLoopServiceMachPort + 131
2 CoreFoundation 0x324a9031 __CFRunLoopRun + 905
3 CoreFoundation 0x3241c23d _CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3241c0c9 _CFRunLoopRunInMode + 105
5 Foundation 0x32d6988d +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6 Foundation 0x32ded231 __NSThread__main__ + 973
7 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 4:
0 libsystem_kernel.dylib 0x3a6a9e30 _mach_msg_trap + 20
1 CoreFoundation 0x324aa2bb __CFRunLoopServiceMachPort + 131
2 CoreFoundation 0x324a9031 __CFRunLoopRun + 905
3 CoreFoundation 0x3241c23d _CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3247ac4b _CFRunLoopRun + 99
5 OlympusiPhone 0x0011d303 +[UA_ASIHTTPRequest runRequests] (UA_ASIHTTPRequest.m:4795)
6 Foundation 0x32ded231 __NSThread__main__ + 973
7 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 5:
0 libsystem_kernel.dylib 0x3a6ba08c ___psynch_cvwait + 24
1 libsystem_c.dylib 0x3a60b875 _pthread_cond_timedwait + 45
2 JavaScriptCore 0x363f0dfb __ZN3WTF15ThreadCondition9timedWaitERNS_5MutexEd + 107
3 JavaScriptCore 0x36503537 JSC::BlockAllocator::blockFreeingThreadMain() + 83
4 JavaScriptCore 0x36516033 _ZN3WTFL19wtfThreadEntryPointEPv + 15
5 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 6:
0 libsystem_kernel.dylib 0x3a6ba08c ___psynch_cvwait + 24
1 libsystem_c.dylib 0x3a615cfd _pthread_cond_wait + 41
2 JavaScriptCore 0x364966e1 JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 145
3 JavaScriptCore 0x36496625 JSC::MarkStackThreadSharedData::markingThreadMain() + 145
4 JavaScriptCore 0x36516033 _ZN3WTFL19wtfThreadEntryPointEPv + 15
5 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 7:
0 libsystem_kernel.dylib 0x3a6ba594 ___select + 20
1 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 8:
0 libsystem_kernel.dylib 0x3a6a9e30 _mach_msg_trap + 20
1 CoreFoundation 0x324aa2bb __CFRunLoopServiceMachPort + 131
2 CoreFoundation 0x324a9031 __CFRunLoopRun + 905
3 CoreFoundation 0x3241c23d _CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3241c0c9 _CFRunLoopRunInMode + 105
5 WebCore 0x384b5cd1 _ZN7WebCoreL15runLoaderThreadEPv + 145
6 JavaScriptCore 0x36516033 _ZN3WTFL19wtfThreadEntryPointEPv + 15
7 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 9:
0 libsystem_kernel.dylib 0x3a6a9e30 _mach_msg_trap + 20
1 CoreFoundation 0x324aa2bb __CFRunLoopServiceMachPort + 131
2 CoreFoundation 0x324a9031 __CFRunLoopRun + 905
3 CoreFoundation 0x3241c23d _CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3241c0c9 _CFRunLoopRunInMode + 105
5 AudioToolbox 0x31efc90b GenericRunLoopThread::Entry(void*) + 139
6 AudioToolbox 0x31edd9f5 CAPThread::Entry(CAPThread*) + 297
7 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 10:
0 libsystem_kernel.dylib 0x3a6ba08c ___psynch_cvwait + 24
1 libsystem_c.dylib 0x3a615cfd _pthread_cond_wait + 41
2 JavaScriptCore 0x363f0dcd __ZN3WTF15ThreadCondition9timedWaitERNS_5MutexEd + 61
3 WebCore 0x3862fe81 WTF::PassOwnPtr<WebCore::StorageTask> WTF::MessageQueue<WebCore::StorageTask>::waitForMessageFilteredWithTimeout<bool ()(WebCore::StorageTask*)>(WTF::MessageQueueWaitResult&, bool (&)(WebCore::StorageTask*), double) + 57
4 WebCore 0x3862fe35 WebCore::StorageThread::threadEntryPoint() + 125
5 JavaScriptCore 0x36516033 _ZN3WTFL19wtfThreadEntryPointEPv + 15
6 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 11:
0 libsystem_kernel.dylib 0x3a6ba08c ___psynch_cvwait + 24
1 libsystem_c.dylib 0x3a615cfd _pthread_cond_wait + 41
2 CoreMedia 0x32a027c9 _FigSemaphoreWaitRelative + 269
3 MediaToolbox 0x334f494f fpa_AsyncMovieControlThread + 55
4 CoreMedia 0x32a2088b figThreadMain + 195
5 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 12:
0 libsystem_kernel.dylib 0x3a6ba08c ___psynch_cvwait + 24
1 libsystem_c.dylib 0x3a615cfd _pthread_cond_wait + 41
2 CoreMedia 0x32a027c9 _FigSemaphoreWaitRelative + 269
3 MediaToolbox 0x334f494f fpa_AsyncMovieControlThread + 55
4 CoreMedia 0x32a2088b figThreadMain + 195
5 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 13:
0 libsystem_kernel.dylib 0x3a6a9e30 _mach_msg_trap + 20
1 MediaToolbox 0x334fab81 FigExpressNotificationThread + 101
2 CoreMedia 0x32a2088b figThreadMain + 195
3 libsystem_c.dylib 0x3a6130e1 _pthread_start + 309
Thread 14:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 15:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 16:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 17:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 18:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 19:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 20:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 21:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 22:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 23:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 24:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 25:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 26:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 27:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 28 Crashed:
0 libobjc.A.dylib 0x3a1c15d0 _objc_msgSend + 16
1 OlympusiPhone 0x001345c3 -[UASQLite executeUpdate:] (UASQLite.m:299)
2 OlympusiPhone 0x001369af __45-[UAAnalyticsDBManager addEvent:withSession:]_block_invoke_0 (UAAnalyticsDBManager.m:108)
3 libdispatch.dylib 0x3a5e0793 _dispatch_call_block_and_release + 11
4 libdispatch.dylib 0x3a5e3b3b _dispatch_queue_drain + 143
5 libdispatch.dylib 0x3a5e167d _dispatch_queue_invoke + 45
6 libdispatch.dylib 0x3a5e4613 _dispatch_root_queue_drain + 211
7 libdispatch.dylib 0x3a5e47d9 _dispatch_worker_thread2 + 93
8 libsystem_c.dylib 0x3a6087f1 _pthread_wqthread + 361
Thread 29:
0 libsystem_kernel.dylib 0x3a6bad98 ___workq_kernreturn + 8
1 libsystem_c.dylib 0x3a6087f6 _pthread_wqthread + 366
Thread 28 crashed with ARM Thread State:
r0: 0x1d8aee90 r1: 0x37f89fb0 r2: 0x3a83a4c0 r3: 0x1cd33cd0
r4: 0xf0000000 r5: 0x00000004 r6: 0x1d8aee90 r7: 0x08b0eec8
r8: 0x1cd33cd0 r9: 0x0dfe27ec r10: 0x00000004 r11: 0x1cdc2e50
ip: 0x3a813718 sp: 0x08b0ee88 lr: 0x3241fbfd pc: 0x3a1c15d0
cpsr: 0x20000030
What could be the reason for this crash?
Thanks
The issue was with v1.3.6 of the UrbanAirship library.
Urban Airship also does Analytics, although I wasn't using it, but UrbanAirship was storing events in their database and that code was causing the crash.
To resolve, use the library v1.3.7+.
To use, remove the old references and add the new ones.
Hope this helps.

iOS App crashed on NSURLConnection with log, but i cannot repeat, help me

I cannot repeat the crash, but submit the app to apple, always with the same crash log. Please help me to analyze what's the problem. detail crash log are give below. Thanks a lot!
The apple test team tips that:
This occurred when your app was used:
- On Wi-Fi
- On cellular network
Date/Time: 2013-02-01 11:32:40.293 -0800
OS Version: iOS 6.1 (10B143)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00760040
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ??? 0x00760040 0 + 7733312
1 ProtocolBuffer 0x3866d1b6 -[PBRequester connectionDidFinishLoading:] + 1042
2 Foundation 0x33bb7912 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 14
3 Foundation 0x33af7764 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 196
4 Foundation 0x33af7680 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
5 CFNetwork 0x32f5864c ___delegate_didFinishLoading_block_invoke_0 + 24
6 CFNetwork 0x32f57d30 ___withDelegateAsync_block_invoke_0 + 52
7 CFNetwork 0x32f80010 ___performAsync_block_invoke_068 + 16
8 CoreFoundation 0x331c1aca CFArrayApplyFunction + 174
9 CFNetwork 0x32f8046e RunloopBlockContext::perform() + 70
10 CFNetwork 0x32ee445e MultiplexerSource::perform() + 186
11 CoreFoundation 0x332508f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
12 CoreFoundation 0x33250158 __CFRunLoopDoSources0 + 208
13 CoreFoundation 0x3324ef2a __CFRunLoopRun + 642
14 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
15 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
16 GraphicsServices 0x36da0336 GSEventRunModal + 70
17 UIKit 0x350de2b4 UIApplicationMain + 1116
18 Maoye 0x00003ca2 0x1000 + 11426
19 Maoye 0x00003c5c 0x1000 + 11356
Thread 1:
0 libsystem_kernel.dylib 0x3b460d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b3aead6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b3ae7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x3b4505d0 kevent64 + 24
1 libdispatch.dylib 0x3b38bd22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3b387374 _dispatch_mgr_thread + 32
Thread 3:
0 libsystem_kernel.dylib 0x3b460d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b3aead6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b3ae7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x3b44fe30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b44ffd0 mach_msg + 48
2 CoreFoundation 0x332502b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3324f02c __CFRunLoopRun + 900
4 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
6 WebCore 0x391c1390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
8 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 5 name: Dispatch queue: URLConnection
Thread 5:
0 libsystem_kernel.dylib 0x3b4505d0 kevent64 + 24
1 libdispatch.dylib 0x3b38b94e _dispatch_update_kq + 178
2 libdispatch.dylib 0x3b38734c _dispatch_mgr_wakeup + 40
3 libdispatch.dylib 0x3b3899a8 _dispatch_wakeup + 20
4 libdispatch.dylib 0x3b389938 _dispatch_queue_push_list_slow2 + 16
5 libdispatch.dylib 0x3b389afa _dispatch_queue_drain + 78
6 libdispatch.dylib 0x3b387678 _dispatch_queue_invoke + 40
7 libdispatch.dylib 0x3b38a610 _dispatch_root_queue_drain + 208
8 libdispatch.dylib 0x3b38a7d4 _dispatch_worker_thread2 + 88
9 libsystem_c.dylib 0x3b3ae7ee _pthread_wqthread + 358
10 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x3b44fe30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b44ffd0 mach_msg + 48
2 CoreFoundation 0x332502b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3324f02c __CFRunLoopRun + 900
4 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
6 Foundation 0x33ae65be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Maoye 0x0003aab2 0x1000 + 236210
8 Maoye 0x0007fbc8 0x1000 + 519112
9 Maoye 0x00034958 0x1000 + 211288
10 Maoye 0x00036656 0x1000 + 218710
11 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
12 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 7 name: com.apple.NSURLConnectionLoader
Thread 7:
0 libsystem_kernel.dylib 0x3b44fe30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b44ffd0 mach_msg + 48
2 CoreFoundation 0x332502b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3324f02c __CFRunLoopRun + 900
4 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
6 Foundation 0x33b0f888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x33b9322c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
9 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x3b460d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b3aead6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b3ae7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x3b45f2cc __connect + 8
1 Maoye 0x00027b7a 0x1000 + 158586
2 Maoye 0x00029e0a 0x1000 + 167434
3 Maoye 0x00029db8 0x1000 + 167352
4 Maoye 0x000078da 0x1000 + 26842
5 Maoye 0x00009bd6 0x1000 + 35798
6 Maoye 0x0003408e 0x1000 + 209038
7 Maoye 0x00036656 0x1000 + 218710
8 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
9 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x3b4606a4 __semwait_signal + 24
1 libsystem_c.dylib 0x3b3be1be nanosleep + 138
2 libsystem_c.dylib 0x3b41ee4e sleep + 42
3 Maoye 0x0001e190 0x1000 + 119184
4 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
5 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 11 name: com.apple.CFSocket.private
Thread 11:
0 libsystem_kernel.dylib 0x3b460594 __select + 20
1 CoreFoundation 0x33254474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
3 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000001 r1: 0x01090350 r2: 0x00760041 r3: 0x00000007
r4: 0x38d2fa5e r5: 0x01090350 r6: 0x00000001 r7: 0x2fdfed0c
r8: 0x01090340 r9: 0x0109b240 r10: 0x0026b5d4 r11: 0x0109b0f0
ip: 0x3cf1b7f0 sp: 0x2fdfece8 lr: 0x0003b439 pc: 0x00760040
cpsr: 0x200f0030
I guess your crash is in the method connectionDidFinishLoading. As crash is in Thread 0 ,the starting two lines give description about the crash. This is what I know from my friend who is a tester.
1 ProtocolBuffer 0x3866d1b6 -[PBRequester connectionDidFinishLoading:] + 1042

Resources