Post

Replies

Boosts

Views

Created

App Crash in CFNetwork appWasLaunchedForBackgroundSession
We've started to see thousands of crashes on iOS 14.0 (a few on iOS 14.2) when our app is launched for a background session. It looks like CFNetwork is logging something. Is this a bug in CFNetwork? Has anyone encountered a similar crash? Exception Type:&#9;EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000d466bbe9c VM Region Info: 0xd466bbe9c is not in any region.&#9;Bytes after previous region: 45741751965&#9;Bytes before following region: 10629693796 &#9;&#9;&#9;REGION TYPE&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;START - END&#9;&#9;&#9;&#9;&#9;&#9; [ VSIZE] PRT/MAX SHRMOD&#9;REGION DETAIL &#9;&#9;&#9;MALLOC_NANO&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 280000000-2a0000000&#9;&#9;&#9;&#9;[512.0M] rw-/rwx SM=PRV&#9;-->&#9;GAP OF 0xd20000000 BYTES &#9;&#9;&#9;commpage (reserved)&#9;&#9;&#9;&#9;&#9; fc0000000-1000000000&#9;&#9;&#9; [&#9;1.0G] ---/--- SM=NUL&#9;...(unallocated) Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [202] Triggered by Thread:&#9;0 Thread 0 name: Thread 0 Crashed: 0&#9; libobjc.A.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x000000019422b1c0 objc_opt_isKindOfClass + 20 (objc-object.h:260) 1&#9; libsystem_trace.dylib&#9;&#9;&#9;&#9; 0x0000000195dd60a4 _os_log_fmt_flatten_object + 816 (format.m:109) 2&#9; libsystem_trace.dylib&#9;&#9;&#9;&#9; 0x0000000195de2500 _os_log_impl_flatten_and_send + 1716 (format.c:799) 3&#9; libsystem_trace.dylib&#9;&#9;&#9;&#9; 0x0000000195de1e34 _os_log + 152 (log.c:2214) 4&#9; libsystem_trace.dylib&#9;&#9;&#9;&#9; 0x0000000195de45e0 _os_log_impl + 12 (log.c:2228) 5&#9; CFNetwork&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000181078dd0 -[__NSURLBackgroundSession appWasLaunchedForBackgroundSession:] + 240 (BackgroundSession.mm:0) 6&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000180949098 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 20 (CFNotificationCenter.c:706) 7&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000180949058 ___CFXRegistrationPost_block_invoke + 48 (CFNotificationCenter.c:173) 8&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000180948650 _CFXRegistrationPost + 400 (CFNotificationCenter.c:198) 9&#9; CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000180948048 _CFXNotificationPost + 696 (CFNotificationCenter.c:1071) 10&#9;Foundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000181b67b20 -[NSNotificationCenter postNotificationName:object:userInfo:] + 60 (NSNotification.m:575) 11&#9;CFNetwork&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018117bd40 +[NSURLSession _sendPendingCallbacksForSessionIdentifier:] + 64 (Session.mm:222) 12&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018323e990 -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:] + 2932 (UIApplication.m:10283) 13&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000182750538 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 476 (UIScene.m:1118) 14&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000182751600 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 220 (UIScene.m:1380) 15&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000182d6ad84 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464 (UIApplicationSceneClientAgent.m:80) 16&#9;FrontBoardServices&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018f2654b0 -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:] + 456 (FBSScene.m:547) 17&#9;FrontBoardServices&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018f28dcec __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2 + 124 (FBSWorkspaceScenesClient.m:533) 18&#9;FrontBoardServices&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018f272410 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232 (FBSWorkspace.m:355) 19&#9;FrontBoardServices&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018f28dc38 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke + 368 (FBSWorkspaceScenesClient.m:532) 20&#9;libdispatch.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018061f280 _dispatch_client_callout + 16 (object.m:559) 21&#9;libdispatch.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001805c4b0c _dispatch_block_invoke_direct$VARIANT$mp + 224 (queue.c:468) 22&#9;FrontBoardServices&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018f2b14b8 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 40 (FBSSerialQueue.m:184) 23&#9;FrontBoardServices&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018f2b1180 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 404 (FBSSerialQueue.m:227) 24&#9;FrontBoardServices&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018f2b1654 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:258) 25&#9;CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000180966240 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 (CFRunLoop.c:1967) 26&#9;CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000180966140 __CFRunLoopDoSource0 + 204 (CFRunLoop.c:2011) 27&#9;CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000180965488 __CFRunLoopDoSources0 + 256 (CFRunLoop.c:2048) 28&#9;CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018095fa40 __CFRunLoopRun + 776 (CFRunLoop.c:2925) 29&#9;CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018095f200 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3242) 30&#9;GraphicsServices&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000196a5a598 GSEventRunModal + 160 (GSEvent.c:2259) 31&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x0000000183225004 -[UIApplication _run] + 1052 (UIApplication.m:3270) 32&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018322a5d8 UIApplicationMain + 164 (UIApplication.m:4739) 33&#9;<app>&#9;&#9;&#9;&#9;&#9; 0x00000001004853a4 main + 68 (AppDelegate.swift:26) 34&#9;libdyld.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x000000018063e598 start + 4
7
0
1.7k
Oct ’20