What is the cause of this crash, please?
Incident Identifier: A176CFB8-6BB7-4515-A4A2-82D2B962E097
CrashReporter Key: f02957b828fe4090389c1282ca8e38393b4e133d
Hardware Model: iPhone9,4
Process: OneMessenger [10627]
Path: /private/var/containers/Bundle/Application/03E067E9-E2C1-43F4-AC53-4E4F58131FF3/OneMessenger.app/OneMessenger
Identifier: com.onem.adhoc
Version: 158 (1.0.4)
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.onem.adhoc [3747]
Date/Time: 2017-05-10 17:37:48.6201 -0700
Launch Time: 2017-05-10 17:37:46.7161 -0700
OS Version: iPhone OS 10.3.1 (14E304)
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0xdead10cc
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 GraphicsServices 0x000000018cca0074 GSEventRunModal + 100 (GSEvent.c:2245)
6 UIKit 0x00000001914ef130 UIApplicationMain + 208 (UIApplication.m:4089)
7 OneMessenger 0x00000001004ff1b0 main + 88 (main.m:16)
8 libdyld.dylib 0x000000018a24559c start + 4
Thread 1:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 2:
0 libsystem_kernel.dylib 0x000000018a355a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018a41b274 _pthread_wqthread + 1260 (pthread.c:2205)
2 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 3:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 Foundation 0x000000018bd50d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x000000018bd71b34 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
7 UIKit 0x0000000191e795f8 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:313)
8 Foundation 0x000000018be4e2c8 __NSThread__start__ + 996 (NSThread.m:1163)
9 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
10 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
11 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x000000018a3558e8 __ulock_wait + 8
1 libdispatch.dylib 0x000000018a22577c _dispatch_ulock_wait + 48 (lock.c:327)
2 libdispatch.dylib 0x000000018a2258a4 _dispatch_thread_event_wait_slow + 36 (lock.c:515)
3 libdispatch.dylib 0x000000018a2234f0 _dispatch_barrier_sync_f_slow + 236 (lock.h:392)
4 libcorecrypto.dylib 0x000000018a1efd50 ccrng_cryptographic_generate + 200 (ccrng_cryptographic.c:196)
5 libcorecrypto.dylib 0x000000018a1d8434 ccn_random_bits + 52 (ccn_random_bits.c:17)
6 libcorecrypto.dylib 0x000000018a1b9fb0 ccec_generate_scalar_fips_retry + 108 (ccec_generate_scalar_fips_retry.c:39)
7 libcorecrypto.dylib 0x000000018a1f1514 ccec_generate_key_internal_fips + 148 (ccec_generate_key_internal_fips.c:31)
8 libcorecrypto.dylib 0x000000018a1c912c ccec_generate_key_fips + 24 (ccec_generate_key_fips.c:19)
9 libsystem_coretls.dylib 0x000000018a2f7660 sslEcdhCreateKey + 76 (sslCrypto.c:199)
10 libsystem_coretls.dylib 0x000000018a2fb16c SSLEncodeKeyExchange + 792 (sslKeyExchange.c:1367)
11 libsystem_coretls.dylib 0x000000018a2fcd4c SSLAdvanceHandshake + 2132 (sslHandshake.c:1214)
12 libsystem_coretls.dylib 0x000000018a3021c0 tls_handshake_continue + 40 (tls_handshake.c:334)
13 libnetwork.dylib 0x0000000197fa83a8 __nw_coretls_callback_handshake_message_block_invoke_3 + 76 (protocol_coretls.c:780)
14 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
15 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
16 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
17 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
18 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
19 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
20 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
21 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 6:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 Foundation 0x000000018bd50d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x000000018bda56b4 -[NSRunLoop(NSRunLoop) run] + 88 (NSRunLoop.m:389)
7 OneMessenger 0x000000010056e0a8 +[GAI threadMain:] + 64
8 Foundation 0x000000018be4e2c8 __NSThread__start__ + 996 (NSThread.m:1163)
9 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
10 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
11 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 CFNetwork 0x000000018ba42ca4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 (NSURLConnection.mm:364)
6 Foundation 0x000000018be4e2c8 __NSThread__start__ + 996 (NSThread.m:1163)
7 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
8 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
9 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 9:
0 libsystem_pthread.dylib 0x000000018a41ad78 start_wqthread + 0 (pthread.c:2333)
Thread 10:
0 libsystem_kernel.dylib 0x000000018a355a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018a41b0a0 _pthread_wqthread + 792 (pthread.c:2129)
2 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 11 name:
Thread 11:
0 libsystem_kernel.dylib 0x000000018a3558e8 __ulock_wait + 8
1 libdispatch.dylib 0x000000018a22577c _dispatch_ulock_wait + 48 (lock.c:327)
2 libdispatch.dylib 0x000000018a2258a4 _dispatch_thread_event_wait_slow + 36 (lock.c:515)
3 libdispatch.dylib 0x000000018a2234f0 _dispatch_barrier_sync_f_slow + 236 (lock.h:392)
4 OneMessenger 0x0000000100429538 +[DataBase getDeliveredInfoForMsgId:] + 136 (DataBase.m:8598)
5 OneMessenger 0x0000000100495708 -[SingleWebSocket messageViewedWithDictionary:] + 828 (SingleWebSocket.m:9584)
6 OneMessenger 0x000000010044ab18 -[SingleWebSocket websocketDidReceiveMessageWithSocket:text:] + 3672 (SingleWebSocket.m:854)
7 OneMessenger 0x00000001005332b0 specialized WebSocket.(processResponse(WebSocket.WSResponse) -> Bool).(closure #1) + 320 (WebSocket.swift:833)
8 OneMessenger 0x0000000100534a54 partial apply for WebSocket.(processResponse(WebSocket.WSResponse) -> Bool).(closure #1) + 64
9 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
10 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
11 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
12 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
13 libdispatch.dylib 0x000000018a220fa8 _dispatch_queue_override_invoke + 344 (queue.c:4890)
14 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
15 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
16 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
17 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 AVFAudio 0x00000001a53d3540 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:106)
6 AVFAudio 0x00000001a53f9814 CAPThread::Entry(CAPThread*) + 84
7 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
8 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
9 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 13 name:
Thread 13:
0 libsystem_kernel.dylib 0x000000018a337224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018a33709c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000018b308e88 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x000000018b306adc __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x000000018b236d94 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 CoreFoundation 0x000000018b31678c _legacyStreamRunLoop_workThread + 268 (CFStream.c:1775)
6 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
7 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
8 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x000000018a35523c __select + 8
1 CoreFoundation 0x000000018b30fca8 __CFSocketManager + 632 (CFSocket.c:2241)
2 libsystem_pthread.dylib 0x000000018a41d75c _pthread_body + 240 (pthread.c:697)
3 libsystem_pthread.dylib 0x000000018a41d66c _pthread_start + 284 (pthread.c:744)
4 libsystem_pthread.dylib 0x000000018a41ad84 thread_start + 4
Thread 15 name:
Thread 15:
0 libsystem_c.dylib 0x000000018a2734d8 confstr + 488 (confstr.c:225)
1 Foundation 0x000000018bd68240 NSTemporaryDirectory + 56 (NSPathUtilities.m:1826)
2 Foundation 0x000000018bd68240 NSTemporaryDirectory + 56 (NSPathUtilities.m:1826)
3 Foundation 0x000000018bd67a94 -[NSFileManager _URLForReplacingItemAtURL:error:] + 112 (NSFileManager.m:2747)
4 Foundation 0x000000018be2ed64 _NSCreateTemporaryFile_Protected + 504 (NSPlatform.m:1021)
5 Foundation 0x000000018bd66dc4 _NSWriteDataToFileWithExtendedAttributes + 356 (NSPlatform.m:1194)
6 Foundation 0x000000018be4b0c4 writeStringToURLOrPath + 224 (NSString.m:1556)
7 OneMessenger 0x00000001009fa024 +[FIRApp writeString:toURL:] + 96
8 OneMessenger 0x00000001009f79ac __32+[FIRApp addAppToAppDictionary:]_block_invoke + 192
9 OneMessenger 0x00000001009fcca4 -[FIRClearcutLogger sendNextPendingRequestWithCompletionHandler:] + 672
10 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
11 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
12 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
13 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
14 libdispatch.dylib 0x000000018a220fa8 _dispatch_queue_override_invoke + 344 (queue.c:4890)
15 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
16 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
17 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
18 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 16 name:
Thread 16:
0 libsystem_kernel.dylib 0x000000018a3394dc fsync + 8
1 libsqlite3.dylib 0x000000018b8b704c unixSync + 220 (sqlite3.c:33772)
2 libsqlite3.dylib 0x000000018b8b6a5c sqlite3PagerCommitPhaseOne + 1428 (sqlite3.c:18932)
3 libsqlite3.dylib 0x000000018b8a35a0 sqlite3BtreeCommitPhaseOne + 180 (sqlite3.c:66409)
4 libsqlite3.dylib 0x000000018b872d68 sqlite3VdbeHalt + 2508 (sqlite3.c:77161)
5 libsqlite3.dylib 0x000000018b89cb7c sqlite3VdbeExec + 56292 (sqlite3.c:82886)
6 libsqlite3.dylib 0x000000018b88e0e0 sqlite3_step + 528 (sqlite3.c:80263)
7 OneMessenger 0x00000001003fc2bc __25+[DataBase executeQuery:]_block_invoke + 72 (DataBase.m:1072)
8 libdispatch.dylib 0x000000018a2129e0 _dispatch_call_block_and_release + 24 (init.c:963)
9 libdispatch.dylib 0x000000018a2129a0 _dispatch_client_callout + 16 (object.m:473)
10 libdispatch.dylib 0x000000018a220ad4 _dispatch_queue_serial_drain + 928 (inline_internal.h:2431)
11 libdispatch.dylib 0x000000018a2162cc _dispatch_queue_invoke + 884 (queue.c:4853)
12 libdispatch.dylib 0x000000018a220fa8 _dispatch_queue_override_invoke + 344 (queue.c:4890)
13 libdispatch.dylib 0x000000018a222a50 _dispatch_root_queue_drain + 540 (inline_internal.h:2468)
14 libdispatch.dylib 0x000000018a2227d0 _dispatch_worker_thread3 + 124 (queue.c:5550)
15 libsystem_pthread.dylib 0x000000018a41b1d0 _pthread_wqthread + 1096 (pthread.c:2196)
16 libsystem_pthread.dylib 0x000000018a41ad7c start_wqthread + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000010004005 x1: 0x0000000007000806 x2: 0x0000000000000000 x3: 0x0000000000000c00
x4: 0x0000000000002403 x5: 0x00000000ffffffff x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x00000000fffffbbf x9: 0x0000000007000000 x10: 0x0000000007000100 x11: 0x0000000000001cc8
x12: 0x0001440000014503 x13: 0x0000000000000000 x14: 0x0001450000014500 x15: 0x0000000000000000
x16: 0xffffffffffffffe1 x17: 0x000000018b237294 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x00000000ffffffff x21: 0x0000000000002403 x22: 0x0000000000000c00 x23: 0x000000016fd02dd8
x24: 0x0000000007000806 x25: 0x0000000000000000 x26: 0x0000000007000806 x27: 0x0000000000000c00
x28: 0x0000000000000001 fp: 0x000000016fd02ce0 lr: 0x000000018a33709c
sp: 0x000000016fd02c90 pc: 0x000000018a337224 cpsr: 0x60000000
You need to look at the "Termination Reason". Your crash has the code 0xdead10cc.
According to Apple iOS docs, this means your "application has been terminated by the OS because it held on to a file lock or sqlite database lock during suspension."
See: https://developer.apple.com/library/content/technotes/tn2151/_index.html
For when Apple breaks that link, the full title of this tech note is Technical Note TN2151: Understanding and Analyzing Application Crash Reports.
Updated link Oct 2020: https://developer.apple.com/documentation/xcode/diagnosing_issues_using_crash_reports_and_device_logs/understanding_the_exception_types_in_a_crash_report
For when Apple breaks this new link, the new document is titled, "Understanding the Exception Types in a Crash Report", and it is contained under the hierarchy Documentation > Xcode > Diagnosing Issues Using Crash Reports and Device Logs.
Related
I have a serious issue guys. I have been building a flutter app which has been working well on emulator. However, while building for test flight, it keeps crashing.
I have tried a lot of things which includes regenerating the folder, flutter clean etc but it keeps crashing on real devices on test flight. This is painful to see as I don't have any way to debug this. I attached crash report though. Can someone relate with this?
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001bda2aa48 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001dde4a8d8 pthread_kill + 208 (pthread.c:1609)
2 libsystem_c.dylib 0x000000018e9910c0 abort + 120 (abort.c:118)
3 Flutter 0x0000000102189b2c 0x101ea8000 + 3021612
4 Flutter 0x0000000102189c5c 0x101ea8000 + 3021916
5 Flutter 0x0000000102381100 0x101ea8000 + 5083392
6 Flutter 0x00000001021eba54 0x101ea8000 + 3422804
7 Flutter 0x0000000101eb7a10 0x101ea8000 + 64016
8 Flutter 0x0000000101eccaf8 0x101ea8000 + 150264
9 Flutter 0x0000000101ecc934 0x101ea8000 + 149812
10 UIKitCore 0x0000000186d35d8c -[UINib instantiateWithOwner:options:] + 2292 (UINib.m:390)
11 UIKitCore 0x00000001868d87dc -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 280 (UIStoryboard.m:233)
12 UIKitCore 0x00000001868d8678 -[UIStoryboard _instantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 124 (UIStoryboard.m:212)
13 UIKitCore 0x00000001868dbaa8 -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 180 (UIApplication.m:4665)
14 UIKitCore 0x000000018694fecc -[UIApplication _loadMainInterfaceFile] + 276 (UIApplication.m:0)
15 UIKitCore 0x0000000186cf7718 -[UIApplication _runWithMainScene:transitionContext:completion:] + 972 (UIApplication.m:4407)
16 UIKitCore 0x0000000186b639ec -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 148 (_UISceneLifecycleMultiplexer.m:452)
17 UIKitCore 0x00000001869c6b00 _UIScenePerformActionsWithLifecycleActionMask + 96 (_UISceneLifecycleState.m:109)
18 UIKitCore 0x0000000186aeb9f4 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 196 (_UISceneLifecycleMultiplexer.m:565)
19 UIKitCore 0x0000000186c02204 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 240 (_UISceneLifecycleMultiplexer.m:514)
20 UIKitCore 0x0000000186e2f064 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 732 (_UISceneLifecycleMultiplexer.m:564)
21 UIKitCore 0x0000000186dbedac -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 336 (_UISceneLifecycleMultiplexer.m:470)
22 UIKitCore 0x00000001869c79e8 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block... + 188 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:73)
23 UIKitCore 0x0000000186a842f8 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 812 (BSAnimationSettings+UIKit.m:50)
24 UIKitCore 0x00000001869c9778 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 248 (_UISceneSettingsDiffAction.m:23)
25 UIKitCore 0x0000000186aaf530 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 356 (_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction.m:58)
26 UIKitCore 0x0000000186f0bbec __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.573 + 772 (UIScene.m:1775)
27 UIKitCore 0x00000001869f7f80 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248 (UIScene.m:1476)
28 UIKitCore 0x0000000186a3a3ec -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 264 (UIScene.m:1742)
29 UIKitCore 0x0000000186b68684 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 548 (UIApplication.m:3900)
30 UIKitCore 0x0000000186aad94c -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360 (UIApplicationSceneClientAgent.m:45)
31 FrontBoardServices 0x0000000194f4afc4 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 412 (FBSScene.m:439)
32 FrontBoardServices 0x0000000194f6d550 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.180 + 100 (FBSWorkspaceScenesClient.m:384)
33 FrontBoardServices 0x0000000194f2d714 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232 (FBSWorkspace.m:352)
Thread 1:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 2:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 3:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Foundation 0x0000000185c20b6c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:373)
6 Foundation 0x0000000185c5fd6c -[NSRunLoop(NSRunLoop) runUntilDate:] + 88 (NSRunLoop.m:420)
7 UIKitCore 0x0000000186c94950 -[UIEventFetcher threadMain] + 512 (UIEventFetcher.m:1167)
8 Foundation 0x0000000185c6d64c __NSThread__start__ + 776 (NSThread.m:915)
9 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
10 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001bda25754 __ulock_wait + 8
1 libdispatch.dylib 0x00000001841f1de0 _dlock_wait + 52 (lock.c:326)
2 libdispatch.dylib 0x00000001841f1bb8 _dispatch_thread_event_wait_slow$VARIANT$armv81 + 52 (lock.c:366)
3 libdispatch.dylib 0x0000000184204560 __DISPATCH_WAIT_FOR_QUEUE__ + 336 (lock.h:330)
4 libdispatch.dylib 0x000000018420415c _dispatch_sync_f_slow + 136 (queue.c:1762)
5 UIKitCore 0x0000000186b7e10c __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 112 (_UIRemoteKeyboards.m:1065)
6 CoreFoundation 0x00000001844e48e0 __invoking___ + 144
7 CoreFoundation 0x00000001845005b8 -[NSInvocation invoke] + 300 (NSForwarding.m:3378)
8 Foundation 0x0000000185c3c910 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 20 (NSXPCConnection.m:170)
9 Foundation 0x0000000185c5c0fc -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 552 (NSXPCConnection.m:316)
10 Foundation 0x0000000185c3875c __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3 + 208 (NSXPCConnection.m:1630)
11 libxpc.dylib 0x00000001dde74cc8 _xpc_connection_reply_callout + 60 (serializer.c:119)
12 libxpc.dylib 0x00000001dde69004 _xpc_connection_call_reply_async + 76 (connection.c:833)
13 libdispatch.dylib 0x0000000184222368 _dispatch_client_callout3 + 16 (object.m:586)
14 libdispatch.dylib 0x00000001841f6808 _dispatch_mach_msg_async_reply_invoke$VARIANT$armv81 + 344 (mach.c:2464)
15 libdispatch.dylib 0x00000001841fd2e8 _dispatch_lane_serial_drain$VARIANT$armv81 + 300 (inline_internal.h:0)
16 libdispatch.dylib 0x00000001841fdeec _dispatch_lane_invoke$VARIANT$armv81 + 440 (queue.c:3937)
17 libdispatch.dylib 0x000000018420776c _dispatch_workloop_worker_thread + 616 (queue.c:6732)
18 libsystem_pthread.dylib 0x00000001dde3ef38 _pthread_wqthread + 284 (pthread.c:2495)
19 libsystem_pthread.dylib 0x00000001dde3eaa4 start_wqthread + 8
Thread 6:
0 libsystem_pthread.dylib 0x00000001dde3ea9c _pthread_cond_updateval + 268 (pthread_cond.c:992)
Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Flutter 0x000000010218de08 0x101ea8000 + 3038728
6 Flutter 0x000000010218d6c4 0x101ea8000 + 3036868
7 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Flutter 0x000000010218de08 0x101ea8000 + 3038728
6 Flutter 0x000000010218d6c4 0x101ea8000 + 3036868
7 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001bda24b70 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001bda25194 mach_msg + 72 (mach_msg.c:119)
2 CoreFoundation 0x00000001844caad0 __CFRunLoopServiceMachPort + 368 (CFRunLoop.c:2646)
3 CoreFoundation 0x00000001844cebb8 __CFRunLoopRun + 1184 (CFRunLoop.c:3000)
4 CoreFoundation 0x00000001844e1d8c CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
5 Flutter 0x000000010218de08 0x101ea8000 + 3038728
6 Flutter 0x000000010218d6c4 0x101ea8000 + 3036868
7 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
8 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 11 name:
Thread 11:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 13 name:
Thread 13:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 14 name:
Thread 14:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 15 name:
Thread 15:
0 libsystem_kernel.dylib 0x00000001bda25550 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001dde3f96c _pthread_cond_wait$VARIANT$armv81 + 1216 (pthread_cond.c:636)
2 libc++.1.dylib 0x000000019b6572b8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:437)
3 Flutter 0x00000001021887bc 0x101ea8000 + 3016636
4 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
5 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 16 name:
Thread 16:
0 libsystem_kernel.dylib 0x00000001bda26358 kevent + 8
1 Flutter 0x00000001022d694c 0x101ea8000 + 4385100
2 Flutter 0x00000001023040d4 0x101ea8000 + 4571348
3 libsystem_pthread.dylib 0x00000001dde40458 _pthread_start + 116 (pthread.c:890)
4 libsystem_pthread.dylib 0x00000001dde3eab0 thread_start + 8
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000140 x5: 0x0000000101847f20 x6: 0x000000000000001c x7: 0x000000000000003e
x8: 0x0000000100f88580 x9: 0x1586ebb33258f53a x10: 0x00000000000007fd x11: 0x0000000000000001
x12: 0x0000000000000014 x13: 0x00000000a6e2280d x14: 0x00000000a7023000 x15: 0x0000000000023000
x16: 0x0000000000000148 x17: 0x0000000000003edc x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000000000103 x21: 0x0000000100f88660 x22: 0x000000016f1829f8 x23: 0x0000000103034e00
x24: 0x0000000281323014 x25: 0x0000000281323002 x26: 0x0000000102635000 x27: 0x000000010300e5f8
x28: 0x0000000281322fc0 fp: 0x000000016f182990 lr: 0x00000001dde4a8d8
sp: 0x000000016f182970 pc: 0x00000001bda2aa48 cpsr: 0x40000000
esr: 0x56000080 Address size fault
Binary Images:
0x100c78000 - 0x100c9bfff Runner arm64 <e654fed9801037009c71928b20d4856b> /private/var/containers/Bundle/Application/C5CB602E-8193-491A-8CC2-510494B02AE7/Runner.app/Runner
0x100f28000 - 0x100f7bfff dyld arm64 <d7a0282e93de3a1e981327e84517cc96> /usr/lib/dyld
0x101ea8000 - 0x1025c7fff Flutter arm64 <f7e47c9752253d4e8010581aeb852efb> /private/var/containers/Bundle/Application/C5CB602E-8193-491A-8CC2-510494B02AE7/Runner.app/Frameworks/Flutter.framework/Flutter
0x1841be000 - 0x184240fff libdispatch.dylib arm64 <5d722afcfb8c3769bf66167bb94a6133> /usr/lib/system/libdispatch.dylib
0x1844c4000 - 0x1848fefff CoreFoundation arm64 <fe94d75f5f1d3127ba500161d8817ee6> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x185c09000 - 0x185ee7fff Foundation arm64 <b17c0d3bcabb321290560791b2521900> /System/Library/Frameworks/Foundation.framework/Foundation
0x186829000 - 0x187fb0fff UIKitCore arm64 <4c9b5192c562355cbfca71961f92935e> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x18e972000 - 0x18e9ecfff libsystem_c.dylib arm64 <b88a565bccaf3f569089e56cdcf1b5e6> /usr/lib/system/libsystem_c.dylib
0x194f24000 - 0x194fc2fff FrontBoardServices arm64 <0d3af6437c5b34afac62d438b1d74315>
Recently my Crashlytics & Apple crash logs received many crashes with -[CTTelephonyNetworkInfo updateRat:descriptor:] crash without much other information.
iOS 15 spuriously not encounter this issue so far.
[CTTelephonyNetworkInfo connectionStateChanged:connection:dataConnectionStatusInfo:] seems like related to network status switch, any idea or anyone encounter similar issues on your side?
Incident Identifier: BBE5C5D0-CCFC-4844-959B-35251E747380
Hardware Model: iPhone11,8
Process: MyApp [51043]
Path: /private/var/containers/Bundle/Application/6039F755-4C6D-4CB8-8CE2-D0F77763622B/MyApp.app/MyApp
Identifier: com.myapp.fake.row
Version: 3 (6.1.4)
AppStoreTools: 13A227
AppVariant: 1:iPhone11,8:13
Code Type: ARM-64 (Native)
Role: unknown
Parent Process: launchd [1]
Coalition: com.myapp.fake.row [858]
Date/Time: 2021-10-13 16:52:41.5984 +0800
Launch Time: 2021-10-12 18:02:45.3682 +0800
OS Version: iPhone OS 14.7.1 (18G82)
Release Type: User
Baseband Version: 3.04.01
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000046021dd60
VM Region Info: 0x46021dd60 is not in any region. Bytes after previous region: 7518412129 Bytes before following region: 48853033632
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 280000000-2a0000000 [512.0M] rw-/rwx SM=COW
---> GAP OF 0xd20000000 BYTES
commpage (reserved) fc0000000-1000000000 [ 1.0G] ---/--- SM=NUL ...(unallocated)
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [51043]
Triggered by Thread: 17
Thread 0 name:
Thread 0:
0 JavaScriptCore 0x00000001a8644810 WTF::AtomStringImpl::remove(WTF::AtomStringImpl*) + 616 (HashTable.h:1329)
1 JavaScriptCore 0x00000001a8644840 WTF::AtomStringImpl::remove(WTF::AtomStringImpl*) + 664 (HashTable.h:1056)
2 JavaScriptCore 0x00000001a8689498 WTF::StringImpl::~StringImpl() + 76 (StringImpl.cpp:118)
3 JavaScriptCore 0x00000001a8689634 WTF::StringImpl::destroy(WTF::StringImpl*) + 24 (StringImpl.cpp:108)
4 JavaScriptCore 0x00000001a823a468 JSC::BuiltinNames::~BuiltinNames() + 5096 (StringImpl.h:1118)
5 JavaScriptCore 0x00000001a82205a0 JSC::CommonIdentifiers::~CommonIdentifiers() + 13024 (BuiltinNames.h:193)
6 JavaScriptCore 0x00000001a841648c JSC::VM::~VM() + 404 (VM.cpp:647)
7 JavaScriptCore 0x00000001a83078dc JSC::JSLockHolder::~JSLockHolder() + 244 (ThreadSafeRefCounted.h:117)
8 JavaScriptCore 0x00000001a7a0ace8 JSContextGroupRelease + 60 (JSContextRef.cpp:85)
9 JavaScriptCore 0x00000001a771f8c8 -[JSVirtualMachine dealloc] + 32 (JSVirtualMachine.mm:128)
10 JavaScriptCore 0x00000001a771f868 -[JSContext dealloc] + 88 (JSContext.mm:97)
11 JavaScriptCore 0x00000001a8683b40 WTF::RunLoop::TimerBase::start(WTF::Seconds, bool)::$_1::__invoke(__CFRunLoopTimer*, void*) + 76 (RunLoopCF.cpp:126)
12 CoreFoundation 0x000000019e27d1d4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1807)
13 CoreFoundation 0x000000019e27cdd0 __CFRunLoopDoTimer + 1076 (CFRunLoop.c:2415)
14 CoreFoundation 0x000000019e27c220 __CFRunLoopDoTimers + 328 (CFRunLoop.c:2575)
15 CoreFoundation 0x000000019e275f8c __CFRunLoopRun + 1872 (CFRunLoop.c:3080)
16 CoreFoundation 0x000000019e275308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
17 GraphicsServices 0x00000001b58f8734 GSEventRunModal + 164 (GSEvent.c:2259)
18 UIKitCore 0x00000001a0cf375c -[UIApplication _run] + 1072 (UIApplication.m:3269)
19 UIKitCore 0x00000001a0cf8fcc UIApplicationMain + 168 (UIApplication.m:4740)
20 MyApp 0x0000000104617380 main + 68 (GlobalTheme.swift:21)
21 libdyld.dylib 0x000000019df31cf8 start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001cc4c84fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cc4c7884 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019e27be58 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019e275cf8 __CFRunLoopRun + 1212 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019e275308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 Foundation 0x000000019f564d8c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:377)
6 Foundation 0x000000019f564c58 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:424)
7 UIKitCore 0x00000001a0da8304 -[UIEventFetcher threadMain] + 516 (UIEventFetcher.m:929)
8 Foundation 0x000000019f6d630c __NSThread__start__ + 864 (NSThread.m:724)
9 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
10 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001cc4f0598 write + 8
1 FirebaseCrashlytics 0x00000001051faf04 FIRCLSSDKFileLog + 316 (FIRCLSInternalLogging.c:0)
2 FirebaseCrashlytics 0x00000001051fcd50 FIRCLSMachExceptionReply + 128 (FIRCLSMachException.c:267)
3 FirebaseCrashlytics 0x00000001051fcd50 FIRCLSMachExceptionServer + 992 (FIRCLSMachException.c:178)
4 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
5 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001cc4ed0cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001e9f74460 _pthread_cond_wait + 1292 (pthread_cond.c:640)
2 ComScore 0x0000000105040504 0x104fb0000 + 591108
3 ComScore 0x0000000104fffbac 0x104fb0000 + 326572
4 ComScore 0x0000000105040dcc 0x104fb0000 + 593356
5 ComScore 0x0000000105044b2c 0x104fb0000 + 609068
6 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
7 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001cc4ed0cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001e9f74460 _pthread_cond_wait + 1292 (pthread_cond.c:640)
2 ComScore 0x0000000105040504 0x104fb0000 + 591108
3 ComScore 0x0000000104fffbac 0x104fb0000 + 326572
4 ComScore 0x0000000105040dcc 0x104fb0000 + 593356
5 ComScore 0x0000000105044b2c 0x104fb0000 + 609068
6 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
7 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001cc4c84fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cc4c7884 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019e27be58 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019e275cf8 __CFRunLoopRun + 1212 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019e275308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 CFNetwork 0x000000019eb53b38 +[__CFN_CoreSchedulingSetRunnable _run:] + 568 (CoreSchedulingSet.mm:1374)
6 Foundation 0x000000019f6d630c __NSThread__start__ + 864 (NSThread.m:724)
7 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
8 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 6:
0 libsystem_kernel.dylib 0x00000001cc4ed0cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001e9f74434 _pthread_cond_wait + 1248 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b2e87efc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28 (__threading_support:428)
3 NewRelic 0x00000001057289a8 0x1056a8000 + 526760
4 NewRelic 0x0000000105728f7c 0x1056a8000 + 528252
5 NewRelic 0x000000010572911c 0x1056a8000 + 528668
6 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
7 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 7:
0 libsystem_kernel.dylib 0x00000001cc4ed0cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001e9f74434 _pthread_cond_wait + 1248 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b2e87efc std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28 (__threading_support:428)
3 NewRelic 0x00000001057289a8 0x1056a8000 + 526760
4 NewRelic 0x0000000105728f7c 0x1056a8000 + 528252
5 NewRelic 0x000000010572911c 0x1056a8000 + 528668
6 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
7 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001cc4ed0cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001e9f74434 _pthread_cond_wait + 1248 (pthread_cond.c:636)
2 libc++.1.dylib 0x00000001b2e87f98 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::r... + 100 (__threading_support:434)
3 JavaScriptCore 0x00000001a86f5118 bmalloc::Scavenger::threadRunLoop() + 552 (__mutex_base:0)
4 JavaScriptCore 0x00000001a86f4bcc bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 16 (Scavenger.cpp:395)
5 JavaScriptCore 0x00000001a86f60e4 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scaveng... + 48 (type_traits:3747)
6 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
7 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x00000001cc4c84fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cc4c7884 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019e27be58 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019e275cf8 __CFRunLoopRun + 1212 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019e275308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 Foundation 0x000000019f564d8c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:377)
6 FirebaseDatabase 0x0000000105297528 -[_FSRRunLoopThread main] + 252 (FSRWebSocket.m:1860)
7 Foundation 0x000000019f6d630c __NSThread__start__ + 864 (NSThread.m:724)
8 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
9 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 10 name:
Thread 10:
0 libsystem_kernel.dylib 0x00000001cc4ed62c select$DARWIN_EXTSN + 8
1 CoreFoundation 0x000000019e289034 __CFSocketManager + 624 (CFSocket.c:1343)
2 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
3 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 11 name:
Thread 11:
0 libsystem_kernel.dylib 0x00000001cc4ef150 kevent + 8
1 Realm 0x000000010585a720 realm::_impl::ExternalCommitHelper::listen() + 160 (external_commit_helper.cpp:216)
2 Realm 0x000000010585b1ec operator() + 4 (external_commit_helper.cpp:173)
3 Realm 0x000000010585b1ec __invoke<(lambda at /MyApp/Pods/Realm/Realm/ObjectStore/src/impl/apple/external_commit_helper.cpp:171:28)> + 4 (type_traits:3747)
4 Realm 0x000000010585b1ec __thread_execute<std::__1::unique_ptr<std::__1::__thread_struct>, (lambda at /MyApp/Pods/Realm/Realm/ObjectStore/src/impl/apple/external_commit_helper.cpp:... + 4 (thread:280)
5 Realm 0x000000010585b1ec void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, realm::_impl::ExternalCommitHelper::ExternalCom... + 52 (thread:291)
6 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
7 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x00000001cc4c84fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cc4c7884 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019e27be58 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019e275cf8 __CFRunLoopRun + 1212 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019e275308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 AudioSession 0x00000001a5d24f20 GenericRunLoopThread::Entry(void*) + 164 (GenericRunLoopThread.h:91)
6 AudioSession 0x00000001a5d270d8 CAPThread::Entry(CAPThread*) + 92 (CAPThread.cpp:321)
7 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
8 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 13 name:
Thread 13:
0 libsystem_kernel.dylib 0x00000001cc4c84fc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001cc4c7884 mach_msg + 76 (mach_msg.c:103)
2 CoreFoundation 0x000000019e27be58 __CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2641)
3 CoreFoundation 0x000000019e275cf8 __CFRunLoopRun + 1212 (CFRunLoop.c:2974)
4 CoreFoundation 0x000000019e275308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
5 Foundation 0x000000019f564d8c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:377)
6 Foundation 0x000000019f59843c -[NSRunLoop(NSRunLoop) run] + 92 (NSRunLoop.m:402)
7 MyApp 0x00000001047be170 +[GAI threadMain:] + 64
8 Foundation 0x000000019f6d630c __NSThread__start__ + 864 (NSThread.m:724)
9 libsystem_pthread.dylib 0x00000001e9f70bfc _pthread_start + 320 (pthread.c:887)
10 libsystem_pthread.dylib 0x00000001e9f79758 thread_start + 8
Thread 14:
0 libsystem_pthread.dylib 0x00000001e9f79744 start_wqthread + 0
Thread 15:
0 libsystem_pthread.dylib 0x00000001e9f79744 start_wqthread + 0
Thread 16:
0 libsystem_pthread.dylib 0x00000001e9f79744 start_wqthread + 0
Thread 17 name:
Thread 17 Crashed:
0 libobjc.A.dylib 0x00000001b2e09dd0 objc_release + 16 (objc-runtime-new.h:1589)
1 CoreTelephony 0x000000019e8686e8 -[CTTelephonyNetworkInfo updateRat:descriptor:] + 556 (CTTelephonyNetworkInfo.mm:671)
2 CoreTelephony 0x000000019e868430 -[CTTelephonyNetworkInfo queryRatForDescriptor:] + 164 (CTTelephonyNetworkInfo.mm:636)
3 CoreTelephony 0x000000019e8671b8 -[CTTelephonyNetworkInfo connectionStateChanged:connection:dataConnectionStatusInfo:] + 72 (CTTelephonyNetworkInfo.mm:471)
4 CoreFoundation 0x000000019e307724 __invoking___ + 148
5 CoreFoundation 0x000000019e1dad04 -[NSInvocation invoke] + 380 (NSForwarding.m:3448)
6 CoreFoundation 0x000000019e1db308 -[NSInvocation invokeWithTarget:] + 80 (NSForwarding.m:3549)
7 CoreTelephony 0x000000019e8712cc void dispatch::async<-[CoreTelephonyClientMux sink:handleNotification:]::$_2>(dispatch_queue_s*, std::__1::unique_ptr<-[CoreTelephonyClientMux sink:handleNotification:]::$_2, std::__1::default_dele... + 44 (CoreTelephonyClientMux.mm:238)
8 libdispatch.dylib 0x000000019deef81c _dispatch_client_callout + 20 (object.m:559)
9 libdispatch.dylib 0x000000019def7004 _dispatch_lane_serial_drain + 620 (inline_internal.h:2557)
10 libdispatch.dylib 0x000000019def7c00 _dispatch_lane_invoke + 404 (queue.c:3862)
11 libdispatch.dylib 0x000000019df024bc _dispatch_workloop_worker_thread + 764 (queue.c:6589)
12 libsystem_pthread.dylib 0x00000001e9f727a4 _pthread_wqthread + 276 (pthread.c:2437)
13 libsystem_pthread.dylib 0x00000001e9f7974c start_wqthread + 8
Thread 18:
0 libsystem_pthread.dylib 0x00000001e9f79744 start_wqthread + 0
Thread 19:
0 libsystem_pthread.dylib 0x00000001e9f79744 start_wqthread + 0
Thread 20 name:
Thread 20:
0 libdispatch.dylib 0x000000019df17bfc firehose_drain_notifications_once + 0 (firehose_buffer.c:424)
1 libdispatch.dylib 0x000000019df17798 firehose_buffer_tracepoint_reserve_slow + 52 (firehose_buffer.c:1348)
2 libdispatch.dylib 0x000000019df1615c voucher_activity_trace_v_2 + 988 (firehose_inline_internal.h:390)
3 libsystem_trace.dylib 0x00000001b4b59864 _os_log_impl_flatten_and_send + 5592 (log.c:1866)
4 libnetwork.dylib 0x000000019f2441f4 nw_connection_endpoint_report_on_nw_queue + 7888 (connection.m:0)
5 libnetwork.dylib 0x000000019eeb9578 nw_endpoint_handler_report + 304 (endpoint_handler.m:0)
6 libnetwork.dylib 0x000000019f2222a8 nw_endpoint_resolver_receive_report + 3060 (endpoint_resolver.m:0)
7 libnetwork.dylib 0x000000019eeb9578 nw_endpoint_handler_report + 304 (endpoint_handler.m:0)
8 libnetwork.dylib 0x000000019eebebd8 nw_endpoint_handler_path_change + 1392 (endpoint_handler.m:871)
9 libnetwork.dylib 0x000000019eebd0a8 __nw_endpoint_handler_initialize_association_block_invoke + 156 (endpoint_handler.m:898)
10 libnetwork.dylib 0x000000019f0677d8 __nw_association_update_paths_block_invoke.81 + 92 (association.m:316)
11 libnetwork.dylib 0x000000019f217828 nw_hash_table_apply + 124 (hash_table.c:381)
12 libnetwork.dylib 0x000000019f0670ec nw_association_update_paths + 488 (association.m:311)
13 libnetwork.dylib 0x000000019f373e3c nw_path_necp_update_evaluator + 2092 (path_evaluation.m:996)
14 libnetwork.dylib 0x000000019f3732e4 nw_path_necp_check_for_updates + 1028 (path_evaluation.m:1084)
15 libdispatch.dylib 0x000000019deef81c _dispatch_client_callout + 20 (object.m:559)
16 libdispatch.dylib 0x000000019def2cf4 _dispatch_continuation_pop + 448 (inline_internal.h:2557)
17 libdispatch.dylib 0x000000019df054b8 _dispatch_source_invoke + 1284 (source.c:570)
18 libdispatch.dylib 0x000000019def8ee8 _dispatch_workloop_invoke + 1680 (inline_internal.h:2598)
19 libdispatch.dylib 0x000000019df024bc _dispatch_workloop_worker_thread + 764 (queue.c:6589)
20 libsystem_pthread.dylib 0x00000001e9f727a4 _pthread_wqthread + 276 (pthread.c:2437)
21 libsystem_pthread.dylib 0x00000001e9f7974c start_wqthread + 8
Thread 21:
0 libsystem_pthread.dylib 0x00000001e9f79744 start_wqthread + 0
Thread 17 crashed with ARM Thread State (64-bit):
x0: 0x00000002831bdd40 x1: 0x00000001ed675455 x2: 0x0000000000000002 x3: 0x00000001ad962188
x4: 0x00000000000062dc x5: 0x0000000000000001 x6: 0x3130303030303030 x7: 0x0000000000000000
x8: 0x0000dbc46021dd40 x9: 0x000000046021dd40 x10: 0x000000070000078c x11: 0x00ff0001071d5400
x12: 0x00000000000000fd x13: 0x00000001071d63c0 x14: 0x00000000cce5e000 x15: 0x00000002009a1b80
x16: 0x00000001b2e09dc0 x17: 0xed017f019e1eb8b8 x18: 0x0000000000000000 x19: 0x00000002831de250
x20: 0x0000000283898de0 x21: 0x00000002831bdd40 x22: 0x0000000281b951a0 x23: 0x00000002831de4c0
x24: 0x000000028389ea20 x25: 0x00000002831de4c0 x26: 0x00000002831de4c0 x27: 0x0000000000000000
x28: 0x0000000000000104 fp: 0x000000016bbbe7d0 lr: 0x000000019e8686e8
sp: 0x000000016bbbe790 pc: 0x00000001b2e09dd0 cpsr: 0x20000000
esr: 0x92000006 (Data Abort) byte read Translation fault
The problem is that it crashed whilst doing a release from an asynchronous callback. That normally means that the object lifetime is incorrectly managed. That is perhaps because the original object was not properly retained, and so when it was released, it was double-released. I noticed that the problem comes via C++ code (the .mm file in the crash); the standard template library has its own clean-up lifecycle and the mix of Objective-C with C++ can be a road to tripping up on these subtle issues.
I suggest you run your code with memory diagnostics enabled. First go with detecting for Zombie objects. Project->Scheme->Edit Scheme; Select Diagnostics Tab; Memory Management->Zombie Objects.
You ask for an answer from a reputable source; I've published a book "iOS Crash Dump Analysis" that demonstrates how mixing C++ and Objective-C can lead to issues such as these.
I downloaded a crash log from Xcode (in organizer window) then I symbolicated it with this answer:https://stackoverflow.com/a/39988585/1270400
Here my crash log:
Hardware Model: iPhone8,1
Process: Ribony [240]
Path: /private/var/containers/Bundle/Application/0FEE0ECC-E7BD-4C72-B0DF-4B699BDA7C42/Ribony.app/Ribony
Identifier: com.impact.ribony
Version: 24 (3.0.1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.impact.ribony [372]
Date/Time: 2016-10-14 19:28:29.1948 +0300
Launch Time: 2016-10-14 19:28:20.2985 +0300
OS Version: iPhone OS 10.0.2 (14A456)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x18c1541c0 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x18ab8c55c objc_exception_throw + 56
2 CoreFoundation 0x18c0304ac -[__NSArrayM objectAtIndex:] + 228
3 UIKit 0x1922d60a0 -[UITableView _existingCellForRowAtIndexPath:] + 160
4 UIKit 0x1922e5cc4 -[UITableView _heightForRowAtIndexPath:] + 160
5 UIKit 0x1920dd6ac -[UISectionRowData heightForRow:inSection:canGuess:] + 280
6 UIKit 0x1920dd3d4 -[UITableViewRowData rectForRow:inSection:heightCanBeGuessed:] + 992
7 UIKit 0x1920e06d8 -[UITableView rectForRowAtIndexPath:] + 164
8 UIKit 0x1921ba020 -[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:] + 940
9 UIKit 0x1921b9b2c -[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 52
10 Ribony 0x10008c730 0x10002c000 + 395056
11 libdispatch.dylib 0x18afdd1c0 _dispatch_client_callout + 16
12 libdispatch.dylib 0x18afea008 _dispatch_continuation_pop + 576
13 libdispatch.dylib 0x18aff6648 _dispatch_source_latch_and_call + 204
14 libdispatch.dylib 0x18afdf164 _dispatch_source_invoke + 820
15 libdispatch.dylib 0x18afe1bc0 _dispatch_main_queue_callback_4CF + 572
16 CoreFoundation 0x18c101f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
17 CoreFoundation 0x18c0ffb18 __CFRunLoopRun + 1660
18 CoreFoundation 0x18c02e048 CFRunLoopRunSpecific + 444
19 GraphicsServices 0x18dab1198 GSEventRunModal + 180
20 UIKit 0x192008628 -[UIApplication _run] + 684
21 UIKit 0x192003360 UIApplicationMain + 208
22 Ribony 0x100032fd8 0x10002c000 + 28632
23 libdyld.dylib 0x18b0105b8 start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018b122014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018b1e9460 pthread_kill + 112
2 libsystem_c.dylib 0x000000018b0963f4 abort + 140
3 libc++abi.dylib 0x000000018ab612d4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x000000018ab7ecc0 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x000000018ab8c844 _objc_terminate() + 124
6 libc++abi.dylib 0x000000018ab7b66c std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x000000018ab7b6dc std::terminate() + 64
8 libobjc.A.dylib 0x000000018ab8c7a0 _destroyAltHandlerList + 0
9 libdispatch.dylib 0x000000018afdd1d4 _dispatch_client_callout + 36
10 libdispatch.dylib 0x000000018afea008 _dispatch_continuation_pop + 576
11 libdispatch.dylib 0x000000018aff6648 _dispatch_source_latch_and_call + 204
12 libdispatch.dylib 0x000000018afdf164 _dispatch_source_invoke + 820
13 libdispatch.dylib 0x000000018afe1bc0 _dispatch_main_queue_callback_4CF + 572
14 CoreFoundation 0x000000018c101f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
15 CoreFoundation 0x000000018c0ffb18 __CFRunLoopRun + 1660
16 CoreFoundation 0x000000018c02e048 CFRunLoopRunSpecific + 444
17 GraphicsServices 0x000000018dab1198 GSEventRunModal + 180
18 UIKit 0x0000000192008628 -[UIApplication _run] + 684
19 UIKit 0x0000000192003360 UIApplicationMain + 208
20 Ribony 0x0000000100032fd8 0x10002c000 + 28632
21 libdyld.dylib 0x000000018b0105b8 start + 4
Thread 1:
0 libsystem_kernel.dylib 0x000000018b122a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018b1e536c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x000000018b1e4db4 start_wqthread + 4
Thread 2:
0 libsystem_pthread.dylib 0x000000018b1e4db0 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x000000018b122a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018b1e536c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x000000018b1e4db4 start_wqthread + 4
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x000000018b10416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b103fdc mach_msg + 72
2 CoreFoundation 0x000000018c101cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c0ff908 __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018c02e048 CFRunLoopRunSpecific + 444
5 Foundation 0x000000018cb3cb1c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018cb5d60c -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000019297dc7c -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018cc3a50c __NSThread__start__ + 1024
9 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 5 name: RLMRealm notification listener
Thread 5:
0 libsystem_kernel.dylib 0x000000018b108630 kevent + 8
1 Realm 0x0000000100469890 realm::_impl::ExternalCommitHelper::listen() (external_commit_helper.cpp:199)
2 Realm 0x000000010046a950 std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0>::operator()() (future:2341)
3 Realm 0x000000010046a8d8 std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::__execute() (future:1032)
4 Realm 0x000000010046aaa0 std::__1::__thread_proxy<std::__1::tuple<void (std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >::*)(), std::__1::__async_assoc_state<void, std::__1::__async_func<realm::_impl::ExternalCommitHelper::ExternalCommitHelper(realm::_impl::RealmCoordinator&)::$_0> >*> >(void*, void*) (memory:2525)
5 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
6 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
7 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 6 name: GAIThread
Thread 6:
0 libsystem_kernel.dylib 0x000000018b10416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b103fdc mach_msg + 72
2 CoreFoundation 0x000000018c101cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c0ff908 __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018c02e048 CFRunLoopRunSpecific + 444
5 Foundation 0x000000018cb3cb1c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018cb912a0 -[NSRunLoop(NSRunLoop) run] + 88
7 Ribony 0x00000001000f4484 0x10002c000 + 820356
8 Foundation 0x000000018cc3a50c __NSThread__start__ + 1024
9 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x000000018b122a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018b1e536c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x000000018b1e4db4 start_wqthread + 4
Thread 8 name: AVAudioSession Notify Thread
Thread 8:
0 libsystem_kernel.dylib 0x000000018b10416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b103fdc mach_msg + 72
2 CoreFoundation 0x000000018c101cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c0ff908 __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018c02e048 CFRunLoopRunSpecific + 444
5 AVFAudio 0x00000001a57d1fe8 GenericRunLoopThread::Entry(void*) + 164
6 AVFAudio 0x00000001a57f7f14 CAPThread::Entry(CAPThread*) + 84
7 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
9 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 9 name: com.apple.NSURLConnectionLoader
Thread 9:
0 libsystem_kernel.dylib 0x000000018b10416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b103fdc mach_msg + 72
2 CoreFoundation 0x000000018c101cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c0ff908 __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018c02e048 CFRunLoopRunSpecific + 444
5 CFNetwork 0x000000018c81bcec +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
6 Foundation 0x000000018cc3a50c __NSThread__start__ + 1024
7 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
9 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 10:
0 libsystem_pthread.dylib 0x000000018b1e4db0 start_wqthread + 0
Thread 11:
0 libsystem_pthread.dylib 0x000000018b1e4db0 start_wqthread + 0
Thread 12:
0 libsystem_kernel.dylib 0x000000018b122a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018b1e536c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x000000018b1e4db4 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x000000018b121e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000018b1e69d0 _pthread_cond_wait + 640
2 libc++.1.dylib 0x000000018ab113ec std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 56
3 JavaScriptCore 0x00000001908d6548 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 112
4 JavaScriptCore 0x00000001908d64bc bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 168
5 JavaScriptCore 0x00000001908d639c std::__1::__shared_ptr_emplace<std::__1::mutex, std::__1::allocator<std::__1::mutex> >::~__shared_ptr_emplace() + 0
6 JavaScriptCore 0x00000001908d664c void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 92
7 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
9 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 14 name: WebThread
Thread 14:
0 libsystem_kernel.dylib 0x000000018b10416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b103fdc mach_msg + 72
2 CoreFoundation 0x000000018c101cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c0ff908 __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018c02e048 CFRunLoopRunSpecific + 444
5 WebCore 0x0000000190bcfa2c RunWebThread(void*) + 456
6 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
7 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
8 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 15 name: JIT Worklist Worker Thread
Thread 15:
0 libsystem_kernel.dylib 0x000000018b121e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000018b1e69d0 _pthread_cond_wait + 640
2 libc++.1.dylib 0x000000018ab113ec std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 56
3 JavaScriptCore 0x00000001908bee6c WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2016
4 JavaScriptCore 0x00000001906979b8 JSC::JITWorklist::runThread() + 192
5 JavaScriptCore 0x0000000190697e08 WTF::Vector<WTF::RefPtr<JSC::JITWorklist::Plan>, 32ul, WTF::CrashOnOverflow, 16ul>::expandCapacity(unsigned long, WTF::RefPtr<JSC::JITWorklist::Plan>*) + 0
6 JavaScriptCore 0x000000019000735c WTF::threadEntryPoint(void*) + 212
7 JavaScriptCore 0x000000019000726c WTF::wtfThreadEntryPoint(void*) + 24
8 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
9 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
10 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 16 name: WTF Parallel Helper Thread
Thread 16:
0 libsystem_kernel.dylib 0x000000018b121e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000018b1e69d0 _pthread_cond_wait + 640
2 libc++.1.dylib 0x000000018ab113ec std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 56
3 JavaScriptCore 0x00000001908bee6c WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 2016
4 JavaScriptCore 0x00000001908be464 WTF::ParallelHelperPool::waitForClientWithTask(WTF::Locker<WTF::LockBase> const&) + 288
5 JavaScriptCore 0x00000001908be204 WTF::ParallelHelperPool::helperThreadBody() + 76
6 JavaScriptCore 0x000000019000735c WTF::threadEntryPoint(void*) + 212
7 JavaScriptCore 0x000000019000726c WTF::wtfThreadEntryPoint(void*) + 24
8 libsystem_pthread.dylib 0x000000018b1e7860 _pthread_body + 240
9 libsystem_pthread.dylib 0x000000018b1e7770 _pthread_body + 0
10 libsystem_pthread.dylib 0x000000018b1e4dbc thread_start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001702eb337
x4: 0x000000018ab7fbc3 x5: 0x000000016fdd2660 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000000000 x11: 0x0000000000000010
x12: 0x000000018b0ad792 x13: 0x0000000000000000 x14: 0x0000030000000300 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001b0fbec40 x21: 0x000000016fdd2660 x22: 0x0000000000000000 x23: 0x00000001b0fbed20
x24: 0x0000000000000000 x25: 0x0000000000000010 x26: 0xffffffffffffffff x27: 0x00000001b0fb9fc0
x28: 0x0000000000001080 fp: 0x000000016fdd25c0 lr: 0x000000018b1e9460
sp: 0x000000016fdd25a0 pc: 0x000000018b122014 cpsr: 0x00000000
But i still don't know the where is the problem. Looks like i have a problem with tableview but i have too much tableviews in my app. So which tableview? Which file? Which line?
How to know them?
I want to present a viewController using the following code.
Due to some other reasons, I need to get synchrolock before presenting the controller.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
LogInfo(#"get synchrolock On a background thread");
[RuiKlasseBaseViewController waitSemaphore];
dispatch_async(dispatch_get_main_queue(), ^{
LogInfo(#"presentViewController On main thread");
if (self.view.window) {
TeachingViewController*teachingController=[self.storyboard instantiateViewControllerWithIdentifier:#"Teaching"];
[self presentViewController:teachingController animated:YES completion:releaseSynchrolock];
} else {
LogInfo(#"release synchrolock");
[RuiKlasseBaseViewController signalSemaphore];
[self hidetital];
}
});
});
but sometimes crashed at line:
[self presentViewController:teachingController animated:YES completion:releaseSynchrolock];
crash log:
Incident Identifier: B006117F-5F84-47B1-8B38-12BBD67D6383
CrashReporter Key: 95d234d099f2443ad742fad4e44bedb9c9dd5341
Hardware Model: iPad4,4
Process: MyApp [235]
Path: /private/var/mobile/Containers/Bundle/Application/C476541C-FA4B-479E-8744-18213785C697/MyApp.app/MyApp
Identifier: com.test.myapp
Version: 1180 (2.0.190)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-03-09 13:54:49.910 +0800
Launch Time: 2015-03-09 13:36:19.134 +0800
OS Version: iOS 8.1.2 (12B440)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000000a4
Triggered by Thread: 15
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 CoreFoundation 0x000000018538180c -[CFPrefsSearchListSource generationCountFromListOfSources:count:allowFetching:] + 112
1 CoreFoundation 0x0000000185381db8 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 152
2 CoreFoundation 0x0000000185381db8 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 152
3 CoreFoundation 0x0000000185380fcc -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 44
4 CoreFoundation 0x000000018540f248 ___CFPreferencesCopyAppValueWithContainer_block_invoke + 68
5 CoreFoundation 0x0000000185380120 +[CFPrefsSearchListSource withSearchListForIdentifier:container:perform:] + 576
6 CoreFoundation 0x000000018540f1b8 _CFPreferencesCopyAppValueWithContainer + 196
7 Foundation 0x00000001861bdc28 -[NSUserDefaults(NSUserDefaults) objectForKey:] + 36
8 WebKitLegacy 0x0000000193f6e244 -[WebPreferences _valueForKey:] + 264
9 WebKitLegacy 0x0000000193f6e0ec -[WebPreferences _integerValueForKey:] + 24
10 WebKitLegacy 0x0000000193f749ec -[WebView(WebPrivate) _preferencesChanged:] + 5636
11 WebKitLegacy 0x0000000193f702d0 -[WebView(WebPrivate) _commonInitializationWithFrameName:groupName:] + 2332
12 WebKitLegacy 0x0000000193fe0ef4 -[WebView(WebPrivate) _initWithFrame:frameName:groupName:] + 148
13 UIKit 0x0000000189ce9f30 -[UIWebDocumentView initWithWebView:frame:] + 336
14 UIKit 0x0000000189ce9b88 -[UIWebBrowserView initWithWebView:frame:] + 52
15 UIKit 0x0000000189ce9ac8 -[UIWebBrowserView initWithFrame:] + 48
16 UIKit 0x0000000189f58d5c -[UIWebView _webViewCommonInitWithWebView:scalesPageToFit:] + 268
17 UIKit 0x0000000189f596e4 -[UIWebView initWithCoder:] + 120
18 UIKit 0x000000018a068d94 UINibDecoderDecodeObjectForValue + 808
19 UIKit 0x000000018a068a50 -[UINibDecoder decodeObjectForKey:] + 340
20 UIKit 0x0000000189f901b8 -[UIRuntimeConnection initWithCoder:] + 124
21 UIKit 0x000000018a068d94 UINibDecoderDecodeObjectForValue + 808
22 UIKit 0x000000018a068d34 UINibDecoderDecodeObjectForValue + 712
23 UIKit 0x000000018a068a50 -[UINibDecoder decodeObjectForKey:] + 340
24 UIKit 0x0000000189f8f640 -[UINib instantiateWithOwner:options:] + 1096
25 UIKit 0x0000000189e94270 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
26 UIKit 0x0000000189b84840 -[UIViewController loadViewIfRequired] + 84
27 UIKit 0x0000000189b847ac -[UIViewController view] + 28
28 UIKit 0x000000018a275c30 -[_UIFullscreenPresentationController _setPresentedViewController:] + 72
29 UIKit 0x0000000189e7f1c4 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 116
30 UIKit 0x0000000189e9a264 -[UIViewController _presentViewController:withAnimationController:completion:] + 1968
31 UIKit 0x0000000189e9c67c __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 116
32 UIKit 0x0000000189c71cec -[UIViewController presentViewController:animated:completion:] + 212
33 MyApp 0x00000001002a4438 __32-[LessonViewController shangke:]_block_invoke_2 (LessonViewController.m:656)
34 libdispatch.dylib 0x00000001964313a8 _dispatch_call_block_and_release + 20
35 libdispatch.dylib 0x0000000196431368 _dispatch_client_callout + 12
36 libdispatch.dylib 0x000000019643597c _dispatch_main_queue_callback_4CF + 928
37 CoreFoundation 0x0000000185389fa0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
38 CoreFoundation 0x0000000185388048 __CFRunLoopRun + 1488
39 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
40 GraphicsServices 0x000000018e41b5a0 GSEventRunModal + 164
41 UIKit 0x0000000189bea3bc UIApplicationMain + 1484
42 MyApp 0x000000010024fc44 main (main.m:16)
43 libdyld.dylib 0x000000019645aa04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000196558c94 kevent64 + 8
1 libdispatch.dylib 0x000000019644097c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x00000001964333b0 _dispatch_mgr_thread + 48
Thread 2 name: AFNetworking
Thread 2:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 Foundation 0x00000001861bd800 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 312
6 Foundation 0x0000000186217ef4 -[NSRunLoop(NSRunLoop) run] + 92
7 MyApp 0x00000001000c9398 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:193)
8 Foundation 0x00000001862a5c08 __NSThread__main__ + 1068
9 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
10 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
11 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x0000000184dba4e4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x00000001862a5c08 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x0000000196573498 __select + 8
1 CoreFoundation 0x000000018538f8c4 __CFSocketManager + 656
2 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
3 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
4 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 5 name: WebThread
Thread 5:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 WebCore 0x00000001930ec854 RunWebThread(void*) + 464
6 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
7 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
8 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 6 name: JavaScriptCore::BlockFree
Thread 6:
0 libsystem_kernel.dylib 0x0000000196573078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000019660efe0 _pthread_cond_wait + 620
2 libc++.1.dylib 0x0000000195580cac std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 52
3 JavaScriptCore 0x00000001868415f8 JSC::BlockAllocator::blockFreeingThreadMain() + 228
4 JavaScriptCore 0x000000018683cb7c WTF::wtfThreadEntryPoint(void*) + 20
5 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
6 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
7 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 7 name: JavaScriptCore::Marking
Thread 7:
0 libsystem_kernel.dylib 0x0000000196573078 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x000000019660efe0 _pthread_cond_wait + 620
2 libc++.1.dylib 0x0000000195580cac std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 52
3 JavaScriptCore 0x0000000186aea8b8 JSC::GCThread::waitForNextPhase() + 152
4 JavaScriptCore 0x0000000186aea95c JSC::GCThread::gcThreadMain() + 88
5 JavaScriptCore 0x000000018683cb7c WTF::wtfThreadEntryPoint(void*) + 20
6 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
7 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
8 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 8 name: WebCore: CFNetwork Loader
Thread 8:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 WebCore 0x0000000193120670 WebCore::runLoaderThread(void*) + 284
6 JavaScriptCore 0x000000018683cb7c WTF::wtfThreadEntryPoint(void*) + 20
7 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x0000000196558e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196558cf4 mach_msg + 68
2 CoreFoundation 0x0000000185389ecc __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185387e20 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001852b50a0 CFRunLoopRunSpecific + 392
5 CoreFoundation 0x00000001853071f8 CFRunLoopRun + 108
6 CoreMotion 0x0000000185cb298c 0x185c70000 + 272780
7 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
8 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 10:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019660d390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 11 name: Dispatch queue: cocoa.lumberjack
Thread 11:
0 libsystem_kernel.dylib 0x0000000196558eb8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x000000019643ed98 _dispatch_group_wait_slow + 244
2 MyApp 0x0000000100137d18 +[DDLog lt_log:] (DDLog.m:665)
3 MyApp 0x0000000100136370 __40+[DDLog queueLogMessage:asynchronously:]_block_invoke (DDLog.m:286)
4 libdispatch.dylib 0x00000001964313a8 _dispatch_call_block_and_release + 20
5 libdispatch.dylib 0x0000000196431368 _dispatch_client_callout + 12
6 libdispatch.dylib 0x000000019643b4bc _dispatch_queue_drain + 1212
7 libdispatch.dylib 0x0000000196434470 _dispatch_queue_invoke + 128
8 libdispatch.dylib 0x000000019643d220 _dispatch_root_queue_drain + 660
9 libdispatch.dylib 0x000000019643e758 _dispatch_worker_thread3 + 104
10 libsystem_pthread.dylib 0x000000019660d2e0 _pthread_wqthread + 812
11 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 12 name: Dispatch queue: com.apple.root.default-qos.overcommit
Thread 12:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196611838 _pthread_workqueue_addthreads + 60
2 libdispatch.dylib 0x000000019643cbf8 _dispatch_queue_wakeup_global_slow + 80
3 libdispatch.dylib 0x000000019643d1e4 _dispatch_root_queue_drain + 600
4 libdispatch.dylib 0x000000019643e758 _dispatch_worker_thread3 + 104
5 libsystem_pthread.dylib 0x000000019660d2e0 _pthread_wqthread + 812
6 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 13:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019660d390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 14 name: Dispatch queue: com.apple.root.default-qos
Thread 14:
0 libsystem_kernel.dylib 0x0000000196572420 __connect + 8
1 MyApp 0x00000001001e3d44 -[CommandSender sendUsingTCPForCommand:withObj:] (CommandSender.m:154)
2 MyApp 0x00000001001e3254 __47-[CommandSender sendCommandType:using:withObj:]_block_invoke (CommandSender.m:43)
3 libdispatch.dylib 0x00000001964313a8 _dispatch_call_block_and_release + 20
4 libdispatch.dylib 0x0000000196431368 _dispatch_client_callout + 12
5 libdispatch.dylib 0x000000019643d408 _dispatch_root_queue_drain + 1148
6 libdispatch.dylib 0x000000019643e758 _dispatch_worker_thread3 + 104
7 libsystem_pthread.dylib 0x000000019660d2e0 _pthread_wqthread + 812
8 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 15 Crashed:
0 QuartzCore 0x00000001894d67ec CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 76
1 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
2 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
3 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
4 QuartzCore 0x00000001894d6930 CA::Layer::collect_animations_(double, double*, CA::Layer::CollectAnimationsData*) + 400
5 QuartzCore 0x00000001894d6790 CA::Layer::collect_animations(CA::Transaction*, double, double*) + 36
6 QuartzCore 0x00000001894d406c CA::Context::commit_transaction(CA::Transaction*) + 1400
7 QuartzCore 0x00000001894d3988 CA::Transaction::commit() + 432
8 QuartzCore 0x0000000189504028 CA::Transaction::release_thread(void*) + 200
9 libsystem_pthread.dylib 0x000000019660e3dc _pthread_tsd_cleanup + 196
10 libsystem_pthread.dylib 0x000000019660e0a8 _pthread_exit + 136
11 libsystem_pthread.dylib 0x000000019660f32c pthread_exit + 40
12 Foundation 0x00000001861d6ffc +[NSThread exit] + 12
13 Foundation 0x00000001862a5c20 __NSThread__main__ + 1092
14 libsystem_pthread.dylib 0x000000019660fe7c _pthread_body + 160
15 libsystem_pthread.dylib 0x000000019660fdd8 _pthread_start + 156
16 libsystem_pthread.dylib 0x000000019660cfac thread_start + 0
Thread 16:
0 libsystem_kernel.dylib 0x0000000196573c78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019660d390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x000000019660cfa4 start_wqthread + 0
Thread 15 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x000000014f939200 x2: 0x00000001063eb910 x3: 0x00000001063f3970
x4: 0x0000000003000001 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000001 x9: 0x0000000000000008 x10: 0x0000000000000001 x11: 0x0000000000004800
x12: 0x0000000000000000 x13: 0x0000000102a4d688 x14: 0x0000000000000000 x15: 0x0000000000000000
x16: 0x000000019657dd74 x17: 0x0000000195dffea0 x18: 0x0000000000000000 x19: 0x00000001063eb910
x20: 0x0000000000000004 x21: 0x00000001063eb718 x22: 0x0000000197313000 x23: 0x0000000000000000
x24: 0x0000000000000001 x25: 0x00000001063eb718 x26: 0x0000000102b4a084 x27: 0x0000000000000003
x28: 0x0000000000000001 fp: 0x00000001063eb6f0 lr: 0x00000001894d6934
sp: 0x00000001063eb650 pc: 0x00000001894d67ec cpsr: 0x20000000
Any help is much appreciated.
Thanks.
I have got a EXC_BAD_ACCESS error while dismissing a view controller on device.
But strangely this does not happen in simulator.
The Question: I am using the Instruments and NSZombies enabled and here is the report at the error. I am not getting heads and tails out of it. I understand that this shows the ref Count +es and -es. But where is my code that generated this error? All I see is that the responsible caller are UIVIews, CATransactions, where is my code?
THE CRASH LOG
Thread 0:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e9c __CFRunLoopRun + 932
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 itunesstored 0x00000001000bfe14 0x1000b0000 + 65044
5 libdyld.dylib 0x00000001922f3a9c start + 0
Thread 1:
0 libsystem_kernel.dylib 0x00000001923d5ac8 kevent64 + 8
1 libdispatch.dylib 0x00000001922d9d74 _dispatch_mgr_thread + 48
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e38 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 Foundation 0x00000001864be7f8 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018654c76c __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x00000001924701ac _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000192470104 _pthread_start + 136
8 libsystem_pthread.dylib 0x000000019246d7ac thread_start + 0
Thread 3 name: com.apple.CFSocket.private
Thread 3:
0 libsystem_kernel.dylib 0x00000001923ee76c select$DARWIN_EXTSN + 8
1 libsystem_pthread.dylib 0x00000001924701ac _pthread_body + 164
2 libsystem_pthread.dylib 0x0000000192470104 _pthread_start + 136
3 libsystem_pthread.dylib 0x000000019246d7ac thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x00000001923ee394 __psynch_cvwait + 8
1 MobileSystemServices 0x000000018bc8d53c MOXPCTransportReceiveMessage + 268 2 MobileInstallation 0x000000018bc48900 perform_command + 280
3 MobileInstallation 0x000000018bc491e8 MobileInstallationLookup + 388
4 itunesstored 0x00000001000e985c 0x1000b0000 + 235612
5 libdispatch.dylib 0x00000001922d841c _dispatch_call_block_and_release + 20
6 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
7 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
8 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
9 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
10 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x00000001923d5cc0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185992ca8 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185990e38 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001858d1b34 CFRunLoopRunSpecific + 448
4 iTunesStore 0x00000001903c2a58 -[ISOperation runRunLoopUntilStopped] + 200
5 iTunesStore 0x00000001903c9f84 -[ISURLOperation _runRequestWithURL:] + 1256
6 iTunesStore 0x00000001903c9a30 -[ISURLOperation _run] + 428
7 iTunesStore 0x00000001903c5588 -[ISURLOperation run] + 328
8 iTunesStore 0x00000001903d2324 -[ISStoreURLOperation _runURLOperation] + 696
9 iTunesStore 0x00000001903d0b68 -[ISStoreURLOperation run] + 568
10 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
11 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
12 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
13 iTunesStore 0x00000001903ce928 -[ISLoadURLBagOperation run] + 884
14 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
15 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
16 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
17 iTunesStore 0x00000001903d1f74 -[ISStoreURLOperation _resolvedURLInBagContext:URLBag:] + 104
18 iTunesStore 0x00000001903d20e4 -[ISStoreURLOperation _runURLOperation] + 120
19 iTunesStore 0x00000001903d0b68 -[ISStoreURLOperation run] + 568
20 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
21 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
22 Foundation 0x0000000186474d34 -[__NSOperationInternal _start:] + 640
23 Foundation 0x0000000186536d78 __NSOQSchedule_f + 72
24 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
25 libdispatch.dylib 0x00000001922dd92c _dispatch_async_redirect_invoke + 148
26 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
27 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
28 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
29 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
30 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 7 name: Data corruption: Malformed Mach message or kernel bug.
Thread 7 Crashed:
0 libxpc.dylib 0x0000000192488f9c _xpc_connection_mach_event + 1992
1 libdispatch.dylib 0x00000001922d84b0 _dispatch_client_callout4 + 12
2 libdispatch.dylib 0x00000001922dabdc _dispatch_mach_msg_invoke + 148
3 libdispatch.dylib 0x00000001922de698 _dispatch_queue_drain + 456
4 libdispatch.dylib 0x00000001922da620 _dispatch_mach_invoke + 104
5 libdispatch.dylib 0x00000001922dd8d0 _dispatch_async_redirect_invoke + 56
6 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
7 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
8 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
9 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
10 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x00000001923ee3dc __psynch_mutexwait + 8
1 Foundation 0x000000018645b958 -[NSLock lock] + 152
2 iTunesStore 0x00000001903e7760 ISUniqueOperationLock + 228
3 iTunesStore 0x00000001903c3408 -[ISOperation main] + 96
4 iTunesStore 0x00000001903c2b94 -[ISOperation runSubOperation:returningError:] + 220
5 iTunesStore 0x00000001903cf438 -[ISOperation(ISLoadURLBagAdditions) loadURLBagWithContext:returningError:] + 112
6 itunesstored 0x00000001001046e0 0x1000b0000 + 345824
7 iTunesStore 0x00000001903c4214 -[ISOperation _main:] + 304
8 iTunesStore 0x00000001903c35cc -[ISOperation main] + 548
9 Foundation 0x0000000186474d34 -[__NSOperationInternal _start:] + 640
10 Foundation 0x0000000186536d78 __NSOQSchedule_f + 72
11 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
12 libdispatch.dylib 0x00000001922dd92c _dispatch_async_redirect_invoke + 148
13 libdispatch.dylib 0x00000001922d83dc _dispatch_client_callout + 12
14 libdispatch.dylib 0x00000001922df3f8 _dispatch_root_queue_drain + 396
15 libdispatch.dylib 0x00000001922df634 _dispatch_worker_thread2 + 72
16 libsystem_pthread.dylib 0x000000019246d914 _pthread_wqthread + 352
17 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 9:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x00000001923eee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000019246d7a4 start_wqthread + 0
Thread 7 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000036 x1: 0x0000000000000037 x2: 0x00000001924a516e x3: 0x0000000000000037
x4: 0x0000000102263bc8 x5: 0x0000000000000036 x6: 0x0000000000000000 x7: 0x0000000000000110
x8: 0x7300ae44061c0155 x9: 0x7300ae44061c0155 x10: 0x0000000102263bc8 x11: 0x0000000000000000
x12: 0x000000000000006f x13: 0x000000019239e3d1 x14: 0x000000000000005f x15: 0x000000019239be4b
x16: 0x0000000192468e90 x17: 0x0021c35bf1cc0111 x18: 0x0000000000000000 x19: 0x0000000147db6140
x20: 0x0000000147e999f0 x21: 0x0000000147e34d80 x22: 0x000000001000000c x23: 0x0000000147d8aa00
x24: 0x00000001022640e0 x25: 0x0000000147d436d0 x26: 0x0000000000020001 x27: 0x000000000000000a
x28: 0x00000001022640e0 fp: 0x0000000102263d50 lr: 0x0000000192488f9c sp: 0x0000000102263c80
pc: 0x0000000192488f9c cpsr: 0x60000000
Your application is crashing with the message “Data corruption: Malformed Mach message or kernel bug”. Either that means what it says (in which case the bug is most likely not yours), or (more likely IMO) you’re tramping on memory you don’t own. Finding memory overwrites is hard, but Apple provides tools to help you — see TN2124.
I’d try enabling MallocGuardEdges et al in the simulator and see if you crash (you can do this from Xcode in the Scheme configuration.) Alternatively, you could try enabling Guard Malloc and that might also help.