Bug 233874

Summary: Regression(r286505) imported/w3c/web-platform-tests/html/cross-origin-opener-policy/javascript-url.https.html is a flaky crash
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, darin, ggaren, kkinnunen, ryanhaddad, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 233798    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2021-12-06 07:46:59 PST
imported/w3c/web-platform-tests/html/cross-origin-opener-policy/javascript-url.https.html is a flaky crash on the bots since r286505:
Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000000f0
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [2896]

VM Regions Near 0xf0:
--> 
    __TEXT                      10615b000-1061c3000    [  416K] r-x/r-x SM=COW  /Users/*/Library/Developer/CoreSimulator/Devices/5D5AF154-636E-4E5E-ABA2-9866ABCDDBBA/data/Containers/Bundle/Application/36B299DB-2011-4D11-9BC0-DB7660E1538B/WebKitTestRunnerApp.app/WebKitTestRunnerApp

Application Specific Information:
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Volumes/Data/worker/iOS-15-Simulator-WK2-Tests-EWS/build/WebKitBuild/Release-iphonesimulator DYLD_FRAMEWORK_PATH=/Volumes/Data/worker/iOS-15-Simulator-WK2-Tests-EWS/build/WebKitBuild/Release-iphonesimulator 
CRASHING TEST: ietestcenter/Javascript/15.12.3_4-1-3.html
CoreSimulator 776.3 - Device: Managed 2 (5D5AF154-636E-4E5E-ABA2-9866ABCDDBBA) - Runtime: iOS 15.0 (19A339) - DeviceType: iPhone 12

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebKit              	0x000000010e5774c4 WebKit::ProvisionalPageProxy::cancel() + 318
1   com.apple.WebKit              	0x000000010e5e5ccc WebKit::WebPageProxy::didStartProvisionalLoadForFrameShared(WTF::Ref<WebKit::WebProcessProxy, WTF::RawPtrTraits<WebKit::WebProcessProxy> >&&, WTF::ObjectIdentifier<WebCore::FrameIdentifierType>, WebKit::FrameInfoData&&, WebCore::ResourceRequest&&, unsigned long long, WTF::URL&&, WTF::URL&&, WebKit::UserData const&) + 260
2   com.apple.WebKit              	0x000000010e5e5ba9 WebKit::WebPageProxy::didStartProvisionalLoadForFrame(WTF::ObjectIdentifier<WebCore::FrameIdentifierType>, WebKit::FrameInfoData&&, WebCore::ResourceRequest&&, unsigned long long, WTF::URL&&, WTF::URL&&, WebKit::UserData const&) + 63
3   com.apple.WebKit              	0x000000010e9254f9 WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 2817
4   com.apple.WebKit              	0x000000010e1a9fb6 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 224
5   com.apple.WebKit              	0x000000010e60a0c2 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 24
6   com.apple.WebKit              	0x000000010e18c8e4 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 238
7   com.apple.WebKit              	0x000000010e189598 IPC::Connection::SyncMessageState::ConnectionAndIncomingMessage::dispatch() + 42
8   com.apple.WebKit              	0x000000010e1897c1 IPC::Connection::SyncMessageState::dispatchMessagesAndResetDidScheduleDispatchMessagesForConnection(IPC::Connection&) + 515
9   com.apple.JavaScriptCore      	0x000000010882f84f WTF::RunLoop::performWork() + 431
10  com.apple.JavaScriptCore      	0x0000000108830122 WTF::RunLoop::performWork(void*) + 34
11  com.apple.CoreFoundation      	0x00007fff20369e25 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
12  com.apple.CoreFoundation      	0x00007fff20369d1d __CFRunLoopDoSource0 + 180
13  com.apple.CoreFoundation      	0x00007fff203691f2 __CFRunLoopDoSources0 + 242
14  com.apple.CoreFoundation      	0x00007fff20363951 __CFRunLoopRun + 875
15  com.apple.CoreFoundation      	0x00007fff20363103 CFRunLoopRunSpecific + 567
16  com.apple.Foundation          	0x00007fff2081941c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
17  org.webkit.WebKitTestRunnerApp	0x0000000106184e68 WTR::TestController::platformRunUntil(bool&, WTF::Seconds) + 184
18  org.webkit.WebKitTestRunnerApp	0x000000010618e5a3 WTR::TestInvocation::invoke() + 393
19  org.webkit.WebKitTestRunnerApp	0x0000000106175fa0 WTR::TestController::runTest(char const*) + 330
20  org.webkit.WebKitTestRunnerApp	0x0000000106176232 WTR::TestController::runTestingServerLoop() + 128
21  org.webkit.WebKitTestRunnerApp	0x00000001061713f3 WTR::TestController::TestController(int, char const**) + 451
22  org.webkit.WebKitTestRunnerApp	0x00000001061606d8 -[WebKitTestRunnerApp _runTestController] + 40
23  com.apple.Foundation          	0x00007fff2084258c __NSThreadPerformPerform + 207
24  com.apple.CoreFoundation      	0x00007fff20369e25 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25  com.apple.CoreFoundation      	0x00007fff20369d1d __CFRunLoopDoSource0 + 180
26  com.apple.CoreFoundation      	0x00007fff20369254 __CFRunLoopDoSources0 + 340
27  com.apple.CoreFoundation      	0x00007fff20363951 __CFRunLoopRun + 875
28  com.apple.CoreFoundation      	0x00007fff20363103 CFRunLoopRunSpecific + 567
29  com.apple.GraphicsServices    	0x00007fff2c851cd3 GSEventRunModal + 139
30  com.apple.UIKitCore           	0x00007fff24ffbe63 -[UIApplication _run] + 928
31  com.apple.UIKitCore           	0x00007fff25000a53 UIApplicationMain + 101
32  org.webkit.WebKitTestRunnerApp	0x00000001061607d6 main + 65
33  dyld_sim                      	0x000000010627ce1e start_sim + 10
Comment 1 Chris Dumez 2021-12-06 08:15:52 PST
Created attachment 446040 [details]
Patch
Comment 2 Chris Dumez 2021-12-06 14:28:50 PST
*** Bug 233899 has been marked as a duplicate of this bug. ***
Comment 3 EWS 2021-12-06 15:37:37 PST
Committed r286574 (?): <https://commits.webkit.org/r286574>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 446040 [details].
Comment 4 Radar WebKit Bug Importer 2021-12-06 15:38:26 PST
<rdar://problem/86127153>