Crash while integrating Brad Larson's GPUImage - ios

Im trying to integrate Brad Larson's GPUImage framework to my project. The sample code works fine. After I've intergrated, it builds fine but Im facing crash while running it. It crashes at AVCaptureVideoDataOutputSampleBufferDelegate method,
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;
Particularly at
runOnMainQueueWithoutDeadlocking block. I tried to find out the crash area but couldn't find it even after some few hours of time on seeing the crash log too. I didnt get any idea about the crash. Below is the crash log of Im getting on it. Can some one point me out the issue in it? I also have a doubt that, can I use to continue the queue in name com.sunsetlakesoftware.GPUImage.processingQueue?
Date/Time: 2012-06-19 17:46:28.449 +0530
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xb00566c0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x344faf78 objc_msgSend + 16
1 GPUTest 0x0017d16a __74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke_0118 (GPUImageVideoCamera.m:415)
2 libdispatch.dylib 0x35b03b24 _dispatch_barrier_sync_f_slow_invoke + 72
3 libdispatch.dylib 0x35b02e8a _dispatch_main_queue_callback_4CF$VARIANT$up + 190
4 CoreFoundation 0x3247d2a6 __CFRunLoopRun + 1262
5 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
6 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
7 GraphicsServices 0x31557432 GSEventRunModal + 130
8 UIKit 0x31effcce UIApplicationMain + 1074
9 GPUTest 0x000b0714 main (main.m:10)
10 GPUTest 0x000b06cc start + 32
Thread 1 name: Dispatch queue: com.sunsetlakesoftware.GPUImage.processingQueue
Thread 1:
0 libsystem_kernel.dylib 0x35b4b054 semaphore_wait_trap + 8
1 libdispatch.dylib 0x35b0447e _dispatch_thread_semaphore_wait$VARIANT$up + 6
2 libdispatch.dylib 0x35b0265e _dispatch_barrier_sync_f_slow + 82
3 libdispatch.dylib 0x35b025dc dispatch_barrier_sync_f$VARIANT$up + 16
4 libdispatch.dylib 0x35b02238 dispatch_sync_f$VARIANT$up + 12
5 libdispatch.dylib 0x35b028ee _dispatch_sync_slow + 46
6 libdispatch.dylib 0x35b028ae dispatch_sync$VARIANT$up + 18
7 GPUTest 0x00172796 runOnMainQueueWithoutDeadlocking (GPUImageOutput.m:13)
8 GPUTest 0x0017d0a6 -[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] (GPUImageVideoCamera.m:414)
9 AVFoundation 0x32dd0244 __74-[AVCaptureVideoDataOutput _AVCaptureVideoDataOutput_VideoDataBecameReady]_block_invoke_0 + 220
10 libdispatch.dylib 0x35af7c52 _dispatch_call_block_and_release + 6
11 libdispatch.dylib 0x35b02ca4 _dispatch_queue_drain + 268
12 libdispatch.dylib 0x35b02b12 _dispatch_queue_invoke$VARIANT$up + 30
13 libdispatch.dylib 0x35b03784 _dispatch_worker_thread2 + 208
14 libsystem_c.dylib 0x30d40df4 _pthread_wqthread + 288
15 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 3 name: Dispatch queue: com.apple.libdispatch-manager
Thread 3:
0 libsystem_kernel.dylib 0x35b4b3a8 kevent + 24
1 libdispatch.dylib 0x35b03ea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35b03bc2 _dispatch_mgr_thread + 30
Thread 4:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x35b4b004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35b4b1fa mach_msg + 50
2 CoreFoundation 0x3247e3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x3247d124 __CFRunLoopRun + 876
4 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
6 WebCore 0x35c1dc9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x30d4672e _pthread_start + 314
8 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 7 name: com.apple.coremedia.player.async
Thread 7:
0 libsystem_kernel.dylib 0x35b5b068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x30d46a46 _pthread_cond_wait + 634
2 libsystem_c.dylib 0x30d467c2 pthread_cond_wait + 34
3 CoreMedia 0x32ec3868 FigSemaphoreWaitRelative + 268
4 MediaToolbox 0x309fb3e6 fpa_AsyncMovieControlThread + 22
5 CoreMedia 0x32ee28b4 figThreadMain + 168
6 libsystem_c.dylib 0x30d4672e _pthread_start + 314
7 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00541c20 r1: 0x00190b4f r2: 0x0056f240 r3: 0x00190b4f
r4: 0xb00566b8 r5: 0x00000000 r6: 0x00000000 r7: 0x2feace34
r8: 0x2feace4c r9: 0x000642d3 r10: 0x2feace4c r11: 0x3e47dde0
ip: 0x3f3c22c8 sp: 0x2feace24 lr: 0x0017d171 pc: 0x344faf78
cpsr: 0x20000030

