libxpc library crash on top of callstack after iOS 16 version

Hi team,

We found that the app reported a lot of crash stacks, and the top of the stack had the libxpc library feature, but we could not find the reason. These issues have only emerged since iOS 16 and are growing, can you provide some clues or provide some solutions? Thanks!

Crash backtrace can be seen as follows.

_ OS Version: 16.6.1 (20G81) Report Version: 104

SDK start time: 2023-09-20 18:42:40 RDM SDK Version: 2.7.27.1 RDM user id : 119902290602 RDM DeviceId: 0DB20076-F323-468F-9EEC-080B77A00E05 RDM APP KEY: 7c35edbf90

Last Exception : 0 libxpc.dylib 0x000000020a019e98 __xpc_dictionary_insert + 96 1 libxpc.dylib 0x000000020a019e84 __xpc_dictionary_insert + 76 2 libxpc.dylib 0x000000020a01b944 __xpc_dictionary_deserialize_apply + 68 3 libxpc.dylib 0x000000020a01b8cc __xpc_dictionary_apply_wire_f + 136 4 libxpc.dylib 0x000000020a018da4 __xpc_dictionary_deserialize + 108 5 libxpc.dylib 0x000000020a00cdf4 __xpc_array_deserialize + 204 6 libxpc.dylib 0x000000020a01b9ec __xpc_dictionary_unpack_value + 120 7 libxpc.dylib 0x000000020a01bbf0 __xpc_dictionary_unpack_value_and_vend + 28 8 libxpc.dylib 0x000000020a01a4c4 __xpc_dictionary_look_up + 156 9 libxpc.dylib 0x000000020a01b094 _xpc_dictionary_get_array + 20 10 libdns_services.dylib 0x000000020a0b9a28 ____dnssd_client_connection_block_invoke_2 + 320 11 libxpc.dylib 0x000000020a015af0 __xpc_connection_call_event_handler + 152 12 libxpc.dylib 0x000000020a015f20 __xpc_connection_mach_event + 992 13 libdispatch.dylib 0x00000001b1657f6c __dispatch_client_callout4 + 20 14 libdispatch.dylib 0x00000001b16746ec __dispatch_mach_msg_invoke + 468 15 libdispatch.dylib 0x00000001b165f40c __dispatch_lane_serial_drain + 372 16 libdispatch.dylib 0x00000001b1675438 __dispatch_mach_invoke + 448 17 libdispatch.dylib 0x00000001b165f40c __dispatch_lane_serial_drain + 372 18 libdispatch.dylib 0x00000001b16600a4 __dispatch_lane_invoke + 384 19 libdispatch.dylib 0x00000001b166acdc __dispatch_workloop_worker_thread + 648 20 libsystem_pthread.dylib 0x0000000209fc1ddc __pthread_wqthread + 288

Exception Type: SIGSEGV SEGV_ACCERR Exception Codes: fault addr: 0x0000000000000036 Crashed Thread: 7 _

Replies

We found that the app reported a lot of crash stacks

Please post a full Apple crash report. See Posting a Crash Report for advice on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

