Crash on libquic.dylib (com.apple.network.connections) EXC_BREAKPOINT (SIGTRAP)

Hi

Getting a crash mainly on iOS 15 with the Apple network thread. From our logs seems like in many locations in the app. Anyone any advice on how to debug it.

Apple crash log below:

Answered by DTS Engineer in 695220022

iOS 15.2b2 (19C5036e) … does not have the fix for this bug (r. 84641488).

Yesterday we started seeding iOS 15.2b3 (19C5044b). My understanding is that this includes the fix for this bug (yay!). Please let us know if you see any evidence to the contrary.

Share and Enjoy

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

shuaichaolian wrote:

Is there any way to bypass this problem?

Not on the client side.

xinlinp wrote:

if it is public?

It is not.


iOS 13.2 was just released and I recommend that you encourage your users to upgrade.

Share and Enjoy

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

Seemingly out of no where I have just started to see this crash pop up as our #1 crash in app. It is a repetitive crash for most users that see it.

It seems that the issue is still around or a new one creeped in? I can see a number of crashes in Crashlytics on iOS 15.5.0.

Crashed: com.apple.network.connections
0  libquic.dylib                  0x6b06c qlog_abort_internal + 276
1  libquic.dylib                  0x6b058 qlog_abort_internal + 256
2  libquic.dylib                  0x239e4 quic_send_frames_for_key_state + 3928
3  libquic.dylib                  0x301e0 quic_migration_probe_path + 1532
4  libquic.dylib                  0x33010 quic_migration_new_cid + 156
5  libquic.dylib                  0x110e0 quic_frame_process_NEW_CONNECTION_ID + 4080
6  libquic.dylib                  0x647cc quic_frame_process + 140
7  libquic.dylib                  0x169c4 quic_process_inbound + 1376
8  libnetwork.dylib               0x5dd5f0 nw_protocol_data_access_buffer + 1064
9  libquic.dylib                  0x157cc __quic_handle_inbound_block_invoke + 152
10 libquic.dylib                  0x10bc quic_handle_inbound + 124
11 libnetwork.dylib               0x5c048c __nw_protocol_implementation_get_input_internal_block_invoke + 136
12 libnetwork.dylib               0x5bf60c nw_protocol_implementation_get_input_internal + 252
13 libnetwork.dylib               0x5be7f8 nw_protocol_implementation_read + 436
14 libnetwork.dylib               0x5bdf08 nw_protocol_implementation_input_available + 96
15 libnetwork.dylib               0x514698 nw_channel_add_input_frames + 9236
16 libnetwork.dylib               0x512198 nw_channel_update_input_source + 328
17 libnetwork.dylib               0x5113a4 __nw_channel_create_block_invoke.29 + 72
18 libdispatch.dylib              0x3a30 _dispatch_client_callout + 20
19 libdispatch.dylib              0x6eec _dispatch_continuation_pop + 500
20 libdispatch.dylib              0x1a13c _dispatch_source_invoke + 1596
21 libdispatch.dylib              0xcf80 _dispatch_workloop_invoke + 1784
22 libdispatch.dylib              0x16500 _dispatch_workloop_worker_thread + 648
23 libsystem_pthread.dylib        0x10bc _pthread_wqthread + 288
24 libsystem_pthread.dylib        0xe5c start_wqthread + 8

Hi, we are facing the same issue :

Date/Time:           2022-06-29 08:37:19.0160 +0100
Launch Time:         2022-06-27 20:29:15.7296 +0100
OS Version:          iPhone OS 15.5 (19F77)
Release Type:        User
Baseband Version:    2.54.02
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000021536806c
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [11588]

Triggered by Thread:  16


