CFNetwork CreateAndStoreCacheNode

AppVariant: 1:iPhone12,3:13 Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1]

Date/Time: 2022-04-17 12:26:31.2123 +0800 Launch Time: 2022-04-17 12:26:21.7178 +0800 OS Version: iPhone OS 14.2 (18B92) Release Type: User Baseband Version: 2.02.04 Report Version: 104

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 38

Thread 38 name: Thread 38 Crashed: 0 libsystem_kernel.dylib 0x00000001b884f414 __pthread_kill + 8 1 libsystem_pthread.dylib 0x00000001d4d67b40 pthread_kill + 272 (pthread.c:1388)

2 libsystem_c.dylib 0x0000000194c74b74 abort + 104 (abort.c:110)

3 libsystem_malloc.dylib 0x000000019acfa49c malloc_vreport + 560 (malloc_printf.c:183)

4 libsystem_malloc.dylib 0x000000019acfa740 malloc_zone_error + 104 (malloc_printf.c:219)

5 libsystem_malloc.dylib 0x000000019acdfab0 szone_free + 464 (magazine_malloc.c:0)

6 CoreFoundation 0x000000018b8ed638 __CFStringDeallocate + 192 (CFString.c:1168)

7 CoreFoundation 0x000000018b8ce104 _CFRelease + 248 (CFRuntime.c:2126)

8 CoreFoundation 0x000000018b82f78c -[__NSArrayI dealloc] + 80 (NSCollectionAux.h:70)

9 CoreFoundation 0x000000018b832e60 -[__NSDictionaryI dealloc] + 156 (NSCollectionAux.h:48)

10 CFNetwork 0x000000018bfc5d18 invocation function for block in __CFURLCache::CreateAndStoreCacheNode(__CFURLCacheNode*, _CFCachedURLResponse const*, __CFString const*, _CFURLRequest const*, void const*, bool, bool&) + 928 (AutoTypes.h:36)

11 libdispatch.dylib 0x000000018b552fb8 _dispatch_block_async_invoke2 + 148 (queue.c:527)

12 libdispatch.dylib 0x000000018b544db0 _dispatch_client_callout + 20 (object.m:559)

13 libdispatch.dylib 0x000000018b54c10c _dispatch_lane_serial_drain + 580 (inline_internal.h:2548)

14 libdispatch.dylib 0x000000018b54cc90 _dispatch_lane_invoke + 460 (queue.c:3862)

15 libdispatch.dylib 0x000000018b556d78 _dispatch_workloop_worker_thread + 708 (queue.c:6601)

16 libsystem_pthread.dylib 0x00000001d4d68804 _pthread_wqthread + 276 (pthread.c:2206)

17 libsystem_pthread.dylib 0x00000001d4d6f75c start_wqthread + 8

Thread 38 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000001 x7: 0x0000000000000010 x8: 0x00000000000005b9 x9: 0xcde6b451acd55cca x10: 0xcccccccccccccccd x11: 0x000000000000000a x12: 0x0000000000000000 x13: 0x0000000000000039 x14: 0x0000000086c24000 x15: 0x00000001eb0d1b80 x16: 0x0000000000000148 x17: 0x000000016ce27000 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x000000000000cd03 x21: 0x000000016ce270e0 x22: 0x000000016ce26400 x23: 0x000000012957c000 x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x000000016b36bc8a x27: 0x000000016ce27000 x28: 0x00000002825710a0 fp: 0x000000016ce26310 lr: 0x00000001d4d67b40 sp: 0x000000016ce262f0 pc: 0x00000001b884f414 cpsr: 0x40000000 esr: 0x56000080 Address size fault

Answered by DTS Engineer in 713981022

[Normally I’d ask for a full crash report, per the instructions in Posting a Crash Report, but TeeMo_Y sent me one via other means.]

Looking at the crash report this is clearly a memory corruption issue. The question is whether this is caused by your code or by something inside iOS. Based on some internal analysis I suspect that it’s the latter. If so, there’s probably not much you can do about it.

How easily can your reproduce this problem?

Share and Enjoy

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

Accepted Answer

[Normally I’d ask for a full crash report, per the instructions in Posting a Crash Report, but TeeMo_Y sent me one via other means.]

Looking at the crash report this is clearly a memory corruption issue. The question is whether this is caused by your code or by something inside iOS. Based on some internal analysis I suspect that it’s the latter. If so, there’s probably not much you can do about it.

How easily can your reproduce this problem?

Share and Enjoy

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

I haven't reproduced it under debug

Yeah, I thought that might be the case. My recommendation is that you apply the standard memory debugging tools to see if that can help reproduce the problem.

However, just to set expectations here, I suspect that this is an iOS issue and, if so, the most result from reproducing the problem is going to be a better bug report. Indeed, the main reason I’m sending you down this path is that regular testin with the standard memory debugging tools is a good idea regardless (-:

Share and Enjoy

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

CFNetwork CreateAndStoreCacheNode
 
 
Q