code-block
Hardware Model: iPhone12,3
Process: *** [38123]
Path: /private/var/containers/Bundle/Application/03023D41-E1B3-4347-9357-B1DA9D665B15/***.app
Identifier: com.***.***
Version: 8.0.30
Code Type: ARM-64 (Native)
Parent Process:  [1]

Date/Time: 2023-09-22 18:34:21.021 +0800
OS Version: 16.6 (20G75)
Report Version: 104

SDK start time: 2023-09-22 07:00:01
RDM SDK Version: 2.7.27.1
RDM user id : 120368580983
RDM DeviceId: 17E76C3A-A9AB-401B-A926-455E9D3A8151
RDM APP KEY: 7c35edbf90

Last Exception :
0  libxpc.dylib                   0x000000020df01e98 __xpc_dictionary_insert + 96
1  libxpc.dylib                   0x000000020df01e84 __xpc_dictionary_insert + 76
2  libxpc.dylib                   0x000000020df03944 __xpc_dictionary_deserialize_apply + 68
3  libxpc.dylib                   0x000000020df038cc __xpc_dictionary_apply_wire_f + 136
4  libxpc.dylib                   0x000000020df00da4 __xpc_dictionary_deserialize + 108
5  libxpc.dylib                   0x000000020def4df4 __xpc_array_deserialize + 204
6  libxpc.dylib                   0x000000020df039ec __xpc_dictionary_unpack_value + 120
7  libxpc.dylib                   0x000000020df03bf0 __xpc_dictionary_unpack_value_and_vend + 28
8  libxpc.dylib                   0x000000020df024c4 __xpc_dictionary_look_up + 156
9  libxpc.dylib                   0x000000020df03094 _xpc_dictionary_get_array + 20
10 libdns_services.dylib          0x000000020dfa1a28 ____dnssd_client_connection_block_invoke_2 + 320
11 libxpc.dylib                   0x000000020defdaf0 __xpc_connection_call_event_handler + 152
12 libxpc.dylib                   0x000000020defdf20 __xpc_connection_mach_event + 992
13 libdispatch.dylib              0x00000001b553ff6c __dispatch_client_callout4 + 20
14 libdispatch.dylib              0x00000001b555c6ec __dispatch_mach_msg_invoke + 468
15 libdispatch.dylib              0x00000001b554740c __dispatch_lane_serial_drain + 372
16 libdispatch.dylib              0x00000001b555d438 __dispatch_mach_invoke + 448
17 libdispatch.dylib              0x00000001b554740c __dispatch_lane_serial_drain + 372
18 libdispatch.dylib              0x00000001b55480a4 __dispatch_lane_invoke + 384
19 libdispatch.dylib              0x00000001b5552cdc __dispatch_workloop_worker_thread + 648
20 libsystem_pthread.dylib        0x000000020dea9ddc __pthread_wqthread + 288
------

Exception Type: SIGSEGV SEGV_ACCERR
Exception Codes: fault addr: 0x0000000000000036
Crashed Thread: 22 

Thread 0
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  GraphicsServices               0x00000001e960435c _GSEventRunModal + 164
8  UIKitCore                      0x00000001b047af58 -[UIApplication _run] + 888
9  UIKitCore                      0x00000001b047abbc _UIApplicationMain + 340
10 QQReaderUI                     0x00000001078e7bb8 pld_UIApplicationMain(once.h:87)
11 QQReaderUI                     0x0000000107914314 qrapm_UIApplicationMain(once.h:87)
12 QQReaderUI                     0x0000000104f0277c main(main.m:45)
13 dyld                           0x00000001cd620dec 0x00000001cd60b000 + 89580

Thread 1 Name: com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  Foundation                     0x00000001a836efb4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x00000001a836ee9c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x00000001b05adcc8 -[UIEventFetcher threadMain] + 416
10 Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
11 libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 2 Name: com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  CFNetwork                      0x00000001af2d96f0 __CFURLStorageSessionDisableCache + 60900
8  Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
9  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 3
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  libc++.1.dylib                 0x00000001bc6c8ef8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  QQReaderUI                     0x0000000107314948 ***::HandlerThread::run() + 232
4  QQReaderUI                     0x000000010731573c void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, std::__1::function<void ()> > >(void*) + 56
5  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 4
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  QQReaderUI                     0x0000000108067054 Condition::wait(BaseScopedLock<Mutex>&, long)(condition.h:73)
3  QQReaderUI                     0x0000000108066f0c Condition::wait(long)(condition.h:94)
4  QQReaderUI                     0x0000000108064a08 __async_log_thread()(appender.cc:619)
5  QQReaderUI                     0x0000000108067f68 Thread::start_routine(void*)(thread.h:412)
6  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148


code-block

Thread 5 Name: RaftMonitor.Global
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  CoreFoundation                 0x00000001ae130ea4 _CFRunLoopRun + 64
8  Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
9  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 6 Name: RaftMonitor.MemoryMonitor
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  Foundation                     0x00000001a836efb4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  QQReaderUI                     0x00000001072902a0 -[RMAppActivityTracker monitorThreadMain](RMAppActivityTracker.mm:0)
9  Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
10 libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 7 Name: RaftMonitor.LooperMonitor
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  CoreFoundation                 0x00000001ae130ea4 _CFRunLoopRun + 64
8  Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
9  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 8 Name: anna.script
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  Foundation                     0x00000001a836efb4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  QQReaderUI                     0x0000000106b57b64 closure #1 () -> () in static Anna.AsyncShadowContext.(scriptThreadStart in _25BF419BF773CFA796804448B24ABD43)(Anna.ThreadContext) -> ()(AsyncShadowContext.swift:77)
9  QQReaderUI                     0x0000000106b57be8 @objc static Anna.AsyncShadowContext.(scriptThreadStart in _25BF419BF773CFA796804448B24ABD43)(Anna.ThreadContext) -> ()(AsyncShadowContext.swift:67)
10 Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
11 libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 9 Name: io.jiguang.hxhg.cache
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  CoreFoundation                 0x00000001ae130ea4 _CFRunLoopRun + 64
8  QQReaderUI                     0x0000000106af5078 +[JCORECacheThread run](JCORECacheThread.m:32)
9  Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
10 libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 10 Name: org.hxhg.jiguang.thread
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  Foundation                     0x00000001a836efb4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x00000001a836ee48 -[NSRunLoop(NSRunLoop) run] + 64
9  QQReaderUI                     0x0000000106a98afc +[JCOREQueueManager threadEntryPoint:](JCOREQueueManager.m:33)
10 Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
11 libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 11 Name: io.jiguang.hxhg.network
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  CoreFoundation                 0x00000001ae0e8024 ___CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x00000001ae0e9250 ___CFRunLoopRun + 1208
6  CoreFoundation                 0x00000001ae0ee3ec _CFRunLoopRunSpecific + 612
7  CoreFoundation                 0x00000001ae130ea4 _CFRunLoopRun + 64
8  QQReaderUI                     0x0000000106aa3f80 +[JCORENetworkThread run](JCORENetworkController.m:41)
9  Foundation                     0x00000001a8388524 ___NSThread__start__ + 716
10 libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 12 Name: com.apple.CFSocket.private
0  libsystem_kernel.dylib         0x00000001ed02f808 _select$DARWIN_EXTSN + 8
1  CoreFoundation                 0x00000001ae13799c ___CFSocketManager + 636
2  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

code-block

Thread 13
0  libsystem_kernel.dylib         0x00000001ed02eca4 _mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x00000001ed041b74 _mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x00000001ed041e4c _mach_msg_overwrite + 540
3  libsystem_kernel.dylib         0x00000001ed02f1e8 _mach_msg + 24
4  QQReaderUI                     0x0000000107294a28 handleExceptions(RMCrashMonitorMachException.c:178)
5  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 14
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  QQReaderUI                     0x000000010800f2e8 native_event_wait + 228
3  QQReaderUI                     0x000000010800f674 internal_MSPThread_WaitMessages + 364
4  QQReaderUI                     0x000000010800f4f0 MSPThread_WaitMessages + 212
5  QQReaderUI                     0x000000010802de7c socket_main + 268
6  QQReaderUI                     0x00000001080107dc ThreadEntryHook + 568
7  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 15
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  QQReaderUI                     0x000000010800f2e8 native_event_wait + 228
3  QQReaderUI                     0x0000000107fde430 dns_main + 136
4  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 16
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  QQReaderUI                     0x000000010800f2e8 native_event_wait + 228
3  QQReaderUI                     0x000000010800f674 internal_MSPThread_WaitMessages + 364
4  QQReaderUI                     0x000000010800f4f0 MSPThread_WaitMessages + 212
5  QQReaderUI                     0x00000001080547bc iFLYlua_engine_main + 508
6  QQReaderUI                     0x00000001080107dc ThreadEntryHook + 568
7  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 17
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  QQReaderUI                     0x000000010800f2e8 native_event_wait + 228
3  QQReaderUI                     0x000000010800f674 internal_MSPThread_WaitMessages + 364
4  QQReaderUI                     0x000000010800f4f0 MSPThread_WaitMessages + 212
5  QQReaderUI                     0x00000001080547bc iFLYlua_engine_main + 508
6  QQReaderUI                     0x00000001080107dc ThreadEntryHook + 568
7  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 18
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  QQReaderUI                     0x000000010800f2e8 native_event_wait + 228
3  QQReaderUI                     0x000000010800f674 internal_MSPThread_WaitMessages + 364
4  QQReaderUI                     0x000000010800f4f0 MSPThread_WaitMessages + 212
5  QQReaderUI                     0x00000001080547bc iFLYlua_engine_main + 508
6  QQReaderUI                     0x00000001080107dc ThreadEntryHook + 568
7  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 19
0  libsystem_kernel.dylib         0x00000001ed02f578 ___psynch_cvwait + 8
1  libsystem_pthread.dylib        0x000000020deb1078 __pthread_cond_wait + 1232
2  QQReaderUI                     0x000000010800f2e8 native_event_wait + 228
3  QQReaderUI                     0x000000010800f674 internal_MSPThread_WaitMessages + 364
4  QQReaderUI                     0x000000010800f4f0 MSPThread_WaitMessages + 212
5  QQReaderUI                     0x00000001080547bc iFLYlua_engine_main + 508
6  QQReaderUI                     0x00000001080107dc ThreadEntryHook + 568
7  libsystem_pthread.dylib        0x000000020deaa6b8 __pthread_start + 148

Thread 20
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 21
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 22
0  libxpc.dylib                   0x000000020df01e98 __xpc_dictionary_insert + 96
1  libxpc.dylib                   0x000000020df01e84 __xpc_dictionary_insert + 76
2  libxpc.dylib                   0x000000020df03944 __xpc_dictionary_deserialize_apply + 68
3  libxpc.dylib                   0x000000020df038cc __xpc_dictionary_apply_wire_f + 136
4  libxpc.dylib                   0x000000020df00da4 __xpc_dictionary_deserialize + 108
5  libxpc.dylib                   0x000000020def4df4 __xpc_array_deserialize + 204
6  libxpc.dylib                   0x000000020df039ec __xpc_dictionary_unpack_value + 120
7  libxpc.dylib                   0x000000020df03bf0 __xpc_dictionary_unpack_value_and_vend + 28
8  libxpc.dylib                   0x000000020df024c4 __xpc_dictionary_look_up + 156
9  libxpc.dylib                   0x000000020df03094 _xpc_dictionary_get_array + 20
10 libdns_services.dylib          0x000000020dfa1a28 ____dnssd_client_connection_block_invoke_2 + 320
11 libxpc.dylib                   0x000000020defdaf0 __xpc_connection_call_event_handler + 152
12 libxpc.dylib                   0x000000020defdf20 __xpc_connection_mach_event + 992
13 libdispatch.dylib              0x00000001b553ff6c __dispatch_client_callout4 + 20
14 libdispatch.dylib              0x00000001b555c6ec __dispatch_mach_msg_invoke + 468
15 libdispatch.dylib              0x00000001b554740c __dispatch_lane_serial_drain + 372
16 libdispatch.dylib              0x00000001b555d438 __dispatch_mach_invoke + 448
17 libdispatch.dylib              0x00000001b554740c __dispatch_lane_serial_drain + 372
18 libdispatch.dylib              0x00000001b55480a4 __dispatch_lane_invoke + 384
19 libdispatch.dylib              0x00000001b5552cdc __dispatch_workloop_worker_thread + 648
20 libsystem_pthread.dylib        0x000000020dea9ddc __pthread_wqthread + 288

Thread 23
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 24
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 25
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 26
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

code-block

Thread 27
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 28
0  libsystem_malloc.dylib         0x00000001bc4f7df0 _tiny_madvise_free_range_no_lock + 392
1  libsystem_malloc.dylib         0x00000001bc4fa200 _tiny_free_no_lock + 744
2  libsystem_malloc.dylib         0x00000001bc4fa200 _tiny_free_no_lock + 744
3  libsystem_malloc.dylib         0x00000001bc4fac80 _free_tiny + 496
4  Foundation                     0x00000001a83ceca0 -[NSConcreteData dealloc] + 96
5  libobjc.A.dylib                0x00000001a7105b10 _objc_autoreleasePoolPop + 52
6  Foundation                     0x00000001a8369664 -[NSOperation start] + 1136
7  Foundation                     0x00000001a83691ec ___NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 16
8  Foundation                     0x00000001a836e87c ___NSOQSchedule_f + 172
9  libdispatch.dylib              0x00000001b553e320 __dispatch_call_block_and_release + 32
10 libdispatch.dylib              0x00000001b553feac __dispatch_client_callout + 20
11 libdispatch.dylib              0x00000001b5543330 __dispatch_continuation_pop + 504
12 libdispatch.dylib              0x00000001b5542998 __dispatch_async_redirect_invoke + 584
13 libdispatch.dylib              0x00000001b5551944 __dispatch_root_queue_drain + 396
14 libdispatch.dylib              0x00000001b5552158 __dispatch_worker_thread2 + 164
15 libsystem_pthread.dylib        0x000000020dea9da0 __pthread_wqthread + 228

Thread 29
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 30

Thread 31
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 32
0  libsystem_kernel.dylib         0x00000001ed02f1ac ___workq_kernreturn + 8
1  libsystem_pthread.dylib        0x000000020dea9e28 __pthread_wqthread + 364

Thread 22 crashed with ARM Thread State (64-bit):
    x0:0x0000000000000002    x1:0x000000000000003e    x2:0x9d46408e242b8b87    x3:0x000000000000000e
    x4:0x0000000000000066    x5:0x0000000000000058    x6:0x0000000282910b10    x7:0x0000000000000001
    x8:0x000000310f71a6d2    x9:0xffffffcef08e5930   x10:0x0000002a0d3cd822   x11:0x0000000280e90000
   x12:0x0000000000000060   x13:0x00000000001ff800   x14:0x00000000000007fb   x15:0x00000000a9c4c80f
   x16:0x000000020de13630   x17:0x000000024364ff48   x18:000000000000000000   x19:0x0000000280e90540
   x20:0x9d46408e242b8b87   x21:0x000000011082f2b4   x22:0x000000000000001e   x23:0x000000000000001e
   x24:0x0000000280e90570   x25:0x000000016b9e70e0   x26:0x000000016b9e6390   x27:0x0000000283e09c68
   x28:0x000000011082f200    fp:0x000000016b9e5f00    lr:0xfe5f1b020df01e84    sp:0x000000016b9e5e50
    pc:0x000000020df01e98  cpsr:0x0000000040000000

I’m sorry but I need the crash report as a text attachment, not split up in series of posts.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

when text attachment contains larger than 7000 charactors, upload text file ,show the error info "An error occured while uploading this log. Please try again later."

Text attachments are not limited to 7000 characters. See this post for a recent example where a developer has attached multiple crash reports that are all an order of magnitude larger than that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

there are crash logs, pls help to find out any clue to solve it. Thx

Thanks for posting those crash reports.

At first glance they seem to cover a variety of different issues, all with similar symptoms. However, there’s a limit to how much I do with them because they’re generated by a third-party crash reporter.

I don’t work with third-party crash reports because I don’t trust them. I go into a lot of detail as to why in my Implementing Your Own Crash Reporter.

I recommend that your remove your third-party crash reporter and try to capture some Apple crash reports for these issues. If you can post them here, I’d be happy to take another look at this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Those crash reports indicate that:

  1. Your third-party crash report is still in play.

  2. It has a horrendous bug, which is disrupting the Apple crash reporter.

I’ve explained point 2 below.

My advice to you:

  1. Contact the vendor of that crash reporter and tell them to read Implementing Your Own Crash Reporter and fix their code.

  2. Remove that third-party crash reporter. Ideally you’d remove it permanently, but certainly remove it until they’ve rewritten their code to, as much as possible, preserve the Apple crash report.

  3. Release an updated version of your app and see what crash reports you get from the Apple crash reporter.

It’s possible that these crashes will go away completely. If not, you’ll have a trustworthy crash report that you can investigate.


Consider this snippet from your first crash report:

Thread 0 name:
Thread 0:
0   dyld                     … dyld4::APIs::dladdr(void const*, dl_info*) + 244 (DyldAPIs.cpp:1103)
1   libsystem_c.dylib        … backtrace_symbols + 120 (backtrace.c:178)
2   QDReaderAppStore         … forwardingSignalInformation + 124 (JCommonCrashManager.m:408)
3   QDReaderAppStore         … JCommonSignalHandler_Sentry + 476 (JCommonCrashManager.m:428)
4   libsystem_platform.dylib … _sigtramp + 56 (sigtramp.c:116)
5   libdispatch.dylib        … _dispatch_source_dispose + 92 (source.c:94)

Frame 4 indicates that something is currently handling a signal. Frame 3 suggests that this a third-party crash reporter. Frame 1 shows that this is calling backtrace_symbols. That’s is not an async signal safe function, and thus is not safe to call from a signal handler. See the Signals section of Implementing Your Own Crash Reporter.

So, your third-party crash reporter is disrupting the Apple crash reporter. For more on this, see Preserve the Apple Crash Report in Implementing Your Own Crash Reporter. You need to get trustworthy crash reports before continuing your investigation.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for the new crash reports. These make more sense.

These crashes are all over the map:

  • The first one relates to DNS-SD

  • The second to NWPathMonitor

  • The third to Frontboard

  • And so on

The thing they have in common is that they’re all working with XPC dictionaries. It’s very unlikely that all of these subsystems have bugs in the way that they handle XPC dictionaries, which suggests that you have a memory management bug that’s corrupting the heap in a way that’s triggering these crashes. I recommend that your thoroughly exercise your app with the standard memory debugging tools to see if you can make this more reproducible.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"