Bug 244554 - EXC_BAD_ACCESS: WebCoreResourceHandleAsOperationQueueDelegate connectionDidFinishLoading
Summary: EXC_BAD_ACCESS: WebCoreResourceHandleAsOperationQueueDelegate connectionDidFi...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-30 15:09 PDT by calschut
Modified: 2022-09-06 15:10 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description calschut 2022-08-30 15:09:09 PDT
I'm getting the following crash reports on iOS version 15.2 through 15.6 on iPhone/iPad.
I actually can't reproduce the crash but have plenty of reports crashing WebCoreResourceHandleAsOperationQueueDelegate.mm:341. 
The app loads multiple hidden web views simultaneously and then shows a successfully loaded view.


Exceptions are in the following form:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000048
Exception Codes: 0x0000000000000001, 0x0000000000000048
VM Region Info: 0x48 is not in any region.  Bytes before following region: 4305256376
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   1009d0000-100b2c000 [ 1392K] r-x/r-x SM=COW
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [26525]

Thread 6 Crashed:
0   WebCore                       	0x00000001a130fa90 WTF::Detail::CallableWrapper<-[WebCoreResourceHandleAsOperationQueueDelegate connectionDidFinishLoading:]::$_7, void>::call() + 192 (WebCoreResourceHandleAsOperationQueueDelegate.mm:341)
1   WebCore                       	0x00000001a130fa38 WTF::Detail::CallableWrapper<-[WebCoreResourceHandleAsOperationQueueDelegate connectionDidFinishLoading:]::$_7, void>::call() + 104 (WebCoreResourceHandleAsOperationQueueDelegate.mm:338)
2   JavaScriptCore                	0x000000019aaea2d0 WTF::RunLoop::performWork() + 200 (Function.h:82)
3   JavaScriptCore                	0x000000019aaeb06c WTF::RunLoop::performWork(void*) + 36 (RunLoopCF.cpp:46)
4   CoreFoundation                	0x000000018f8f3414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1972)
5   CoreFoundation                	0x000000018f9041a0 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016)
6   CoreFoundation                	0x000000018f83d694 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2053)
7   CoreFoundation                	0x000000018f84305c __CFRunLoopRun + 828 (CFRunLoop.c:2951)
8   CoreFoundation                	0x000000018f856bc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
9   WebCore                       	0x000000019fc48d9c RunWebThread(void*) + 760 (WebCoreThread.mm:679)
10  libsystem_pthread.dylib       	0x00000002012399ac _pthread_start + 148 (pthread.c:891)
11  libsystem_pthread.dylib       	0x0000000201238e68 thread_start + 8 (:-1)


0x1a828f000 - 0x1aa7f8fff WebCore arm64e  <46356aa10f253215915edbc81e3b4699> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x1a3ccb000 - 0x1a514ffff JavaScriptCore arm64e  <e76b377fc862395a9439d12b09a59e07> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
Comment 1 calschut 2022-08-30 15:27:45 PDT
I'm not sure if what I mentioned about "loads multiple hidden web views simultaneously" is accurate or really relevant.
Comment 2 Alexey Proskuryakov 2022-08-30 19:11:38 PDT
CC'ing Alex, who may have an idea about this.

That said, this is using deprecated legacy WebKit API. We recommend switching to the modern WebKit API.
Comment 3 Radar WebKit Bug Importer 2022-09-06 15:10:18 PDT
<rdar://problem/99622179>