We've recently started to see thousands of RUNNINGBOARD / 0xdead10cc crashes on iOS 14 from our packet tunnel extension. Based on other discussions and resources, 0xdead10cc indicates that an app is being killed for holding onto a lock during suspension. Our extension uses a SQLite database, and I do see background threads with sqlite calls in the crash logs. In a few instances of the crash logs, a background thread is handling -[NEExtensionPacketTunnelProviderContext stopWithReason:].
What does 0xdead10cc mean in the context of a network extension? Does a network extension even get suspended?
Are there scenarios where this crash would happen even when the tunnel is NOT being stopped?
Does this mean that the extension should release all locks before calling stopWithReason's completion handler?
Code Block Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: Namespace RUNNINGBOARD, Code 0xdead10cc Triggered by Thread: 0 Thread 0 name: Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00000001bf38bdd0 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001bf38b184 mach_msg + 76 (mach_msg.c:103) 2 CoreFoundation 0x00000001933facf8 CFRunLoopServiceMachPort + 380 (CFRunLoop.c:2641) 3 CoreFoundation 0x00000001933f4ea8 CFRunLoopRun + 1216 (CFRunLoop.c:2974) 4 CoreFoundation 0x00000001933f44bc CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242) 5 Foundation 0x0000000194671e30 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:374) 6 Foundation 0x00000001946a479c -[NSRunLoop(NSRunLoop) run] + 92 (NSRunLoop.m:399) 7 libxpc.dylib 0x00000001daa06428 _xpc_objc_main + 688 (main.m:265) 8 libxpc.dylib 0x00000001daa08700 xpc_main + 180 (init.c:1198) 9 Foundation 0x00000001946a6aa8 -[NSXPCListener resume] + 316 (NSXPCListener.m:448) 10 PlugInKit 0x00000001c1b37564 -[PKService run] + 424 (PKService.m:186) 11 PlugInKit 0x00000001c1b371a4 +[PKService main] + 576 (PKService.m:115) 12 PlugInKit 0x00000001c1b37970 +[PKService _defaultRun:arguments:] + 24 (PKService.m:233) 13 ExtensionKit 0x00000001978e5848 EXExtensionMain + 84 (EXExtensionMain.m:23) 14 Foundation 0x00000001947eeb78 NSExtensionMain + 200 (NSExtensionMain.m:13) 15 libdyld.dylib 0x00000001930bbe60 start + 4