Bug 240927

Summary: [ iOS Debug Big Sur Debug wk2 ] ASSERTION FAILED: WebCore::IDBTransaction::dispatchEvent(WebCore::Event&)
Product: WebKit Reporter: Karl Rackler <rackler>
Component: New BugsAssignee: Karl Rackler <rackler>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, ben_schwartz, sihui_liu, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Crash_Log-Mac
none
Crash_Log_iOS none

Description Karl Rackler 2022-05-25 14:56:16 PDT
Created attachment 459770 [details]
Crash_Log-Mac

Description:
[ iOS Debug Big Sur Debug wk2 ] storage/indexeddb/request-with-null-open-db-request.html is a flaky crash
storage/indexeddb/request-with-null-open-db-request.html

The first failure that I saw on the dashboard for Big Sur was on 2/17/2022 r290034, but this does not appear relevant to causing this issue.  The first failure that I saw on the dashboard for iOS was on 4/7/2022 at r292541, but this does not appear relevant to causing this issue.   This test has been flaky for its entire history on the dashboard.

The test for Big Sure Debug x86_64 shows on the dashboard, but not on the Layout Test Results, but the bot shows stderr lines.  I gathered the crash log from the bot.

History:
https://results.webkit.org/?suite=layout-tests&test=storage%2Findexeddb%2Frequest-with-null-open-db-request.html&platform=ios&platform=mac&style=debug&version_name=Big%20Sur&version_name=iOS%2015&flavor=wk2&limit=50000

Crash Log:
Mac
CRASHING TEST: storage/indexeddb/request-with-null-open-db-request.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x000000042d83b9ce WTFCrash + 14 (Assertions.cpp:322)
1   com.apple.WebCore             	0x00000004067d379b WTFCrashWithInfo(int, char const*, char const*, int) + 27 (Assertions.h:748)
2   com.apple.WebCore             	0x0000000408e9664b WebCore::IDBTransaction::dispatchEvent(WebCore::Event&) + 715 (IDBTransaction.cpp:630)
3   com.apple.WebCore             	0x000000040a1f37b9 WebCore::EventTarget::dispatchEventForBindings(WebCore::Event&) + 249 (EventTarget.cpp:238)
4   com.apple.WebCore             	0x00000004074c11e6 WebCore::jsEventTargetPrototypeFunction_dispatchEventBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSEventTargetWrapper*) + 710 (JSEventTarget.cpp:284)
5   com.apple.WebCore             	0x00000004074c0eee long long WebCore::IDLOperation<WebCore::JSEventTarget>::call<&(WebCore::jsEventTargetPrototypeFunction_dispatchEventBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSEventTargetWrapper*)), (WebCore::CastedThisErrorBehavior)0>(JSC::JSGlobalObject&, JSC::CallFrame&, char const*) + 622 (JSEventTargetCustom.h:78)

iOS
 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0  com.apple.JavaScriptCore   	       0x82cdc35ce        WTFCrash
1  com.apple.WebCore          	       0x855c91538        WTFCrashWithInfo(int, char const*, char const*, int)
2  com.apple.WebCore          	       0x8582389b6        WebCore::IDBTransaction::dispatchEvent(WebCore::Event&)
3  com.apple.WebCore          	       0x859462230        WebCore::EventTarget::dispatchEventForBindings(WebCore::Event&)
4  com.apple.WebCore          	       0x85694f0fe        WebCore::jsEventTargetPrototypeFunction_dispatchEventBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSEventTargetWrapper*)
5  com.apple.WebCore          	       0x85694ee16        long long WebCore::IDLOperation<WebCore::JSEventTarget>::call<&(WebCore::jsEventTargetPrototypeFunction_dispatchEventBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSEventTargetWrapper*)), (WebCore::CastedThisErrorBehavior)0>(JSC::JSGlobalObject&, JSC::CallFrame&, char const*)
Comment 1 Radar WebKit Bug Importer 2022-05-25 14:56:38 PDT
<rdar://problem/93929670>
Comment 2 Karl Rackler 2022-05-25 14:58:24 PDT
Created attachment 459771 [details]
Crash_Log_iOS
Comment 3 Karl Rackler 2022-05-25 15:21:36 PDT
REPRODUCTION STEPS
I can reproduce this on ToT.

Command: 
run-webkit-tests --root 294820-debug --ios-simulator --debug --exit-after-n-failures 1 --exit-after-n-crashes-or-timeouts 1 --iterations 50 --no-retry storage/indexeddb/request-with-null-open-db-request.html

Result: 
Unexpected flakiness: crashes (1)
  storage/indexeddb/request-with-null-open-db-request.html [ Crash Pass ]
Comment 4 Karl Rackler 2022-05-25 15:27:02 PDT
I have marked this test as a flaky crash while this issue is investigated.
Comment 5 Karl Rackler 2022-05-25 15:33:56 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1028
Comment 6 EWS 2022-05-25 15:36:54 PDT
Test gardening commit r294829 (250979@main): <https://commits.webkit.org/250979@main>

Reviewed commits have been landed. Closing PR #1028 and removing active labels.
Comment 7 Alexey Proskuryakov 2022-05-30 19:31:03 PDT
ASSERTION FAILED: event.type() == eventNames().completeEvent || event.type() == eventNames().abortEvent

Isn't this a dupe of bug 230502?
Comment 8 Ryan Haddad 2022-06-03 16:37:13 PDT

*** This bug has been marked as a duplicate of bug 230502 ***
Comment 9 Ben Schwartz 2024-05-31 17:16:02 PDT
This no longer appears to be occurring. Removing test expectations. Please file a new bug if issues persist.

Tracking test expectations removal in bug #274990 (rdar://129080660).