Bug 195779 - REGRESSION: Layout Test http/tests/security/cross-origin-indexeddb.html is crashing
Summary: REGRESSION: Layout Test http/tests/security/cross-origin-indexeddb.html is cr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-14 16:13 PDT by Truitt Savell
Modified: 2019-03-21 11:52 PDT (History)
13 users (show)

See Also:


Attachments
Patch (1.98 KB, patch)
2019-03-14 17:07 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (2.44 KB, patch)
2019-03-14 17:13 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Truitt Savell 2019-03-14 16:13:01 PDT
The following layout test is crashing on iOS and Mac Debug WK2

http/tests/security/cross-origin-indexeddb.html

Probable cause:

This test recently began crashing around r242911. It is fairly consistent failure and crashes around 90% of the time on the bots. I am unable to reproduce locally right now. 

Flakiness Dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fsecurity%2Fcross-origin-indexeddb.html

Crash:
https://build.webkit.org/results/Apple%20Mojave%20Debug%20WK2%20(Tests)/r242946%20(1942)/http/tests/security/cross-origin-indexeddb-crash-log.txt

VM Regions Near 0xbbadbeef:
--> 
    __TEXT                 0000000104c3c000-0000000104c3d000 [    4K] r-x/rwx SM=COW  /Volumes/VOLUME/*/*.Development

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x000000011dc8ff40 WTFCrash + 16 (Assertions.cpp:305)
1   com.apple.WebCore             	0x000000010b8e154b WTFCrashWithInfo(int, char const*, char const*, int) + 27
2   com.apple.WebCore             	0x000000010d178aaa WTF::CrossThreadQueue<WTF::CrossThreadTask>::append(WTF::CrossThreadTask&&) + 138 (CrossThreadQueue.h:64)
Comment 1 youenn fablet 2019-03-14 17:07:22 PDT
Created attachment 364722 [details]
Patch
Comment 2 youenn fablet 2019-03-14 17:12:24 PDT
Tried to reproduce locally as well but failed.

The current model is that we only potentially delay tasks that might increase quota.
Read operations or delete operations can carry on without waiting for the space request.
Patch should fix the crash.

I wonder whether the IDB implementation would behave better with waiting for the space request to complete to carry on with other tasks, be they read, write or delete.
Comment 3 youenn fablet 2019-03-14 17:13:27 PDT
Created attachment 364724 [details]
Patch
Comment 4 Chris Dumez 2019-03-19 11:28:20 PDT
Comment on attachment 364724 [details]
Patch

r=me
Comment 5 WebKit Commit Bot 2019-03-19 11:55:03 PDT
Comment on attachment 364724 [details]
Patch

Clearing flags on attachment: 364724

Committed r243157: <https://trac.webkit.org/changeset/243157>
Comment 6 WebKit Commit Bot 2019-03-19 11:55:05 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2019-03-19 11:56:18 PDT
<rdar://problem/49028748>