__pthread_kill crash after application launch

Xcode12.5

These crashes mostly happened after app launch for several seconds on iOS14

Exception Type:  SIGABRT
Exception Codes: #0 at 0x1b4a9d334
Crashed Thread:  37

Thread 37 Crashed:
0   libsystem_kernel.dylib               0x00000001b4a9d334 __pthread_kill + 8
1   libsystem_c.dylib                    0x000000018fd34b90 abort + 100
2   libsystem_malloc.dylib               0x0000000195fb64c8 malloc_vreport + 556
3   libsystem_malloc.dylib               0x0000000195fb676c malloc_zone_error + 100
4   libsystem_malloc.dylib               0x0000000195fa6f98 nanov2_allocate_from_block + 568
5   libsystem_malloc.dylib               0x0000000195fa6024 nanov2_allocate + 124
6   libsystem_malloc.dylib               0x0000000195fa5f40 nanov2_malloc + 60
7   libsystem_malloc.dylib               0x0000000195faa9a0 _malloc_zone_malloc + 148
8   libxpc.dylib                         0x00000001d2523478 _xpc_malloc + 20
9   libxpc.dylib                         0x00000001d2514e50 _xpc_dictionary_insert + 388
10  libxpc.dylib                         0x00000001d25155c4 xpc_dictionary_set_uint64 + 52
11  libnetwork.dylib                     0x00000001879de430 nw_path_copy_dictionary_for_agent_with_generation + 524
12  libnetwork.dylib                     0x00000001879da048 nw_path_snapshot_path + 432
13  libnetwork.dylib                     0x00000001879d9614 nw_path_evaluator_evaluate + 3516
14  libnetwork.dylib                     0x00000001879d8058 nw_path_create_evaluator_for_endpoint + 104
15  libnetwork.dylib                     0x00000001876ec654 nw_association_activate + 120
16  libnetwork.dylib                     0x00000001876eb468 nw_association_register + 256
17  libnetwork.dylib                     0x000000018753fd20 nw_endpoint_handler_initialize_association + 248
18  libnetwork.dylib                     0x000000018754c0ec nw_endpoint_handler_start + 1116
19  libnetwork.dylib                     0x0000000187768f2c nw_endpoint_fallback_start_fallback_child + 2864
20  libdispatch.dylib                    0x000000018657381c _dispatch_client_callout + 16
21  libdispatch.dylib                    0x0000000186576cf4 _dispatch_continuation_pop + 444
22  libdispatch.dylib                    0x00000001865894b8 _dispatch_source_invoke + 1280
23  libdispatch.dylib                    0x000000018657cee8 _dispatch_workloop_invoke + 1676
24  libdispatch.dylib                    0x00000001865864bc _dispatch_workloop_worker_thread + 760
25  libsystem_pthread.dylib              0x00000001d24ea7a4 _pthread_wqthread + 272
26  libsystem_pthread.dylib              0x00000001d24f174c start_wqthread + 4

Thread 0:
0   libsystem_kernel.dylib               0x00000001b4a784fc mach_msg_trap + 8
1   CoreFoundation                       0x00000001868ffeb0 __CFRunLoopServiceMachPort + 368
2   CoreFoundation                       0x00000001868f9d50 __CFRunLoopRun + 1208
3   CoreFoundation                       0x00000001868f9360 CFRunLoopRunSpecific + 596
4   GraphicsServices                     0x000000019df37734 GSEventRunModal + 160
5   UIKitCore                            0x0000000189374584 -[UIApplication _run] + 1068
6   UIKitCore                            0x0000000189379df4 UIApplicationMain + 164
7   sohuhy                               0x0000000101358410 main (main.m:14)
8   libdyld.dylib                        0x00000001865b5cf8 start + 0

Thread 1:
0   libsystem_kernel.dylib               0x00000001b4a9e0a4 __workq_kernreturn + 8
1   libsystem_pthread.dylib              0x00000001d24f174c start_wqthread + 4

Thread 2:
0   libsystem_kernel.dylib               0x00000001b4a9e0a4 __workq_kernreturn + 8
1   libsystem_pthread.dylib              0x00000001d24f174c start_wqthread + 4

Thread 3:
0   libsystem_kernel.dylib               0x00000001b4a9e0a4 __workq_kernreturn + 8
1   libsystem_pthread.dylib              0x00000001d24f174c start_wqthread + 4

Thread 4:
0   libsystem_kernel.dylib               0x00000001b4a9e0a4 __workq_kernreturn + 8
1   libsystem_pthread.dylib              0x00000001d24f174c start_wqthread + 4

Thread 5:
0   libsystem_kernel.dylib               0x00000001b4a784fc mach_msg_trap + 8
1   CoreFoundation                       0x00000001868ffeb0 __CFRunLoopServiceMachPort + 368
2   CoreFoundation                       0x00000001868f9d50 __CFRunLoopRun + 1208
3   CoreFoundation                       0x00000001868f9360 CFRunLoopRunSpecific + 596
4   Foundation                           0x0000000187be6fdc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 228
5   Foundation                           0x0000000187be6ea8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
6   UIKitCore                            0x000000018942912c -[UIEventFetcher threadMain] + 512
7   Foundation                           0x0000000187d5832c __NSThread__start__ + 860
8   libsystem_pthread.dylib              0x00000001d24e8bfc _pthread_start + 316
9   libsystem_pthread.dylib              0x00000001d24f1758 thread_start + 4

thank you for anyone to provide some advice for digging into this problem!

1   libsystem_c.dylib      … abort + 100
2   libsystem_malloc.dylib … malloc_vreport + 556
3   libsystem_malloc.dylib … malloc_zone_error + 100
4   libsystem_malloc.dylib … nanov2_allocate_from_block + 568
5   libsystem_malloc.dylib … nanov2_allocate + 124
6   libsystem_malloc.dylib … nanov2_malloc + 60
7   libsystem_malloc.dylib … _malloc_zone_malloc + 148
8   libxpc.dylib           … _xpc_malloc + 20

This indicates that some part of the system (frame 8) is trying to allocate memory (frame 7) and the memory allocator has detected a memory corruption problem and called abort (frame 1). I recommend that you engage the standard memory debugging tools to see if they can help you work out the cause of that memory corruption.

Share and Enjoy

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

__pthread_kill crash after application launch
 
 
Q