Bug 207269 - REGRESSION: ASSERTION FAILED: resetResult == 0 on regression tests in ITP code, resetting SQLite statement
Summary: REGRESSION: ASSERTION FAILED: resetResult == 0 on regression tests in ITP cod...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac Unspecified
: P2 Normal
Assignee: Kate Cheney
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-05 08:27 PST by Jason Lawrence
Modified: 2020-02-19 23:18 PST (History)
9 users (show)

See Also:


Attachments
Crash log (71.15 KB, text/rtf)
2020-02-05 08:28 PST, Jason Lawrence
no flags Details
Update Test Expectations (1.46 KB, patch)
2020-02-05 08:33 PST, Jason Lawrence
no flags Details | Formatted Diff | Diff
Update Test Expectations (1.51 KB, patch)
2020-02-05 12:07 PST, Jason Lawrence
no flags Details | Formatted Diff | Diff
Patch (2.23 KB, patch)
2020-02-07 14:32 PST, Kate Cheney
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lawrence 2020-02-05 08:27:12 PST
http/tests/websocket/tests/hybi/workers/close.html

Description:
This test is flaky crashing on Mac debug wk2 and once on Catalina gpuprocess Debug. 

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

Crash log:
https://build.webkit.org/results/Apple%20Mojave%20Debug%20WK2%20(Tests)/r254447%20(6866)/http/tests/websocket/tests/hybi/server-close-crash-log.txt
Comment 1 Jason Lawrence 2020-02-05 08:28:28 PST
Created attachment 389808 [details]
Crash log
Comment 2 Radar WebKit Bug Importer 2020-02-05 08:28:54 PST
<rdar://problem/59188891>
Comment 3 Jason Lawrence 2020-02-05 08:33:05 PST
Created attachment 389811 [details]
Update Test Expectations
Comment 4 Jason Lawrence 2020-02-05 08:48:00 PST
Possible regression at r254421.
Comment 5 Truitt Savell 2020-02-05 08:49:12 PST
Comment on attachment 389811 [details]
Update Test Expectations

Clearing flags on attachment: 389811

Committed r255816: <https://trac.webkit.org/changeset/255816>
Comment 6 Truitt Savell 2020-02-05 12:05:49 PST
To confirm, this bug is tracking the crashes for http/tests/websocket/tests/hybi/server-close.html
Comment 7 Jason Lawrence 2020-02-05 12:07:39 PST
Created attachment 389841 [details]
Update Test Expectations
Comment 8 Truitt Savell 2020-02-05 12:08:16 PST
Comment on attachment 389841 [details]
Update Test Expectations

Clearing flags on attachment: 389841

Committed r255843: <https://trac.webkit.org/changeset/255843>
Comment 9 Alexey Proskuryakov 2020-02-05 23:01:56 PST
We should track all such crashes here. It seems very unlikely that this specific test is to blame.

Thread 13 Crashed:: Dispatch queue: WebResourceLoadStatisticsStore Process Data Queue
0   com.apple.JavaScriptCore      	0x000000012a3a8b00 WTFCrash + 16 (Assertions.cpp:305)
1   com.apple.WebKit              	0x00000001091d017b WTFCrashWithInfo(int, char const*, char const*, int) + 27
2   com.apple.WebKit              	0x00000001097b94c8 WebKit::resetStatement(WebCore::SQLiteStatement&) + 104 (ResourceLoadStatisticsDatabaseStore.cpp:326)
3   com.apple.WebKit              	0x00000001097be503 WebKit::ResourceLoadStatisticsDatabaseStore::getNumberOfPrevalentResources() const + 131 (ResourceLoadStatisticsDatabaseStore.cpp:957)
4   com.apple.WebKit              	0x00000001097bec60 WebKit::ResourceLoadStatisticsDatabaseStore::calculateTelemetryData(WebKit::PrevalentResourceDatabaseTelemetry&) const + 32 (ResourceLoadStatisticsDatabaseStore.cpp:1092)
5   com.apple.WebKit              	0x00000001097bf8b3 WebKit::ResourceLoadStatisticsDatabaseStore::calculateAndSubmitTelemetry() const + 163 (ResourceLoadStatisticsDatabaseStore.cpp:1118)
6   com.apple.WebKit              	0x00000001097e7de7 WebKit::ResourceLoadStatisticsDatabaseStore::ResourceLoadStatisticsDatabaseStore(WebKit::WebResourceLoadStatisticsStore&, WTF::WorkQueue&, WebKit::ShouldIncludeLocalhost, WTF::String const&, PAL::SessionID)::$_11::operator()() const + 55 (ResourceLoadStatisticsDatabaseStore.cpp:307)
7   com.apple.WebKit              	0x00000001097e7cc9 WTF::Detail::CallableWrapper<WebKit::ResourceLoadStatisticsDatabaseStore::ResourceLoadStatisticsDatabaseStore(WebKit::WebResourceLoadStatisticsStore&, WTF::WorkQueue&, WebKit::ShouldIncludeLocalhost, WTF::String const&, PAL::SessionID)::$_11, void>::call() + 25 (Function.h:52)
Comment 10 Kate Cheney 2020-02-07 14:32:14 PST
Created attachment 390124 [details]
Patch
Comment 11 Kate Cheney 2020-02-07 14:34:05 PST
This will still crash. But this adds more specific logging to know what error occurred, and doesn't try to reset the statement, which would cause another error.
Comment 12 WebKit Commit Bot 2020-02-07 17:03:52 PST
Comment on attachment 390124 [details]
Patch

Clearing flags on attachment: 390124

Committed r256085: <https://trac.webkit.org/changeset/256085>
Comment 13 WebKit Commit Bot 2020-02-07 17:03:54 PST
All reviewed patches have been landed.  Closing bug.