Thread 16 name:
Thread 16 Crashed:
0   libquic.dylib                 	0x000000021536806c qlog_abort_internal + 276 (qlog.c:190)
1   libquic.dylib                 	0x0000000215368058 qlog_abort_internal + 256 (qlog.c:188)
2   libquic.dylib                 	0x00000002153209e4 quic_send_frames_for_key_state + 3928 (strict.h:96)
3   libquic.dylib                 	0x000000021532d1e0 quic_migration_probe_path + 1532 (protocol_quic.c:579)
4   libquic.dylib                 	0x0000000215330010 quic_migration_new_cid + 156 (quic_migration.c:803)
5   libquic.dylib                 	0x000000021530e0e0 quic_frame_process_NEW_CONNECTION_ID + 4080 (quic_frame.c:1675)
6   libquic.dylib                 	0x00000002153617cc quic_frame_process + 140 (quic_frame.c:3457)
7   libquic.dylib                 	0x00000002153139c4 quic_process_inbound + 1376 (protocol_quic.c:1443)
8   libnetwork.dylib              	0x00000001a538a5f0 nw_protocol_data_access_buffer + 1064 (protocol_implementation.m:6076)
9   libquic.dylib                 	0x00000002153127cc __quic_handle_inbound_block_invoke + 152 (protocol_quic.c:2761)
10  libquic.dylib                 	0x00000002152fe0bc quic_handle_inbound + 124 (protocol_quic.c:2757)
11  libnetwork.dylib              	0x00000001a536d48c __nw_protocol_implementation_get_input_internal_block_invoke + 136 (protocol_implementation.m:1459)
12  libnetwork.dylib              	0x00000001a536c60c nw_protocol_implementation_get_input_internal + 252 (frame_internal.h:1246)
13  libnetwork.dylib              	0x00000001a536b7f8 nw_protocol_implementation_read + 436 (protocol_implementation.m:1852)
14  libnetwork.dylib              	0x00000001a536af08 nw_protocol_implementation_input_available + 96 (protocol_implementation.m:1890)
15  libnetwork.dylib              	0x00000001a52c1698 nw_channel_add_input_frames + 9236 (channel.c:1362)
16  libnetwork.dylib              	0x00000001a52bf198 nw_channel_update_input_source + 328 (channel.c:1462)
17  libnetwork.dylib              	0x00000001a52be3a4 __nw_channel_create_block_invoke.29 + 72 (channel.c:2387)
18  libdispatch.dylib             	0x00000001a3dcca30 _dispatch_client_callout + 20 (object.m:560)
19  libdispatch.dylib             	0x00000001a3dcfeec _dispatch_continuation_pop + 500 (inline_internal.h:2622)
20  libdispatch.dylib             	0x00000001a3de313c _dispatch_source_invoke + 1596 (source.c:596)
21  libdispatch.dylib             	0x00000001a3dd5f80 _dispatch_workloop_invoke + 1784 (inline_internal.h:0)
22  libdispatch.dylib             	0x00000001a3ddf500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
23  libsystem_pthread.dylib       	0x0000000215a240bc _pthread_wqthread + 288 (pthread.c:2599)
24  libsystem_pthread.dylib       	0x0000000215a23e5c start_wqthread + 8

The volume is increasing :-€ 
No idea which server may have activated Quic !

Same crash in iPhone X iOS 15.5.0 -

Here is firebase crash report -

