My application crashes when I try to scroll the tableview very fast or reload the data from remote. Everything seems to be working fine, when I let the remote fetch happen first and then scroll the tableview. I have no idea what the crash log below means. It just works fine sometimes and crashes sometime.
Incident Identifier: 710A120C-97E3-45C8-A7B2-E6A7BD98BC1A
CrashReporter Key: 8bd54d8428128b9e6b8c04d59b86c40cccf33457
Hardware Model: iPhone5,2
Process: MyApp [5294]
Path: /var/mobile/Applications/B6ED5B19-B8D7-4146-90A2-F709AE35292F/MyApp.app/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-02-26 16:45:27.693 +0200
OS Version: iOS 6.1.2 (10B146)
Report Version: 104
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 1
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libobjc.A.dylib 0x3c3f658a _cache_getImp + 10
1 libobjc.A.dylib 0x3c3f6fa0 lookUpMethod + 24
2 libobjc.A.dylib 0x3c3f81e2 class_respondsToSelector + 26
3 CoreFoundation 0x3470a750 objectIsKindOfClass + 32
4 CoreFoundation 0x3470a49c __handleUncaughtException + 64
5 libobjc.A.dylib 0x3c3fba46 _objc_terminate() + 126
6 libc++abi.dylib 0x3be48118 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x3be481b0 std::terminate() + 16
8 libc++abi.dylib 0x3be49626 __cxa_rethrow + 90
9 libobjc.A.dylib 0x3c3fb9b0 objc_exception_rethrow + 8
10 CoreFoundation 0x3465129c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
12 GraphicsServices 0x3822f336 GSEventRunModal + 70
13 UIKit 0x3656d2b4 UIApplicationMain + 1116
14 MyApp 0x000910a2 0x44000 + 315554
15 MyApp 0x0004668c 0x44000 + 9868
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x3c8df5d0 kevent64 + 24
1 libdispatch.dylib 0x3c81ad22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3c816374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 WebCore 0x3a650390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3c8480de _pthread_start + 306
8 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 Foundation 0x34f9e888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x3502222c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3c8480de _pthread_start + 306
9 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 Foundation 0x34f755be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x35018c40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0016b900 0x44000 + 1210624
9 Foundation 0x3502222c __NSThread__main__ + 968
10 libsystem_c.dylib 0x3c8480de _pthread_start + 306
11 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 Foundation 0x34f755be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x35018c40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x000e63d0 0x44000 + 664528
9 Foundation 0x3502222c __NSThread__main__ + 968
10 libsystem_c.dylib 0x3c8480de _pthread_start + 306
11 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x3c8ef594 __select + 20
1 CoreFoundation 0x346e3474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3c8480de _pthread_start + 306
3 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346afc46 CFRunLoopRun + 94
6 MyApp 0x00115d7e 0x44000 + 859518
7 Foundation 0x3502222c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3c8480de _pthread_start + 306
9 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 11 name: JavaScriptCore::BlockFree
Thread 11:
0 libsystem_kernel.dylib 0x3c8ef08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3c840afc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x3c840870 pthread_cond_timedwait + 40
3 JavaScriptCore 0x38625df6 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 102
4 JavaScriptCore 0x38738532 JSC::BlockAllocator::blockFreeingThreadMain() + 78
5 JavaScriptCore 0x3874b030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x3c8480de _pthread_start + 306
7 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 12 name: JavaScriptCore::Marking
Thread 12:
0 libsystem_kernel.dylib 0x3c8ef08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3c840afc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x3c84acf8 pthread_cond_wait + 36
3 JavaScriptCore 0x386cb6dc JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 140
4 JavaScriptCore 0x386cb620 JSC::MarkStackThreadSharedData::markingThreadMain() + 140
5 JavaScriptCore 0x3874b030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x3c8480de _pthread_start + 306
7 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 13 name: WebCore: CFNetwork Loader
Thread 13:
0 libsystem_kernel.dylib 0x3c8dee30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c8defd0 mach_msg + 48
2 CoreFoundation 0x346df2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x346de02c __CFRunLoopRun + 900
4 CoreFoundation 0x34651238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x346510c4 CFRunLoopRunInMode + 100
6 WebCore 0x3a6eaccc WebCore::runLoaderThread(void*) + 140
7 JavaScriptCore 0x3874b030 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_c.dylib 0x3c8480de _pthread_start + 306
9 libsystem_c.dylib 0x3c847fa4 thread_start + 4
Thread 14:
0 libsystem_kernel.dylib 0x3c8efd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c83dad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c83d7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c83d680 start_wqthread + 4
Thread 1 crashed with ARM Thread State (32-bit):
r0: 0x00000004 r1: 0x00000000 r2: 0x00000000 r3: 0x0042c714
r4: 0x00000001 r5: 0x00000000 r6: 0x0042c744 r7: 0x0042c764
r8: 0x00000000 r9: 0x0042c6c8 r10: 0x3e3a2188 r11: 0x00000002
ip: 0x00000171 sp: 0x0042c6d0 lr: 0x3c81ad27 pc: 0x3c8df5d0
cpsr: 0x60000010
I would be really happy if anybody could explain me what this crash log could relate to and how I could solve it. Many many thanks to all those who are willing to help others.
Seems to me that it's dangling pointer, and you're sending message to it.
As MikeD said, use breakpoint on exception if it can help. But it's not 100% reliable since you get a SIGSEGV and not a SIGABRT. And the exception throw is not really the cause of the crash, just a border effect.
Edit
Ok: In your log crash, it says that libsystem_kernel.dylib has crashed in a kevent call. That won't help you since this is private and opaque, and you can be 100% sure this lib do its job well. This can appears because you have used (unintentionally) a space memory where you should not write into. Like with a dangling pointer. Let's say you have allocated memory to 0x2000 and you have a pointer pointing to this memory, if you freed the memory but still using this pointer to this address, if someone else (like libsystem_kernel) use it, and you change some data in the same time (because of your dangling pointer). Then the other side will use data corrupted, and some random behavior will occur. That's why if you analyze literally your crash log, you'll do wrong statement. Because kevent from libSystem is stable.
By the way you have thread 1 who crashed, but look into thread 0, it was trying to raise an exception too, but it didn't get time to do it. This can occur because of data corrupted too.
That's why I recommend you to make another crash, and compare it to this one. If the crash log are the same, then i was totally wrong. If the crash log are different, this is a dangling pointer.
Related
I'm using Xcode 5 to make my app. When I run it on the simulator using IOS 6.1 everything works perfectly, but when I run the app on IOS 7 it crashes! Here is the crash log I'm getting from the webview:
`Incident Identifier: 01BCFB4C-E85B-488D-9855-4188D27566B1
CrashReporter Key: cc047dce10a1cd20b4718dbf73ddc413162841fe
Hardware Model: iPhone5,1
Process: Widgets iphone [420]
Path: /var/mobile/Applications/0D552E90-FF2C-4561-B012-0901359ED7A0/Widgets iphone.app/Widgets iphone
Identifier: jeardev.Widgets-iphone
Version: 1.1 (1.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-08-27 20:49:46.578 -0500
OS Version: iOS 7.0 (11A4449d)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000f0
Triggered by Thread: 7
Thread 0:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccacc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 GraphicsServices 0x326c933e GSEventRunModal + 134
7 UIKit 0x3024e7b0 UIApplicationMain + 1132
8 Widgets iphone 0x00071fa2 main (main.m:16)
9 libdyld.dylib 0x3823fab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 2:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 3 name: gputools.smt_poll.0x16580fd0
Thread 3:
0 libsystem_kernel.dylib 0x382f6550 __semwait_signal + 24
1 libsystem_c.dylib 0x382674e8 nanosleep + 168
2 libsystem_c.dylib 0x38267438 usleep + 48
3 GPUToolsCore 0x0062b0bc smt_poll_thread_entry(void*) + 120
4 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
5 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
6 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x382e3838 kevent64 + 24
1 libdispatch.dylib 0x382320d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3822c63e _dispatch_mgr_thread + 34
Thread 5:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 7 name: WebThread
Thread 7 Crashed:
0 WebCore 0x35ac9de8 WebCore::ApplicationCacheGroup::selectCache(WebCore::Frame*, WebCore::KURL const&) + 544
1 WebCore 0x358d12b6 WebCore::HTMLHtmlElement::insertedByParser() + 90
2 WebCore 0x358c9936 WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML(WebCore::AtomicHTMLToken*) + 318
3 WebCore 0x3589f1b4 WebCore::HTMLTreeBuilder::processStartTag(WebCore::AtomicHTMLToken*) + 2472
4 WebCore 0x3589e76e WebCore::HTMLTreeBuilder::processToken(WebCore::AtomicHTMLToken*) + 86
5 WebCore 0x3589e552 WebCore::HTMLTreeBuilder::constructTree(WebCore::AtomicHTMLToken*) + 30
6 WebCore 0x3589e038 WebCore::HTMLDocumentParser::constructTreeFromHTMLToken(WebCore::HTMLToken&) + 96
7 WebCore 0x358910f0 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) + 248
8 WebCore 0x3590234e WebCore::HTMLDocumentParser::append(WTF::PassRefPtr<WTF::StringImpl>) + 290
9 WebCore 0x35901872 WebCore::DecodedDataDocumentParser::appendBytes(WebCore::DocumentWriter*, char const*, unsigned long) + 70
10 WebCore 0x358bdae4 WebCore::DocumentLoader::commitData(char const*, unsigned long) + 32
11 WebKit 0x362c366e -[WebHTMLRepresentation receivedData:withDataSource:] + 178
12 WebKit 0x362c3508 -[WebDataSource(WebInternal) _receivedData:] + 132
13 WebKit 0x362c3464 WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 96
14 WebCore 0x358f9240 WebCore::DocumentLoader::commitLoad(char const*, int) + 96
15 WebCore 0x358f9198 WebCore::DocumentLoader::dataReceived(WebCore::CachedResource*, char const*, int) + 492
16 WebCore 0x358f79b0 WebCore::DocumentLoader::continueAfterContentPolicy(WebCore::PolicyAction) + 760
17 WebCore 0x358f6fde WebCore::DocumentLoader::responseReceived(WebCore::CachedResource*, WebCore::ResourceResponse const&) + 650
18 WebCore 0x35b73a1a WebCore::DocumentLoader::handleSubstituteDataLoadNow(WebCore::Timer<WebCore::DocumentLoader>*) + 322
19 WebCore 0x3581d2d4 WebCore::ThreadTimers::sharedTimerFiredInternal() + 132
20 WebCore 0x3581d226 WebCore::timerFired(__CFRunLoopTimer*, void*) + 22
21 CoreFoundation 0x2dccce84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
22 CoreFoundation 0x2dccca9e __CFRunLoopDoTimer + 790
23 CoreFoundation 0x2dccae26 __CFRunLoopRun + 1214
24 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
25 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
26 WebCore 0x358abf68 RunWebThread(void*) + 416
27 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
28 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
29 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccac7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 Foundation 0x2e6519bc +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2e6c72b2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
10 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccac7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2cc125ae GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2cc05f44 CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
10 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 10 name: com.apple.CFSocket.private
Thread 10:
0 libsystem_kernel.dylib 0x382f6440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dcd045a __CFSocketManager + 478
2 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
3 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
4 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 11 name: JavaScriptCore::BlockFree
Thread 11:
0 libsystem_kernel.dylib 0x382f5f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x3835c262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3835d03c pthread_cond_wait + 36
3 JavaScriptCore 0x2ec3a408 JSC::BlockAllocator::blockFreeingThreadMain() + 204
4 JavaScriptCore 0x2ec37a70 WTF::wtfThreadEntryPoint(void*) + 12
5 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
6 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
7 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 12 name: JavaScriptCore::Marking
Thread 12:
0 libsystem_kernel.dylib 0x382f5f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x3835c262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x3835d03c pthread_cond_wait + 36
3 JavaScriptCore 0x2edd8af2 JSC::GCThread::waitForNextPhase() + 74
4 JavaScriptCore 0x2edd8b4c JSC::GCThread::gcThreadMain() + 48
5 JavaScriptCore 0x2ec37a70 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
7 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
8 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 13 name: WebCore: CFNetwork Loader
Thread 13:
0 libsystem_kernel.dylib 0x382e3a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x382e387c mach_msg + 36
2 CoreFoundation 0x2dccc55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dccac7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dc3553c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dc3531e CFRunLoopRunInMode + 102
6 WebCore 0x358f512a WebCore::runLoaderThread(void*) + 250
7 JavaScriptCore 0x2ec37a70 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x3835cc5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3835cbca _pthread_start + 98
10 libsystem_pthread.dylib 0x3835accc thread_start + 4
Thread 14:
0 libsystem_kernel.dylib 0x382f6c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3835ae06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3835acc0 start_wqthread + 4
Thread 7 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000008 r2: 0x9b81ac40 r3: 0x00000021
r4: 0x00000000 r5: 0x0367daf0 r6: 0x04cf6750 r7: 0x031b4818
r8: 0x0309f040 r9: 0x00000035 r10: 0x0309f000 r11: 0x04b2d000
ip: 0x39d5d5cc sp: 0x031b477c lr: 0x35ac9de5 pc: 0x35ac9de8
cpsr: 0x00000030
`
It is particularly crashing "Thread 5 Webthread" Sometimes Thread 8
Any feedback is appreciated :)
I figured out the problem, #Jake Lin's suggestion was right it was the link. I was trying to connect to twitter and I was using the URL: http://mobile.twitter.com/account and I tried changing it to: https://mobile.twitter.com/account where I added the "s" in the http. Very strange problem but that seemed to fix it.
The resolution center rejected my app because, as they say, it crashes on iPhone 5 with iOS 6.1.2.
I have an iPhone 4 with iOS 6.1.2 and it doesnt crash. I can't solve that problem!
They also wrote that the app crash when:
Launch the app
Login with Facebook.
App crashes when the device returns to the app.
Here the simbolicated crash log:
Last Exception Backtrace:
0 CoreFoundation 0x344ec3e2 0x3442a000 + 795618
1 libobjc.A.dylib 0x3c1dd95e 0x3c1d5000 + 35166
2 CoreFoundation 0x344eff2c 0x3442a000 + 810796
3 CoreFoundation 0x344ee648 0x3442a000 + 804424
4 CoreFoundation 0x34446204 0x3442a000 + 115204
5 Kick - Serie A 0x0007252c -[LetturaScrittura writeStringToFile:] (LetturaScrittura.m:26)
6 Kick - Serie A 0x0006e9da __25-[Profilo carica_profilo]_block_invoke (Profilo.m:314)
7 Kick - Serie A 0x0007e14a -[FBRequestConnection completeWithResults:orError:] (FBRequestConnection.m:1200)
8 Kick - Serie A 0x0007d56c -[FBRequestConnection completeWithResponse:data:orError:] (FBRequestConnection.m:983)
9 Kick - Serie A 0x0007b6aa __68-[FBRequestConnection startWithCacheIdentity:skipRoundtripIfCached:]_block_invoke_0 (FBRequestConnection.m:499)
10 Kick - Serie A 0x0007f38e -[FBURLConnection invokeHandler:error:response:responseData:] (FBURLConnection.m:163)
11 Kick - Serie A 0x0007f8f4 -[FBURLConnection connectionDidFinishLoading:] (FBURLConnection.m:233)
12 Foundation 0x34e28910 0x34d53000 + 874768
13 Foundation 0x34d68764 0x34d53000 + 87908
14 Foundation 0x34d68680 0x34d53000 + 87680
15 CFNetwork 0x341c964a 0x34141000 + 558666
16 CFNetwork 0x341c8d2e 0x34141000 + 556334
17 CFNetwork 0x341f100e 0x34141000 + 720910
18 CoreFoundation 0x34432ac8 0x3442a000 + 35528
19 CFNetwork 0x341f146e 0x34141000 + 722030
20 CFNetwork 0x3415545c 0x34141000 + 83036
21 CoreFoundation 0x344c18f2 0x3442a000 + 620786
22 CoreFoundation 0x344c1158 0x3442a000 + 618840
23 CoreFoundation 0x344bff2a 0x3442a000 + 614186
24 CoreFoundation 0x34433238 0x3442a000 + 37432
25 CoreFoundation 0x344330c4 0x3442a000 + 37060
26 GraphicsServices 0x38011336 0x3800c000 + 21302
27 UIKit 0x3634f2b4 0x362f8000 + 357044
28 Kick - Serie A 0x0006ac92 main (main.m:16)
29 libdyld.dylib 0x3c60ab1c 0x3c609000 + 6940
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3c6d1350 __pthread_kill + 8
1 libsystem_c.dylib 0x3c647fb2 pthread_kill + 54
2 libsystem_c.dylib 0x3c684366 abort + 90
3 libc++abi.dylib 0x3bc2cdda abort_message + 70
4 libc++abi.dylib 0x3bc2a094 default_terminate() + 20
5 libobjc.A.dylib 0x3c1dda58 _objc_terminate() + 144
6 libc++abi.dylib 0x3bc2a118 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x3bc2a1b0 std::terminate() + 16
8 libc++abi.dylib 0x3bc2b626 __cxa_rethrow + 90
9 libobjc.A.dylib 0x3c1dd9b0 objc_exception_rethrow + 8
10 CoreFoundation 0x3443329c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
12 GraphicsServices 0x38011336 GSEventRunModal + 70
13 UIKit 0x3634f2b4 UIApplicationMain + 1116
14 Kick - Serie A 0x0006ac92 main (main.m:16)
15 libdyld.dylib 0x3c60ab1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3c6c15d0 kevent64 + 24
1 libdispatch.dylib 0x3c5fcd22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3c5f8374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3c6c0e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c6c0fd0 mach_msg + 48
2 CoreFoundation 0x344c12b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x344c002c __CFRunLoopRun + 900
4 CoreFoundation 0x34433238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
6 WebCore 0x3a432390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
8 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x3c6c0e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c6c0fd0 mach_msg + 48
2 CoreFoundation 0x344c12b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x344c002c __CFRunLoopRun + 900
4 CoreFoundation 0x34433238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x344330c4 CFRunLoopRunInMode + 100
6 Foundation 0x34d80888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x34e0422c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
9 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3c6d1594 __select + 20
1 CoreFoundation 0x344c5474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3c62a0de _pthread_start + 306
3 libsystem_c.dylib 0x3c629fa4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3c6d1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c61fad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c61f7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c61f680 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x3c6d1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c61fad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c61f7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c61f680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3e191524
r4: 0x00000006 r5: 0x3e191b78 r6: 0x1dd85ca4 r7: 0x2fd979f4
r8: 0x1dd85c80 r9: 0x00000300 r10: 0x00000000 r11: 0x3455b022
ip: 0x00000148 sp: 0x2fd979e8 lr: 0x3c647fb7 pc: 0x3c6d1350
cpsr: 0x00000010
Here's the LetturaScrittore method that makes the app crash (I use it to write on a .txt the email of the facebook user):
- (void)writeStringToFile:(NSString*)aString {
// Build the path, and create if needed.
NSString* filePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString* fileName = #"myTextFile.txt";
NSString* fileAtPath = [filePath stringByAppendingPathComponent:fileName];
if (![[NSFileManager defaultManager] fileExistsAtPath:fileAtPath]) {
[[NSFileManager defaultManager] createFileAtPath:fileAtPath contents:nil attributes:nil];
}
// The main act.
[[aString dataUsingEncoding:NSUTF8StringEncoding] writeToFile:fileAtPath atomically:YES];
}
The reason for the crash is that you don't actually pass a NSString object to writeStringToFile.
My mistake was on the facebook auth login: without the permission of the email, facebook return nothing, and the app crashes when trying to write the .txt file.
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.
I am having a big problem figuring out where my app crash is being caused, and I'm not sure how to interpret the crash report.
The crash clearly occurs in Thread 0, but at what step might it actually be crashing in? I certainly am not manipulating CALayers in my code at all. In anyone experience, does this happen for any particular reason?
Incident Identifier: 23D06670-4C44-49F4-A0CB-01CF95D558D2
CrashReporter Key: 1d7775167d5336b2369c148ce37405638a6abe74
Hardware Model: iPhone3,1
Process: CrazyTimes [3169]
Path: /var/mobile/Applications/41DF0A05-710D-48BB-A468-73B7B224F5A3/CrazyTimes.app/CrazyTimes
Identifier: CrazyTimes
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-02-09 18:22:36.422 -0500
OS Version: iPhone OS 5.0 (9A334)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00600ad0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x383a7fca objc_msgSend + 30
1 CrazyTimes 0x00114460 0x1000 + 1127520
2 CrazyTimes 0x000c2f10 0x1000 + 794384
3 UIKit 0x331b0f72 -[UIView(CALayerDelegate) drawLayer:inContext:] + 270
4 QuartzCore 0x328c0e16 -[CALayer drawInContext:] + 110
5 QuartzCore 0x328c0418 CABackingStoreUpdate_ + 1776
6 QuartzCore 0x328bfc16 CA::Layer::display_() + 966
7 QuartzCore 0x328bf832 CA::Layer::display() + 122
8 QuartzCore 0x328bf774 CA::Layer::display_if_needed(CA::Transaction*) + 168
9 QuartzCore 0x328bf11c CA::Context::commit_transaction(CA::Transaction*) + 228
10 QuartzCore 0x328bee50 CA::Transaction::commit() + 308
11 QuartzCore 0x328b6d7e CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 50
12 CoreFoundation 0x311dcb44 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 12
13 CoreFoundation 0x311dad80 __CFRunLoopDoObservers + 252
14 CoreFoundation 0x311db0da __CFRunLoopRun + 754
15 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
16 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
17 GraphicsServices 0x33d8cfe6 GSEventRunModal + 150
18 UIKit 0x331d073c UIApplicationMain + 1084
19 CrazyTimes 0x00004084 0x1000 + 12420
20 CrazyTimes 0x00003af8 0x1000 + 11000
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x324dd3b4 kevent + 24
1 libdispatch.dylib 0x32c31e78 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x32c31b96 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
6 WebCore 0x379f2128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
8 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x324edcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x369a030a _pthread_wqthread + 610
2 libsystem_c.dylib 0x369a009c start_wqthread + 0
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
6 Foundation 0x3821abc2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x3821aa8a -[NSThread main] + 66
8 Foundation 0x382ae59a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
10 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x324ed570 __select + 20
1 CoreFoundation 0x311e066a __CFSocketManager + 726
2 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
3 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x324edcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x369a030a _pthread_wqthread + 610
2 libsystem_c.dylib 0x369a009c start_wqthread + 0
Thread 7 name: WebCore: CFNetwork Loader
Thread 7:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3115e39e CFRunLoopRunInMode + 98
6 WebCore 0x37a1b69e _ZN7WebCoreL15runLoaderThreadEPv + 122
7 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
8 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 8 name: WebCore: LocalStorage
Thread 8:
0 libsystem_kernel.dylib 0x324ed068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x369a5f2e _pthread_cond_wait + 634
2 libsystem_c.dylib 0x369a5caa pthread_cond_wait + 34
3 JavaScriptCore 0x3768940e WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 54
4 WebCore 0x37b51494 WTF::PassOwnPtr<WebCore::LocalStorageTask> WTF::MessageQueue<WebCore::LocalStorageTask>::waitForMessageFilteredWithTimeout<bool ()(WebCore::LocalStorageTask*)>(WTF::MessageQueueWaitResult&, bool (&)(WebCore::LocalStorageTask*), double) + 52
5 WebCore 0x37b5144a WebCore::LocalStorageThread::threadEntryPointCallback(void*) + 106
6 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
7 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x324dd010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x324dd206 mach_msg + 50
2 CoreFoundation 0x311dc41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x311db154 __CFRunLoopRun + 876
4 CoreFoundation 0x3115e4d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x311db474 CFRunLoopRun + 92
6 CrazyTimes 0x00039ee4 0x1000 + 233188
7 Foundation 0x3821aa8a -[NSThread main] + 66
8 Foundation 0x382ae59a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
10 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 10 name: com.apple.coremedia.player.async
Thread 10:
0 libsystem_kernel.dylib 0x324ed068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x369a5f2e _pthread_cond_wait + 634
2 libsystem_c.dylib 0x369a5caa pthread_cond_wait + 34
3 CoreMedia 0x3255d000 FigSemaphoreWaitRelative + 212
4 MediaToolbox 0x3261afca fpa_AsyncMovieControlThread + 18
5 CoreMedia 0x3257cbc6 figThreadMain + 146
6 libsystem_c.dylib 0x369a5c16 _pthread_start + 314
7 libsystem_c.dylib 0x369a5ad0 thread_start + 0
Thread 11:
0 libsystem_kernel.dylib 0x324edcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x369a030a _pthread_wqthread + 610
2 libsystem_c.dylib 0x369a009c start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x09b99000 r1: 0x345621e3 r2: 0x0019e7dc r3: 0x0019e910
r4: 0x0019e800 r5: 0x09b99000 r6: 0x00199f3c r7: 0x2fdfdb00
r8: 0x00196f94 r9: 0x00118870 r10: 0x00196bdc r11: 0x0019789c
ip: 0x0019e8f4 sp: 0x2fdfdae0 lr: 0x00114467 pc: 0x383a7fca
cpsr: 0x20080030
UIViews are implemented with CALayers, so if you are using UIKit, you are using layers. My guess is that an already released object is receiving messages. Maybe you released an object more times than you should. Try recompiling with NSZombieEnabled.
3 UIKit 0x331b0f72 -[UIView(CALayerDelegate) drawLayer:inContext:] + 270
By any chance, did you release an objectA which is a delegate to objectB without removing the delegate assignment first, i.e. objectB.delegate = nil; [objectA release];?
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.