Finally, I found the solution. I just replaced the compiler flag of the AppDelegate in target's compile sources which is set for the purpose of ARC.
i.e. I removed the -fno-objc-arc flag and replaced it by -fobjc-arc flag for the AppDelegate class which caused the crash.

Related

iOS Crash log - no application code

We are getting a crash on a device, with a weird crash log that does not contain any of our application's code in it. Any idea what could be causing this?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000e0000010
Triggered by Thread: 5
Thread 0:
0 libsystem_kernel.dylib 0x3a773a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a773849 mach_msg + 37
2 CoreFoundation 0x2f5c6625 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2f5c4d8b __CFRunLoopRun + 859
4 CoreFoundation 0x2f52f765 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2f52f547 CFRunLoopRunInMode + 103
6 GraphicsServices 0x344666cf GSEventRunModal + 135
7 UIKit 0x31e8e88d UIApplicationMain + 1133
8 MyApp 0x0002ae4b main (main.m:15)
9 MyApp 0x0001ff44 start + 36
Thread 1:
0 libsystem_kernel.dylib 0x3a773804 kevent64 + 24
1 libdispatch.dylib 0x3a6c2051 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x3a6bc2df _dispatch_mgr_thread + 35
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x3a773a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a773849 mach_msg + 37
2 CoreFoundation 0x2f5c6625 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2f5c4d45 __CFRunLoopRun + 789
4 CoreFoundation 0x2f52f765 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2f52f547 CFRunLoopRunInMode + 103
6 Foundation 0x2ff6f23d +[NSURLConnection(Loader) _resourceLoadLoop:] + 317
7 Foundation 0x2ffe4a0b __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3a7ed957 _pthread_body + 139
9 libsystem_pthread.dylib 0x3a7ed8c7 _pthread_start + 99
10 libsystem_pthread.dylib 0x3a7ebae4 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3a786c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a7ebc1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x3a7ebad8 start_wqthread + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3a786434 __select + 20
1 CoreFoundation 0x2f5ca51f __CFSocketManager + 483
2 libsystem_pthread.dylib 0x3a7ed957 _pthread_body + 139
3 libsystem_pthread.dylib 0x3a7ed8c7 _pthread_start + 99
4 libsystem_pthread.dylib 0x3a7ebae4 thread_start + 4
Thread 5 Crashed:
0 libobjc.A.dylib 0x3a1e066b objc_release + 11
1 libobjc.A.dylib 0x3a1e10cf (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 355
2 libobjc.A.dylib 0x3a1e1b49 (anonymous namespace)::AutoreleasePoolPage::tls_dealloc(void*) + 37
3 libsystem_pthread.dylib 0x3a7ec6cf _pthread_tsd_cleanup + 163
4 libsystem_pthread.dylib 0x3a7ec44f _pthread_exit + 83
5 libsystem_pthread.dylib 0x3a7ed1b5 pthread_exit + 25
6 Foundation 0x2ff386ff +[NSThread exit] + 7
7 Foundation 0x2ffe4a29 __NSThread__main__ + 1089
8 libsystem_pthread.dylib 0x3a7ed957 _pthread_body + 139
9 libsystem_pthread.dylib 0x3a7ed8c7 _pthread_start + 99
10 libsystem_pthread.dylib 0x3a7ebae4 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3a786c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a7ebc1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x3a7ebad8 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x3a786c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a7ebc1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x3a7ebad8 start_wqthread + 4
Thread 5 crashed with ARM Thread State (32-bit):
r0: 0x156ba550 r1: 0xe0000000 r2: 0x00000001 r3: 0x15b9d028
r4: 0x15b9d000 r5: 0x0679d0a4 r6: 0xa3a3a3a3 r7: 0x0679cd5c
r8: 0x15b9d028 r9: 0x9a001683 r10: 0x00000000 r11: 0x3c473a30
ip: 0x3a96f7b0 sp: 0x0679cb2c lr: 0x3a1e10d3 pc: 0x3a1e066a
cpsr: 0x20000030
We ran a check for Zombie objects but could not find any. Help much appreciated.
We were able to reproduce the issue and discovered that this is a memory issue on iPad Airs. We found that, for some reason, iOS on these iPad Air is trying to free up invalid memory addresses, or addresses that were previously freed up. We are now able to replicate on demand on iPad Airs, but do not see the same issue on other iPads.

Crash report when user accesses the addressbook

Incident Identifier: 236B9D70-0A5E-49B4-8A60-797CC9FEFF2B
CrashReporter Key: 38c652a88ce03779805e96d5c4e36f9df820deba
Hardware Model: xxx
Process: LuckyOne [3493]
Path: /var/mobile/Applications/7878C92C-5629-4163-AA84-B1D1C6676D2A/LuckyOne.app/LuckyOne
Identifier: LuckyOne
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-06-26 15:24:11.148 -0700
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Crashed Thread: 1
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3a436e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a436fd0 mach_msg + 48
2 CoreFoundation 0x3208e2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3208cfd6 __CFRunLoopRun + 814
4 CoreFoundation 0x32000238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x320000c4 CFRunLoopRunInMode + 100
6 GraphicsServices 0x35bbb336 GSEventRunModal + 70
7 UIKit 0x33f1c2b4 UIApplicationMain + 1116
8 LuckyOne 0x0003e42e 0x3c000 + 9262
9 LuckyOne 0x0003e3e4 0x3c000 + 9188
Thread 1 name: Dispatch queue: com.apple.root.default-priority
Thread 1 Crashed:
0 CoreFoundation 0x31ffa68a CFRelease + 18
1 LuckyOne 0x00040830 0x3c000 + 18480
2 LuckyOne 0x0004036e 0x3c000 + 17262
3 AddressBook 0x318618d0 __37-[ABTCC accessRequestWithCompletion:]_block_invoke_0 + 24
4 TCC 0x3776455e __TCCAccessRequest_block_invoke_038 + 314
5 libxpc.dylib 0x3a4877a6 _xpc_connection_call_reply + 22
6 libdispatch.dylib 0x3a371652 _dispatch_root_queue_drain + 274
7 libdispatch.dylib 0x3a3717d4 _dispatch_worker_thread2 + 88
8 libsystem_c.dylib 0x3a3957ee _pthread_wqthread + 358
9 libsystem_c.dylib 0x3a395680 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x3a4375d0 kevent64 + 24
1 libdispatch.dylib 0x3a372d22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3a36e374 _dispatch_mgr_thread + 32
Thread 3:
0 libsystem_kernel.dylib 0x3a447d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a395ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a3957f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a395680 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x3a436e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a436fd0 mach_msg + 48
2 CoreFoundation 0x3208e2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3208d02c __CFRunLoopRun + 900
4 CoreFoundation 0x32000238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x320000c4 CFRunLoopRunInMode + 100
6 WebCore 0x37fe4390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3a3a00de _pthread_start + 306
8 libsystem_c.dylib 0x3a39ffa4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3a447d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a395ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a3957f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a395680 start_wqthread + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x3a436e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a436fd0 mach_msg + 48
2 CoreFoundation 0x3208e2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3208d02c __CFRunLoopRun + 900
4 CoreFoundation 0x32000238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x320000c4 CFRunLoopRunInMode + 100
6 Foundation 0x3294d888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x329d122c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3a3a00de _pthread_start + 306
9 libsystem_c.dylib 0x3a39ffa4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3a447d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a395ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a3957f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a395680 start_wqthread + 4
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x3a447594 __select + 20
1 CoreFoundation 0x32092474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3a3a00de _pthread_start + 306
3 libsystem_c.dylib 0x3a39ffa4 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x3a447d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a395ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a3957f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a395680 start_wqthread + 4
Thread 1 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0xffffffff r2: 0x00000007 r3: 0x00000001
r4: 0x1e836370 r5: 0x1e836390 r6: 0x00000000 r7: 0x00240e60
r8: 0x00000000 r9: 0x00000039 r10: 0x3a5b51e4 r11: 0x3a5b51e4
ip: 0x3a5a06c4 sp: 0x00240e2c lr: 0x00040835 pc: 0x31ffa68a
cpsr: 0x60000030`
It appeared you are trying to release an addressbook object with CFRelease without checking if it is null or not.

Exception Type: EXC_CRASH (SIGABRT)

Incident Identifier: B959CD08-FA2C-4A34-8D0C-343927FF6B86
CrashReporter Key: 78e6625f679cb4cfb76f553075c64a197002c1bf
Hardware Model: iPad3,1
Process: ktv [50343]
Path:
/var/mobile/Applications/B8971D06-6001-49F7-81E1-8B88CDA5EB03/ktv.app/ktv
Identifier: ktv
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-01-09 18:59:32.193 +0800
OS Version: iPhone OS 5.1.1 (9B206)
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 0x30da732c __pthread_kill + 8
1 libsystem_c.dylib 0x33338208 pthread_kill + 48
2 libsystem_c.dylib 0x33331298 abort + 88
3 libc++abi.dylib 0x377c1f64 abort_message + 40
4 libc++abi.dylib 0x377bf3ea _ZL19safe_handler_callerPFvvE +114
5 libc++abi.dylib 0x377bf44a std::terminate() + 14
6 libc++abi.dylib 0x377c081e __cxa_rethrow + 82
7 libobjc.A.dylib 0x334772a2 objc_exception_rethrow + 6
8 CoreFoundation 0x3809c506 CFRunLoopRunSpecific + 398
9 CoreFoundation 0x3809c366 CFRunLoopRunInMode + 98
10 GraphicsServices 0x3657f432 GSEventRunModal + 130
11 UIKit 0x30f4dcce UIApplicationMain + 1074
12 ktv 0x000af9b0 0xa6000 + 39344
13 ktv 0x000a86c0 0xa6000 + 9920
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x30d973a8 kevent + 24
1 libdispatch.dylib 0x34a71f04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x34a71c22 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x30d97004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30d971fa mach_msg + 50
2 CoreFoundation 0x3811a3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x38119124 __CFRunLoopRun + 876
4 CoreFoundation 0x3809c49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3809c366 CFRunLoopRunInMode + 98
6 WebCore 0x31524c9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x332f972e _pthread_start + 314
8 libsystem_c.dylib 0x332f95e8 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x30d97004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30d971fa mach_msg + 50
2 CoreFoundation 0x3811a3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x38119124 __CFRunLoopRun + 876
4 CoreFoundation 0x3809c49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3809c366 CFRunLoopRunInMode + 98
6 Foundation 0x372d7bb2 +[NSURLConnection(Loader)_resourceLoadLoop:] + 302
7 Foundation 0x372d7a7a -[NSThread main] + 66
8 Foundation 0x3736b58a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x332f972e _pthread_start + 314
10 libsystem_c.dylib 0x332f95e8 thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x30da7570 __select + 20
1 CoreFoundation 0x3811e63a __CFSocketManager + 726
2 libsystem_c.dylib 0x332f972e _pthread_start + 314
3 libsystem_c.dylib 0x332f95e8 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x30d97004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30d971fa mach_msg + 50
2 CoreFoundation 0x3811a3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x38119124 __CFRunLoopRun + 876
4 CoreFoundation 0x3809c49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3809c366 CFRunLoopRunInMode + 98
6 ktv 0x0011683c 0xa6000 + 460860
7 Foundation 0x372d7a7a -[NSThread main] + 66
8 Foundation 0x3736b58a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x332f972e _pthread_start + 314
10 libsystem_c.dylib 0x332f95e8 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x30da7628 __semwait_signal + 24
1 libsystem_c.dylib 0x332fdb1a nanosleep + 138
2 libsystem_c.dylib 0x33308608 sleep + 40
3 ktv 0x000b09fa 0xa6000 + 43514
4 Foundation 0x372d7a7a -[NSThread main] + 66
5 Foundation 0x3736b58a __NSThread__main__ + 1042
6 libsystem_c.dylib 0x332f972e _pthread_start + 314
7 libsystem_c.dylib 0x332f95e8 thread_start + 0
Thread 7 name: WebCore: CFNetwork Loader
Thread 7:
0 libsystem_kernel.dylib 0x30d97004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30d971fa mach_msg + 50
2 CoreFoundation 0x3811a3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x38119124 __CFRunLoopRun + 876
4 CoreFoundation 0x3809c49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3809c366 CFRunLoopRunInMode + 98
6 WebCore 0x3154e0d2 _ZN7WebCoreL15runLoaderThreadEPv + 122
7 libsystem_c.dylib 0x332f972e _pthread_start + 314
8 libsystem_c.dylib 0x332f95e8 thread_start + 0
Thread 8 name: com.apple.coremedia.player.async
Thread 8:
0 libsystem_kernel.dylib 0x30da7068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x332f9a46 _pthread_cond_wait + 634
2 libsystem_c.dylib 0x332f97c2 pthread_cond_wait + 34
3 CoreMedia 0x35d3a868 FigSemaphoreWaitRelative + 268
4 MediaToolbox 0x329233e6 fpa_AsyncMovieControlThread + 22
5 CoreMedia 0x35d598b4 figThreadMain + 168
6 libsystem_c.dylib 0x332f972e _pthread_start + 314
7 libsystem_c.dylib 0x332f95e8 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x30da7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x332f3f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x332f3cc8 start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x30da7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x332f3f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x332f3cc8 start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x30da7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x332f3f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x332f3cc8 start_wqthread + 0
Thread 12:
0 libsystem_kernel.dylib 0x30da7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x332f3f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x332f3cc8 start_wqthread + 0
Thread 13:
0 libsystem_kernel.dylib 0x30da7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x332f3f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x332f3cc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ec73d98 r6: 0x00000002 r7: 0x2fea4acc
r8: 0x2fea4870 r9: 0x00000000 r10: 0x0000000a r11:
0x00000009
ip: 0x00000148 sp: 0x2fea4ac0 lr: 0x3333820f pc:
0x30da732c
cpsr: 0x00080010
Binary Images:
0xa6000 - 0x264fff +ktv armv7
<071d076aba693352b8ae722bd01cace1>
/var/mobile/Applications/B8971D06-6001-49F7-81E1-8B88CDA5EB03/ktv.app/ktv
0x2eb000 - 0x2ebfff +MobileSubstrate.dylib armv6
<d8da1cc9b8ea37cfba03a60549cdac4c>
/Library/MobileSubstrate/MobileSubstrate.dylib
0x322000 - 0x323fff +SubstrateLoader.dylib armv6
<825b732151e6379b9cbec6e597a986fa>
/Library/Frameworks/CydiaSubstrate.framework/Libraries/SubstrateLoader.dylib
0x2fea5000 - 0x2fec6fff dyld armv7
<77eddfd654df393ba9c95ff01715fd08> /usr/lib/dyld
0x30625000 - 0x30625fff vecLib armv7
<a2cfe25e77aa36bfb4a30b2d0d2dd465>
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x306ef000 - 0x306f6fff SpringBoardUI armv7
<84e082f96770383096a5b083841d3f59>
/System/Library/PrivateFrameworks/SpringBoardUI.framework/SpringBoardUI
0x306f7000 - 0x307cffff vImage armv7
<caf3648be2933384b6aa1ae7408ab4f0>
/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
0x30800000 - 0x3080afff libvMisc.dylib armv7
<e8248c797b9b363594bb652ddf7ce16d>
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib
0x3080d000 - 0x30842fff DataAccess armv7
<89fd0c22338b37538cf61803a0bca9e2>
/System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x30882000 - 0x308dffff StoreServices armv7
<6ce256d3cf433e4aa1af8d696bf1f75d>
/System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x308e0000 - 0x30ba1fff libLAPACK.dylib armv7
<0e94e9a7e7a334649afaccae0f1215a2>
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x30bb3000 - 0x30bbbfff MobileWiFi armv7
<b76c3e9fb78234c392058250d4620e72>
/System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x30bbe000 - 0x30be3fff OpenCL armv7
Does anyone know anything about this crash? That all the infomation here, I still dont know whats wrong about it. The important is that I found many crash contain this part, But it may caused many reasons.
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x30da732c __pthread_kill + 8
1 libsystem_c.dylib 0x33338208 pthread_kill + 48
2 libsystem_c.dylib 0x33331298 abort + 88
3 libc++abi.dylib 0x377c1f64 abort_message + 40
4 libc++abi.dylib 0x377bf3ea _ZL19safe_handler_callerPFvvE + 114
5 libc++abi.dylib 0x377bf44a std::terminate() + 14
6 libc++abi.dylib 0x377c081e __cxa_rethrow + 82
7 libobjc.A.dylib 0x334772a2 objc_exception_rethrow + 6
8 CoreFoundation 0x3809c506 CFRunLoopRunSpecific + 398
9 CoreFoundation 0x3809c366 CFRunLoopRunInMode + 98
10 GraphicsServices 0x3657f432 GSEventRunModal + 130
11 UIKit 0x30f4dcce UIApplicationMain + 1074
12 ktv 0x000af9b0 0xa6000 + 39344
13 ktv 0x000a86c0 0xa6000 + 9920
Can I understand that this part is not the really point where my app crashes?
It's not a crash, it's an abort due to an exception. It means that your application is passing bad data to a system routine and the routine is saying that it's bad and can't continue, so it's killing your app. The console should show something about what went wrong. One common exception that can occur is attempting to get the n + 1st object from an array with only n objects in it. (For example getting the 5th element of an NSArray when there are only 4 elements.) The console will have a message that says just that. So check the console to see what might have happened.
Solved !!
I have solved this issue :
replace below files files from your project file(if you have backup of your project):
pods
projectname.xcworkspace
podfile.lock, podfile
add pods in podfile if any pod missing and install pods
Build your project and run
Please get project backup in zip this will help to solve this error.
I had deleted my Main.storyboard and had replaced it with the storyboard from another project. My solution was to delete my project and recreate it.

symbolication with atos giving wrong reason for the crash

In my current project I am getting random crashes,may be due to memory overshoot.But I actually want to figure out which class lead to that crash.So I used symbolication method to find the reason of crash.
Here is what I have done:
Firstly, XCode Build settings are like this :
Strip Debug Sysbols During Copy : NO
Deployment PostProcessing : YES
Strip Linked Product : YES
Generate Debug Symbols : YES
Debug Info Format : DWARF with dSYM file
Use Separate Strip : YES
I am using iOS 5.1 with 4.3.2 version of XCode. I have used "symbolicatecrash" and "atos" methods to reveal the reason of the crash.But I was not able to find the reason for the crash.
So I tried this. I made the application crash by myself by accessing an out of bound index from the array. I have used that to verify the symbolicated crash result output with my actual crash.
Here is the crash report output:
Incident Identifier: 93678EE5-ED10-4502-A59B-5C7526640C4D
CrashReporter Key: 5a79e41767bd1988a9b4080ee5641f63ed42feb8
Hardware Model: iPad2,1
Process: MyAppName [887]
Path: /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/MyAppName
Identifier: MyAppName
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-07-13 13:37:18.642 +0530
OS Version: iPhone OS 5.0.1 (9A405)
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 0x3028432c __pthread_kill + 8
1 libsystem_c.dylib 0x37725f54 pthread_kill + 48
2 libsystem_c.dylib 0x3771efe4 abort + 88
3 MyAppName 0x00104aa0 0x5e000 + 682656
4 Foundation 0x34ebc1b0 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 260
5 Foundation 0x34ebbe42 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 130
6 MyAppName 0x00104924 0x5e000 + 682276
7 MyAppName 0x00118634 0x5e000 + 763444
8 MyAppName 0x00116b36 0x5e000 + 756534
9 libsystem_c.dylib 0x37730532 _sigtramp + 42
10 libsystem_c.dylib 0x37725f54 pthread_kill + 48
11 libsystem_c.dylib 0x3771efe4 abort + 88
12 MyAppName 0x00118658 0x5e000 + 763480
13 CoreFoundation 0x37c23980 __handleUncaughtException + 68
14 libobjc.A.dylib 0x3776f2ca _objc_terminate + 122
15 libc++abi.dylib 0x3017e3be _ZL19safe_handler_callerPFvvE + 70
16 libc++abi.dylib 0x3017e44a std::terminate() + 14
17 libc++abi.dylib 0x3017f81e __cxa_rethrow + 82
18 libobjc.A.dylib 0x3776f22e objc_exception_rethrow + 6
19 CoreFoundation 0x37b7953e CFRunLoopRunSpecific + 398
20 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
21 GraphicsServices 0x37950fc6 GSEventRunModal + 150
22 UIKit 0x316f973c UIApplicationMain + 1084
23 MyAppName 0x0005ffc8 0x5e000 + 8136
24 MyAppName 0x0005ff6c 0x5e000 + 8044
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x302743b4 kevent + 24
1 libdispatch.dylib 0x307dff74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x307dfc92 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 WebCore 0x32650128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
8 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 Foundation 0x34ec8bc2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x34ec8a8a -[NSThread main] + 66
8 Foundation 0x34f5c59a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
10 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x30284570 __select + 20
1 CoreFoundation 0x37bfb66a __CFSocketManager + 726
2 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
3 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 5 name: Dispatch queue: com.apple.CFURLCACHE_work_queue
Thread 5:
0 libsystem_kernel.dylib 0x30275ac4 fsync + 8
1 libsqlite3.dylib 0x30741656 0x30704000 + 251478
2 libsqlite3.dylib 0x30746434 0x30704000 + 271412
3 libsqlite3.dylib 0x30741394 0x30704000 + 250772
4 libsqlite3.dylib 0x30737350 0x30704000 + 209744
5 libsqlite3.dylib 0x30719a6c 0x30704000 + 88684
6 libsqlite3.dylib 0x3072ccb4 0x30704000 + 167092
7 libsqlite3.dylib 0x3072b6ce sqlite3_step + 2098
8 libsqlite3.dylib 0x3070a732 sqlite3_exec + 366
9 CFNetwork 0x33a3cedc __CFURLCache::ExecSQLStatement_NoLock(sqlite3*, char const*, int (*)(void*, int, char**, char**), void*, long) + 32
10 CFNetwork 0x33a3fc7c _ZL24_CFURLCacheTimerCallbackPv + 320
11 libdispatch.dylib 0x307e133e _dispatch_source_invoke + 510
12 libdispatch.dylib 0x307dec60 _dispatch_queue_invoke$VARIANT$mp + 44
13 libdispatch.dylib 0x307ded9e _dispatch_queue_drain + 198
14 libdispatch.dylib 0x307dec56 _dispatch_queue_invoke$VARIANT$mp + 34
15 libdispatch.dylib 0x307df860 _dispatch_worker_thread2 + 204
16 libsystem_c.dylib 0x376e21c8 _pthread_wqthread + 288
17 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 Foundation 0x34ebcb7e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x34ed652c -[NSRunLoop(NSRunLoop) run] + 72
8 JAYPORE 0x00108a9a 0x5e000 + 699034
9 Foundation 0x34ec8a8a -[NSThread main] + 66
10 Foundation 0x34f5c59a __NSThread__main__ + 1042
11 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
12 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f504ce8 r6: 0x30caec02 r7: 0x2fe5c4ec
r8: 0x00000006 r9: 0x00000000 r10: 0x00000005 r11: 0x2fe5c558
ip: 0x00000148 sp: 0x2fe5c4e0 lr: 0x37725f5b pc: 0x3028432c
cpsr: 0x00000010
Binary Images:
0x5e000 - 0x14efff +JAYPORE armv7 <a9b02230373d3b4aba282d21f94fb780> /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/JAYPORE
0x1178000 - 0x1182fff AccessibilitySettingsLoader armv7 <45d7c264810c364b976dba254572d73d> /System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader
0x2fe5d000 - 0x2fe7efff dyld armv7 <be7c0b491a943054ad12eb5060f1da06> /usr/lib/dyld
0x3001c000 - 0x30179fff libmecabra.dylib armv7 <170c82a3c716372abe7ae0aae96d4805> /usr/lib/libmecabra.dylib
...long list of binary images.
Now when I use "atos" to get the reason of crash from the Thread 0(which caused the crash)
3 MyAppName 0x00104aa0 0x5e000 + 682656
using above address,it gives me this output:
MAC66:Resources sourabhbhardwaj$ atos -arch arm -o /Users/myPath/MyAppName.app.dSYM/Contents/Resources/DWARF/MyAppName 0x00079f6c 0x78000 + 8044
-[FirstViewController setUIAndText] (in MyAppName) (FirstViewController.m:85)
-[SecondViewController DeleteByID:] (in MyAppName) (SecondViewController.m:415)
+
-[MyController viewWillAppear:] (in MyAppName) (MyController.m:137)
which is not the actual line of crash which I have made. I have made crash on other view controller and the output is entirely different.How can this be possible??
Yes,I have cross checked that I am using the exact same dSYM file for that binary.
Quick help needed.
Thanks
Sourabh
I'm sure this is too late to help, but just in case: you may not be giving atos all the parameters it needs. In particular, make sure you are specifying (with -l) the load address of the application, and (with -arch) the architecture. You can find this in the binary image line you quoted above (it changes with each crashdump):
0x5e000 - 0x14efff +JAYPORE armv7 <a9b02230373d3b4aba282d21f94fb780> /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/JAYPORE
The 0x5e000 is the load address. So try running something like xcrun atos -l 0x5e000 -arch armv7 -o YourArchive.xcarchive/Products/Applications/YourApp.app/YourApp 0x00104aa0.
You can find more details about what the load address is and why it changes each time in Kerni's answer to this similar question. (But while it's good to know how it works, it's usually more convenient to use the -l parameter to atos rather than doing the math yourself.)
Before symbolicating, make sure you have the same .app and the .dSYM of the build that crashed or else it will not be symbolicated properly.

iOS NSURLConnection _resourceLoadLoop crash

I met a strange problem
I am using a NSURLConnection to do some URL request
it work fine on simulator
but it crash on ipad2 5.0
I've tried on iPad1 5.01 ,ipad2 4.33,ipad2 5.01, it worked fine
just crash on ipad2 5.0
I'm not sure what problem is
it seems something wrong with
[NSURLConnection(Loader) _resourceLoadLoop:]
I thought maybe NSURLConnection's delegate may be destroy before NSURLConnection do it's job
so I make retain with the delegate,but still crash
does anybody know what may cause this problem?
crash log:
Date/Time: 2012-02-14 23:31:47.416 +0800
OS Version: iPhone OS 5.0 (9A334)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000049de
Highlighted Thread: 3
Thread 0 name: Dispatch queue: com.apple.libdispatch-manager
Thread 0:
0 libsystem_kernel.dylib 0x31e973b4 kevent + 24
1 libdispatch.dylib 0x316a6f74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x316a6c92 _dispatch_mgr_thread + 30
Thread 1:
0 libsystem_kernel.dylib 0x31ea7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d2730a _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d2709c start_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x31e97010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31e97206 mach_msg + 50
2 CoreFoundation 0x371c441c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x371c3154 __CFRunLoopRun + 876
4 CoreFoundation 0x371464d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3714639e CFRunLoopRunInMode + 98
6 WebCore 0x347ac128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
8 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x31e97010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31e97206 mach_msg + 50
2 CoreFoundation 0x371c441c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x371c3154 __CFRunLoopRun + 876
4 CoreFoundation 0x371464d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3714639e CFRunLoopRunInMode + 98
6 Foundation 0x31ab0bc2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x31ab0a8a -[NSThread main] + 66
8 Foundation 0x31b4459a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
10 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 4 name: WebCore: CFNetwork Loader
Thread 4:
0 libsystem_kernel.dylib 0x31e97010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31e97206 mach_msg + 50
2 CoreFoundation 0x371c441c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x371c3154 __CFRunLoopRun + 876
4 CoreFoundation 0x371464d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3714639e CFRunLoopRunInMode + 98
6 WebCore 0x347d569e _ZN7WebCoreL15runLoaderThreadEPv + 122
7 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
8 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x31ea7570 __select + 20
1 CoreFoundation 0x371c866a __CFSocketManager + 726
2 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
3 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 6 name: WebCore: LocalStorage
Thread 6:
0 libsystem_kernel.dylib 0x31ea7068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x30d2cf2e _pthread_cond_wait + 634
2 libsystem_c.dylib 0x30d2ccaa pthread_cond_wait + 34
3 JavaScriptCore 0x3382040e WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 54
4 WebCore 0x3490b494 WTF::PassOwnPtr<WebCore::LocalStorageTask> WTF::MessageQueue<WebCore::LocalStorageTask>::waitForMessageFilteredWithTimeout<bool ()(WebCore::LocalStorageTask*)>(WTF::MessageQueueWaitResult&, bool (&)(WebCore::LocalStorageTask*), double) + 52
5 WebCore 0x3490b44a WebCore::LocalStorageThread::threadEntryPointCallback(void*) + 106
6 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
7 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Unknown thread crashed with ARM Thread State:
r0: 0x0000499a r1: 0x00000000 r2: 0x35fca80d r3: 0x00000000
r4: 0x0014bf50 r5: 0x3e4ce540 r6: 0x00115030 r7: 0x00000000
r8: 0x001d5a60 r9: 0x000000fb r10: 0x2fe5a688 r11: 0x305b1913
ip: 0x00067a2d sp: 0x2fe5a688 lr: 0x00067a49 pc: 0x30878f4e
cpsr: 0x60000030
When the crash logs say "Highlighted Thread:" it may still be a different thread. It is not sure.
All threads except thread 0 (main thread) seem to be stopped at waits or traps. Since thread zero is the only one that appears active, it is the real source of the crash.
Since thread 0 does have main() or UIApplication at the bottom, the stack is probably corrupted or it is in some system functions which use a non-standard way of building stack frames.

Resources