Crash within com.apple.CFNetwork.Connection , specifically due to EXC_BAD_ACCESS KERN_INVALID_ADDRESS.

Crash within com.apple.CFNetwork.Connection , specifically due to EXC_BAD_ACCESS KERN_INVALID_ADDRESS.

The crash occurred within the nghttp2_session_del() function indicating a problem with the nghttp2 library, which is commonly used for HTTP/2 communication.

This points towards a memory management issue. EXC_BAD_ACCESS generally signifies that the application attempted to access memory it didn't have permission to access, often caused by using a pointer after it has been freed or pointing to an invalid memory address.

** Crashed: com.apple.CFNetwork.Connection 0 libapple_nghttp2.dylib 0xa6ec nghttp2_session_del + 124 1 CFNetwork 0xace4c <redacted> + 428 2 CFNetwork 0xacc80 <redacted> + 36 3 libdispatch.dylib 0x2370 _dispatch_call_block_and_release + 32 4 libdispatch.dylib 0x40d0 _dispatch_client_callout + 20 5 libdispatch.dylib 0xb6d8 _dispatch_lane_serial_drain + 744 6 libdispatch.dylib 0xc214 _dispatch_lane_invoke + 432 7 libdispatch.dylib 0xd670 _dispatch_workloop_invoke + 1732 8 libdispatch.dylib 0x17258 _dispatch_root_queue_drain_deferred_wlh + 288 9 libdispatch.dylib 0x16aa4 _dispatch_workloop_worker_thread + 540 10 libsystem_pthread.dylib 0x4c7c _pthread_wqthread + 288 11 libsystem_pthread.dylib 0x1488 start_wqthread + 8 **

The stack trace does not point to any code within our product codebase, hence making it difficult to pinpoint the root cause of the issue as there are multiple network calls running concurrently during the app's runtime.

I am getting a similar crash.

Launch Time:         2024-12-23 09:18:44.6656 -0500
OS Version:          iPhone OS 18.1.1 (22B91)
Release Type:        User
Baseband Version:    5.10.01
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000000cf
Exception Codes: 0x0000000000000001, 0x00000000000000cf
VM Region Info: 0xcf is not in any region.  Bytes before following region: 4337303345
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   102860000-102c3c000 [ 3952K] r-x/r-x SM=COW  /var/containers/Bundle/Application/58FD5061-3ABE-401F-ABB1-C8AFA9D59CCE/TreatwarePos.app/TreatwarePos
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [5901]

Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib               	0x000000018db05248 objc_loadWeakRetained + 156 (NSObject.mm:525)
1   libobjc.A.dylib               	0x000000018db0517c objc_loadWeak + 24 (NSObject.mm:575)
2   CFNetwork                     	0x0000000191e950b4 _netServiceMonitorCallBack(__CFNetServiceMonitor*, __CFNetService*, CFNetServiceMonitorType, __CFData const*, CFStreamError*, void*) + 40 (NSNetServices.mm:613)
3   CFNetwork                     	0x0000000191ddd87c _MonitorCancel(__CFNetServiceMonitor*) + 132 (CFNetServiceMonitor.c:182)
4   CoreFoundation                	0x0000000190814328 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1970)
5   CoreFoundation                	0x00000001908142bc __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2014)
6   CoreFoundation                	0x0000000190811dc0 __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2051)
7   CoreFoundation                	0x0000000190810fbc __CFRunLoopRun + 840 (CFRunLoop.c:2969)
8   CoreFoundation                	0x0000000190810830 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
9   GraphicsServices              	0x00000001dc7f01c4 GSEventRunModal + 164 (GSEvent.c:2196)
10  UIKitCore                     	0x0000000193376eb0 -[UIApplication _run] + 816 (UIApplication.m:3844)
11  UIKitCore                     	0x00000001934255b4 UIApplicationMain + 340 (UIApplication.m:5496)
12  TreatwarePos                  	0x0000000102c3e84c main + 68 (AppDelegate.swift:37)
13  dyld                          	0x00000001b61feec8 start + 2724 (dyldMain.cpp:1334)

Please post a fully Apple crash report, per the advice in Posting a Crash Report.

Share and Enjoy

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

Crash within com.apple.CFNetwork.Connection , specifically due to EXC_BAD_ACCESS KERN_INVALID_ADDRESS.
 
 
Q