CFNetwork Crash in CFURLRequestSetURL At iOS 16

There are many crashes at iOS16 in CFURLRequestSetURL. The crash log

Crashed: com.apple.NSURLSession-work
0  CFNetwork                      0x18578 CFURLRequestSetURL + 14416
1  libdispatch.dylib              0x24b4 _dispatch_call_block_and_release + 32
2  libdispatch.dylib              0x3fdc _dispatch_client_callout + 20
3  libdispatch.dylib              0xb694 _dispatch_lane_serial_drain + 672
4  libdispatch.dylib              0xc214 _dispatch_lane_invoke + 436
5  libdispatch.dylib              0x16e10 _dispatch_workloop_worker_thread + 652
6  libsystem_pthread.dylib        0xdf8 _pthread_wqthread + 288
7  libsystem_pthread.dylib        0xb98 start_wqthread + 8

Crash log 2

Crashed: com.apple.NSURLSession-work
0  CFNetwork                      0x16dac CFURLRequestSetURL + 12708
1  libdispatch.dylib              0x63850 _dispatch_call_block_and_release + 24
2  libdispatch.dylib              0x647c8 _dispatch_client_callout + 16
3  libdispatch.dylib              0x3f854 _dispatch_lane_serial_drain$VARIANT$armv81 + 604
4  libdispatch.dylib              0x40318 _dispatch_lane_invoke$VARIANT$armv81 + 432
5  libdispatch.dylib              0x4a000 _dispatch_workloop_worker_thread + 612
6  libsystem_pthread.dylib        0x1b50 _pthread_wqthread + 284
7  libsystem_pthread.dylib        0x167c start_wqthread + 8

There are many crashes at iOS16 in CFURLRequestSetURL.

Please post a full Apple 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"

Thanks for the crash report.

Unfortunately there’s no obvious smoking gun here. My best guess is that this is a bug in CFNetwork. It seems to affect a wide variety of apps across a wide range of OS releases.

How reproducible is this for you?


Also, I can’t guarantee that this crash is the same crash that Tujie is talking about at the start of this thread. The issue is that their crash report is badly symbolicated. Consider this:

Crashed: com.apple.NSURLSession-work
0  CFNetwork                      0x18578 CFURLRequestSetURL + 14416

That offset, +14416, is way too large for the address to actually be within CFURLRequestSetURL, and without a full Apple crash report I can’t resymbolicate in order to find the right symbol.

Share and Enjoy

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

Hi, Eskimo, Thanks for your response! Maybe I didn't fully describe my problem before. Here I give you the full crash info. I check our app crash reports. I found the problem of CFNetwork crash, and this crash keeps growing.

This is the full Apple crash report

I found the problem of CFNetwork crash, and this crash keeps growing.

Understood. But my question was:

How reproducible is this for you?

Are you able to trigger this in your office at all?

Share and Enjoy

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

Hi, Did you find Any solution for this? we see this crash a lot lately.

This problem still exists in my App and I haven't found a solution yet

This problem still exists in my App

Which problem specifically? If you’re seeing crashes in CFURLRequestSetURL but with a huge offset, that could be caused by a wide variety of problems that all look like the same problem because of wonky symbolication (see my comments here).

If you have an Apple crash report, please post it here, using the advice in Posting a Crash Report.

Share and Enjoy

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

Hi, Eskimo, Thanks for your response. Here I give you the full crash info. This crash only occurs on iOS16. * devices.

This is the full Apple crash report

We are seeing this issue quite a lot lately. Are there any thoughts on this or resolution?

CFNetwork Crash in CFURLRequestSetURL At iOS 16
 
 
Q