iOS 16.1.1 Crash :com.apple.network.connections EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000036

Since the release of iOS16.1.0 and iOS16.1.1, I have received reports from iOS16.1.0 and iOS16.1.1 users about the crash problem. Later, I discovered that this problem occurred only iOS16.1.0 and later.

This problem does not occur to all users (approximately one in a thousand)

I have tried several methods (such as using different versions of xcode build App), but still not solved...

And all the people around me who use iPhone can’t reproduce this problem, which also makes testing difficult

Here are the crash logs caught by firebase:

****crash:com.apple.network.connections EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000036 **

Crashed: com.apple.network.connections
0  libxpc.dylib                   0x16020 _xpc_dictionary_insert + 96
1  libxpc.dylib                   0x17bcc _xpc_dictionary_copy_apply + 76
2  libxpc.dylib                   0x1566c _xpc_dictionary_apply_node_f + 156
3  libxpc.dylib                   0x148e8 _xpc_dictionary_copy + 88
4  Network                        0x27c6c8 -[NWConcrete_nw_protocol_options initWithOptions:] + 184
5  Network                        0x321094 __nw_protocol_stack_copy_block_invoke_2 + 64
6  Network                        0x7018b4 nw_array_apply + 124
7  Network                        0x320c20 nw_protocol_stack_copy + 308
8  Network                        0x328164 -[NWConcrete_nw_parameters initWithParameters:stripConnected:shallowCopy:] + 592
9  Network                        0x475994 nw_endpoint_resolver_create_child_parameters + 116
10 Network                        0x474540 nw_endpoint_resolver_update + 5920
11 Network                        0x47dfc0 __52-[NWConcrete_nw_endpoint_resolver startWithHandler:]_block_invoke_2 + 84
12 Network                        0x1448e8 __nw_resolver_update_client_block_invoke + 88
13 libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
14 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
15 libdispatch.dylib              0xd620 _dispatch_workloop_invoke + 2076
16 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
17 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
18 libsystem_pthread.dylib        0xb98 start_wqthread + 8


com.apple.main-thread
0  libsystem_kernel.dylib         0xb48 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13008 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13248 mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x108c mach_msg + 24
4  CoreFoundation                 0x7aaf0 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd34 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80ed4 CFRunLoopRunSpecific + 612
7  GraphicsServices               0x1368 GSEventRunModal + 164
8  UIKitCore                      0x3a23d0 -[UIApplication _run] + 888
9  UIKitCore                      0x3a2034 UIApplicationMain + 340
10 wetalktalk                           0x38b394 main + 14 (main.m:14)
11 ???                            0x1d6e34960 (缺少)

Unfortunately I can’t do much with a non-Apple crash report [1]. Can you post an Apple crash report for this? See Posting a Crash Report for instructions.

Share and Enjoy

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

[1] There are a number of reasons for this but the primary one is that I don’t trust non-Apple crash reports, as explained in Implementing Your Own Crash Reporter.

here is apple crash report:

I think it’s likely that this is a bug in Network framework itself. I recommend that you file a bug about this, including as much info as you have available. Ideally that’d include a sysdiagnose log but, seeing as you can’t reproduce the problem, just include any Apple crash reports you have.

Please post your bug number, just for the record.

Share and Enjoy

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

bug number is:FB1183038@eskimo @ Developer Technical Support @ Apple

I have also received reports from iOS16.1.0 and iOS16.1.1 users about the crash problem. besides, I encountered other Network framework error from iOS16.1.0 and iOS16.1.1 users。

Crashed: com.apple.CFNetwork.Connection
0  libxpc.dylib                   0x14f80 _xpc_dictionary_dispose + 40
1  libxpc.dylib                   0x2a588 -[OS_xpc_object dealloc] + 28
2  Network                        0x72a4fc -[NWConcrete_nw_resolver_config .cxx_destruct] + 92
3  libobjc.A.dylib                0x14a4 object_cxxDestructFromClass(objc_object*, objc_class*) + 116
4  libobjc.A.dylib                0x6298 objc_destructInstance + 80
5  libobjc.A.dylib                0xf994 _objc_rootDealloc + 80
6  Network                        0x72d1c0 -[NWConcrete_nw_resolver_config dealloc] + 44
7  Network                        0x6ff554 nw_array_dispose + 548
8  Network                        0x38bdac -[OS_nw_array dealloc] + 28
9  Network                        0x8fc9e8 -[NWConcrete_nw_path .cxx_destruct] + 104
10 libobjc.A.dylib                0x14a4 object_cxxDestructFromClass(objc_object*, objc_class*) + 116
11 libobjc.A.dylib                0x6298 objc_destructInstance + 80
12 libobjc.A.dylib                0xf994 _objc_rootDealloc + 80
13 Network                        0x902e14 -[NWConcrete_nw_path dealloc] + 100
14 Network                        0x124d10 -[NWConcrete_nw_resolver .cxx_destruct] + 56
15 libobjc.A.dylib                0x14a4 object_cxxDestructFromClass(objc_object*, objc_class*) + 116
16 libobjc.A.dylib                0x6298 objc_destructInstance + 80
17 libobjc.A.dylib                0xf994 _objc_rootDealloc + 80
18 Network                        0x1258a8 -[NWConcrete_nw_resolver dealloc] + 2788
19 Network                        0x47cc84 -[NWConcrete_nw_endpoint_resolver cancelWithHandler:forced:] + 232
20 Network                        0x488dc4 nw_endpoint_handler_cancel + 1052
21 Network                        0xa56cec -[NWConcrete_nw_endpoint_flow cancelWithHandler:forced:] + 1000
22 Network                        0x488dc4 nw_endpoint_handler_cancel + 1052
23 Network                        0x3d43dc __nw_connection_cancel_inner_block_invoke + 1212
24 Network                        0x3d3c20 nw_connection_cancel_inner + 320
25 Network                        0x3d37e0 nw_connection_cancel + 120
26 CFNetwork                      0x381cc CFURLRequestSetShouldStartSynchronously + 8556
27 CFNetwork                      0x236268 __CFNetworkAgentMessageProcessorMain + 91728
28 CFNetwork                      0x1e243c _CFNetworkHTTPConnectionCacheGetLimit + 66268
29 CFNetwork                      0x23ad88 __CFNetworkAgentMessageProcessorMain + 110960
30 CFNetwork                      0x23b990 __CFNetworkAgentMessageProcessorMain + 114040
31 CFNetwork                      0x23d0b4 __CFNetworkAgentMessageProcessorMain + 119964
32 CFNetwork                      0x23cd10 __CFNetworkAgentMessageProcessorMain + 119032
33 CFNetwork                      0x23bbd8 __CFNetworkAgentMessageProcessorMain + 114624
34 CFNetwork                      0x23c310 __CFNetworkAgentMessageProcessorMain + 116472
35 CFNetwork                      0x23b6d0 __CFNetworkAgentMessageProcessorMain + 113336
36 libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
37 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
38 libdispatch.dylib              0xb694 _dispatch_lane_serial_drain + 672
39 libdispatch.dylib              0xc214 _dispatch_lane_invoke + 436
40 libdispatch.dylib              0xd4f8 _dispatch_workloop_invoke + 1780
41 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
42 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
43 libsystem_pthread.dylib        0xb98 start_wqthread + 8

