Crashed: com.apple.network.connections

Hi, i have a crash received in my Firebase Crashlytics. I couldn't figure out the root cause of the issue. Could anyone please help me with it.

Crashed: com.apple.network.connections
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000bb011e54
Crashed: com.apple.network.connections
0  libnetwork.dylib               0x3442e0 nw_protocol_default_error + 68
1  libnetwork.dylib               0x529314 nw_channel_disconnect_flow + 192
2  libnetwork.dylib               0x529248 __nw_channel_check_defunct_block_invoke + 24
3  libnetwork.dylib               0x782e0 nw_hash_table_apply + 168
4  libnetwork.dylib               0x1347e0 nw_channel_check_defunct + 768
5  libnetwork.dylib               0x52dedc nw_channel_update_input_source + 460
6  libnetwork.dylib               0x52d06c __nw_channel_create_block_invoke.29 + 72
7  libdispatch.dylib              0x4670 _dispatch_client_callout + 20
8  libdispatch.dylib              0x7b44 _dispatch_continuation_pop + 504
9  libdispatch.dylib              0x1ac48 _dispatch_source_invoke + 1356
10 libdispatch.dylib              0xdc84 _dispatch_workloop_invoke + 1796
11 libdispatch.dylib              0x171b8 _dispatch_workloop_worker_thread + 656
12 libsystem_pthread.dylib        0x10f4 _pthread_wqthread + 288
13 libsystem_pthread.dylib        0xe94 start_wqthread + 8

Can you post the complete crash log. See Quinns post about Posting a Crash Report.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Here is the complete crash report.

Assuming that crash report is to be believed [1], your crashing because Network framework has decided to clean up a connection (nw_channel_check_defunct) which has noticed that it’s disconnected (nw_channel_disconnect_flow) and raised an ENOTCONN error (register x2 is 0x0000000000000039, that is, 57, that ENOTCONN). As part of handling that the process crashed because of a bogus pointer. The crashing address is 0x6579654b534e0f48 but the actual bogus point is in register x8, that is, 0x6579654b534e0f10. That’s very ASCII-looking, corresponding to eyeKSN\x0f\x10, but I’m not entirely sure whether that means anything. Regardless, it’s not even close to what a pointer should look like and suggests that something deep within Network framework has got corrupted.

How often are you seeing this crash?

Share and Enjoy

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

[1] There’s evidence of a third-party crash reporter in play here, which is never a good sign. However, I don’t see any indication that it’s actively messed things up.

But does it due to the slowness of internet while using some activity/process that requires internet?

It’s hard to say. It could just as easily be the result of some other weird state within your process.

The crash report you posted earlier was a little messed up. It contained a bunch of & goo that I had to fix up. Can you track down and post a clean version? There’s another test I’d like to do but it’s failing in a weird way, and I’m not sure whether that’s because this is a third-party crash report or whether it has something related to my fix ups.

Share and Enjoy

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

Our app also experienced this crash:

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 (缺少)

Have you solved it? Please help

Crashed: com.apple.network.connections
 
 
Q