Bug 208014

Summary: [ Mac wk2 Debug ] http/tests/websocket/tests/hybi/no-subprotocol.html is flaky crashing.
Product: WebKit Reporter: Jason Lawrence <Lawrence.j>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: katherine_cheney, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: macOS 10.15   
Attachments:
Description Flags
Crash log
none
run-webkit-tests output none

Description Jason Lawrence 2020-02-20 10:29:58 PST
Created attachment 391303 [details]
Crash log

http/tests/websocket/tests/hybi/no-subprotocol.html

Description:
This test is flaky crashing on Mac wk2 Debug .The earliest crash appears to be on r254669.

History:
https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Fwebsocket%2Ftests%2Fhybi%2Fno-subprotocol.html&style=debug&platform=mac&flavor=wk2&limit=50000

Crash log:
attached.
Comment 1 Radar WebKit Bug Importer 2020-02-20 10:31:13 PST
<rdar://problem/59634273>
Comment 2 Jason Lawrence 2020-02-20 10:40:17 PST
I have marked this test as crashing while the issue is investigated.
https://trac.webkit.org/changeset/257069/webkit
Comment 3 Alexey Proskuryakov 2020-02-22 17:16:50 PST
ERROR: Could not create TopFrameLoadedThirdPartyScripts table in database (5) - database is locked
/Volumes/Data/slave/mojave-debug/build/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp(462) : bool WebKit::ResourceLoadStatisticsDatabaseStore::createSchema()
SHOULD NEVER BE REACHED
/Volumes/Data/slave/mojave-debug/build/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp(290) : WebKit::ResourceLoadStatisticsDatabaseStore::ResourceLoadStatisticsDatabaseStore(WebKit::WebResourceLoadStatisticsStore &, WTF::WorkQueue &, WebKit::ShouldIncludeLocalhost, const WTF::String &, PAL::SessionID)
1   0x12fec50b9 WTFCrash
2   0x10820214b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x108894d53 WebKit::ResourceLoadStatisticsDatabaseStore::ResourceLoadStatisticsDatabaseStore(WebKit::WebResourceLoadStatisticsStore&, WTF::WorkQueue&, WebKit::ShouldIncludeLocalhost, WTF::String const&, PAL::SessionID)
4   0x108896364 WebKit::ResourceLoadStatisticsDatabaseStore::ResourceLoadStatisticsDatabaseStore(WebKit::WebResourceLoadStatisticsStore&, WTF::WorkQueue&, WebKit::ShouldIncludeLocalhost, WTF::String const&, PAL::SessionID)
5   0x1089210bc std::__1::__unique_if<WebKit::ResourceLoadStatisticsDatabaseStore>::__unique_single std::__1::make_unique<WebKit::ResourceLoadStatisticsDatabaseStore, WebKit::WebResourceLoadStatisticsStore&, WTF::Ref<WTF::WorkQueue, WTF::DumbPtrTraits<WTF::WorkQueue> >&, WebKit::ShouldIncludeLocalhost const&, WTF::String const&, PAL::SessionID const&>(WebKit::WebResourceLoadStatisticsStore&&&, WTF::Ref<WTF::WorkQueue, WTF::DumbPtrTraits<WTF::WorkQueue> >&&&, WebKit::ShouldIncludeLocalhost const&&&, WTF::String const&&&, PAL::SessionID const&&&)
Comment 4 Alexey Proskuryakov 2020-02-22 17:17:18 PST
Seems very unlikely that this would be the only test affected by this.
Comment 5 Alexey Proskuryakov 2020-02-22 17:22:08 PST
Created attachment 391470 [details]
run-webkit-tests output

There is a LOT of error logging from SQLite, starting from the very beginning of the tests.