hi @eskimo.

many days passed, do you have any workaround solution for the app side? It's hard for us if nothing to do with this crash

Thanks

bug number is:FB11830385

Looking through your recent posts it seems that you’re hitting multiple different crashes that are all look like memory management issues deep within Network framework. Given that variance, I’m going to take back my earlier comment:

I think it’s likely that this is a bug in Network framework itself.

When you see a bunch of problems that are similar but not exactly the same the most common cause is a memory management issue. Something in your process is corrupting memory in some way and that corruption manifests in crashes in different, unrelated parts of the process. My new advice is that you run the standard memory debugging tools against your process to see if they offer any useful debugging hints.

Share and Enjoy

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

not all crashes are due to memory problems.For example

1:

Crashed: com.apple.network.connections
0  libxpc.dylib                   0x15bfc _xpc_dictionary_insert + 96
1  libxpc.dylib                   0x177a8 _xpc_dictionary_copy_apply + 76
2  libxpc.dylib                   0x15248 _xpc_dictionary_apply_node_f + 156
3  libxpc.dylib                   0x144c4 _xpc_dictionary_copy + 88
4  Network                        0x27e174 -[NWConcrete_nw_protocol_options initWithOptions:] + 184
5  Network                        0x323240 __nw_protocol_stack_copy_block_invoke_2 + 64
6  Network                        0x7065c4 nw_array_apply + 124
7  Network                        0x322dcc nw_protocol_stack_copy + 308
8  Network                        0x32a310 -[NWConcrete_nw_parameters initWithParameters:stripConnected:shallowCopy:] + 592
9  Network                        0x47993c nw_endpoint_resolver_create_child_parameters + 116
10 Network                        0x4784e8 nw_endpoint_resolver_update + 5920
11 Network                        0x481f68 __52-[NWConcrete_nw_endpoint_resolver startWithHandler:]_block_invoke_2 + 84
12 Network                        0x144e08 __nw_resolver_update_client_block_invoke + 88
13 libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
14 libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
15 libdispatch.dylib              0xd620 _dispatch_workloop_invoke + 2076
16 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
17 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
18 libsystem_pthread.dylib        0xb98 start_wqthread + 8

2:

Crashed: com.apple.network.connections
0  libxpc.dylib                   0x15bfc _xpc_dictionary_insert + 96
1  Network                        0x913d00 nw_path_snapshot_agents + 292
2  Network                        0x91315c nw_path_snapshot_path + 192
3  Network                        0x930fc4 nw_path_necp_update_evaluator + 756
4  Network                        0x9302b0 nw_path_necp_check_for_updates + 1268
5  Network                        0x948b08 nw_path_evaluator_force_update + 124
6  Network                        0xb14ee8 nw_association_force_update + 104
7  Network                        0xa47f14 nw_endpoint_flow_setup_channel + 8072
8  Network                        0xa69698 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 5736
9  Network                        0x495bf4 nw_endpoint_handler_path_change + 13988
10 Network                        0x49d600 nw_endpoint_handler_start + 1032
11 Network                        0x47abf4 nw_endpoint_resolver_start_next_child + 3860
12 libdispatch.dylib              0x2460 _dispatch_call_block_and_release + 32
13 libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
14 libdispatch.dylib              0xd5cc _dispatch_workloop_invoke + 2076
15 libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
16 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
17 libsystem_pthread.dylib        0xb98 start_wqthread + 8

有朋友也遇到的,可以一起讨论下下,找出各自触发点,qq:975266108 

iOS 16.1.1 Crash :com.apple.network.connections EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000036
 
 
Q