Crashed: com.apple.network.connections
0  libquic.dylib                  0x69490 qlog_abort_internal + 272
1  libquic.dylib                  0x6947c qlog_abort_internal + 252
2  libquic.dylib                  0x23200 quic_send_frames_for_key_state + 3876
3  libquic.dylib                  0x2f8a4 quic_migration_probe_path + 1528
4  libquic.dylib                  0x32690 quic_migration_new_cid + 152
5  libquic.dylib                  0x10db4 quic_frame_process_NEW_CONNECTION_ID + 4076
6  libquic.dylib                  0x62f5c quic_frame_process + 136
7  libquic.dylib                  0x164a8 quic_process_inbound + 1372
8  libnetwork.dylib               0x5a0258 nw_protocol_data_access_buffer + 1016
9  libquic.dylib                  0x152d4 __quic_handle_inbound_block_invoke + 124
10 libquic.dylib                  0x10dc quic_handle_inbound + 96
11 libnetwork.dylib               0x590838 __nw_protocol_implementation_get_input_internal_block_invoke + 132
12 libnetwork.dylib               0x58fa64 nw_protocol_implementation_get_input_internal + 224
13 libnetwork.dylib               0x58ecf8 nw_protocol_implementation_read + 376
14 libnetwork.dylib               0x580b40 nw_protocol_implementation_input_available + 92
15 libnetwork.dylib               0x4dff1c nw_channel_add_input_frames + 9048
16 libnetwork.dylib               0x4ddadc nw_channel_update_input_source + 300
17 libnetwork.dylib               0x4dcd68 __nw_channel_create_block_invoke.22 + 68
18 libdispatch.dylib              0x64094 _dispatch_client_callout + 16
19 libdispatch.dylib              0x3bab8 _dispatch_continuation_pop$VARIANT$armv81 + 432
20 libdispatch.dylib              0x4d16c _dispatch_source_invoke$VARIANT$armv81 + 1560
21 libdispatch.dylib              0x41094 _dispatch_workloop_invoke$VARIANT$armv81 + 1640
22 libdispatch.dylib              0x498e0 _dispatch_workloop_worker_thread + 608
23 libsystem_pthread.dylib        0x1e10 _pthread_wqthread + 284
24 libsystem_pthread.dylib        0x193c start_wqthread + 8

Thank you for the reports of crashes on iOS 15.5. Did anyone here get a bug report down if you do not have one previously opened? If so, please post those Feedback IDs here.

We are facing a related crash from firebase and this happened on iPhone and iPad

Crashed: com.apple.network.connections
0  libxpc.dylib                   0x1fc70 _xpc_api_misuse + 80
1  libxpc.dylib                   0x14064 _xpc_dictionary_apply_apply + 166
2  libnetwork.dylib               0x530928 nw_browser_notify_browse_result_changes_locked + 280
3  libnetwork.dylib               0x52c570 nw_browser_dns_service_browse_callback + 2908
4  libsystem_dnssd.dylib          0x5250 handle_browse_response + 472
5  libsystem_dnssd.dylib          0x2bec DNSServiceProcessResult + 728
6  libdispatch.dylib              0x3a30 _dispatch_client_callout + 20
7  libdispatch.dylib              0x6eec _dispatch_continuation_pop + 500
8  libdispatch.dylib              0x1a13c _dispatch_source_invoke + 1596
9  libdispatch.dylib              0xcf80 _dispatch_workloop_invoke + 1784
10 libdispatch.dylib              0x16500 _dispatch_workloop_worker_thread + 648
11 libsystem_pthread.dylib        0x10bc _pthread_wqthread + 288
12 libsystem_pthread.dylib        0xe5c start_wqthread + 8

This thread is about a crash where the topmost stack from is qlog_abort_internal. Your crash is quite different. Please start a new thread about it. Tag your thread with Network so that I see it. Also, please include the full crash report, per the instructions in Posting a Crash Report.

Share and Enjoy

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

We are facing a related crash from firebase and this happened on iPhone iOS16.1.0 and iOS16.1.1: 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 (缺少)

I encountered other Network framework error from iOS16.1.0 and iOS16.1.1 users

0  libxpc.dylib                   0x16020 _xpc_dictionary_insert + 96
1  Network                        0x908504 nw_path_snapshot_agents + 292
2  Network                        0x907960 nw_path_snapshot_path + 192
3  Network                        0x9257b8 nw_path_necp_update_evaluator + 756
4  Network                        0x924aa4 nw_path_necp_check_for_updates + 1268
5  libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
6  libdispatch.dylib              0x746c _dispatch_continuation_pop + 504
7  libdispatch.dylib              0x1aa58 _dispatch_source_invoke + 1588
8  libdispatch.dylib              0xd4f8 _dispatch_workloop_invoke + 1780
9  libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
10 libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
11 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 xxxx                           0x44ea24 main + 14 (main.m:14)
11 ???                            0x1d6e8c960 (缺少)
Crash on libquic.dylib (com.apple.network.connections) EXC_BREAKPOINT (SIGTRAP)
 
 
Q