Bug 207938 - [ Mac wk2 ] http/wpt/crypto/derive-hmac-key-crash.any.html is flaky crashing
Summary: [ Mac wk2 ] http/wpt/crypto/derive-hmac-key-crash.any.html is flaky crashing
Status: RESOLVED DUPLICATE of bug 208206
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-19 08:25 PST by Jason Lawrence
Modified: 2020-04-16 08:45 PDT (History)
5 users (show)

See Also:


Attachments
Crash Log (70.02 KB, application/x-webarchive)
2020-02-19 08:26 PST, Jason Lawrence
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lawrence 2020-02-19 08:25:50 PST
http/wpt/crypto/derive-hmac-key-crash.any.html


Description:
This test is flaky crashing on Mac wk2. The crashes appear to have started at r256842.


History:
https://results.webkit.org/?suite=layout-tests&test=http%2Fwpt%2Fcrypto%2Fderive-hmac-key-crash.any.html&flavor=wk2&platform=mac

Crash log:
https://build.webkit.org/results/Apple-Catalina-Debug-WK2-Tests/r256916%20(2407)/http/wpt/crypto/derive-hmac-key-crash.any-crash-log.txt
Comment 1 Jason Lawrence 2020-02-19 08:26:45 PST
Created attachment 391164 [details]
Crash Log
Comment 2 Radar WebKit Bug Importer 2020-02-19 08:28:15 PST
<rdar://problem/59591165>
Comment 3 Jason Lawrence 2020-02-19 08:34:02 PST
I have marked this test as crashing while this issue is investigated.
https://trac.webkit.org/changeset/256919/webkit
Comment 4 Jason Lawrence 2020-02-19 15:17:38 PST
I am able to reproduce this with a debug build of r256941 by running the command below.
run-webkit-tests http/wpt/crypto/derive-hmac-key-crash.any.html --iterations 4000 --exit-after-n-failures 5 -f --force --debug -g

[252/4000] http/wpt/crypto/derive-hmac-key-crash.any.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=48111])
[256/4000] http/wpt/crypto/derive-hmac-key-crash.any.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=48117])
[263/4000] http/wpt/crypto/derive-hmac-key-crash.any.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=48113])
[378/4000] http/wpt/crypto/derive-hmac-key-crash.any.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=48115])
[386/4000] http/wpt/crypto/derive-hmac-key-crash.any.html failed unexpectedly (com.apple.WebKit.WebContent.Development crashed [pid=48119])
Python[48078]: unlink: 'observations.db-wal' guarded by com.apple.WebKit[48205] (0x8fd4dbfade2dead)
Exiting early after 5 failures. 381 tests run.

376 tests ran as expected, 5 didn't (3619 didn't run):
Comment 5 Alexey Proskuryakov 2020-02-19 23:05:38 PST
SHOULD NEVER BE REACHED
/Volumes/Data/slave/catalina-debug/build/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp(952) : unsigned int WebKit::ResourceLoadStatisticsDatabaseStore::getNumberOfPrevalentResources() const
1   0x13186bd79 WTFCrash
2   0x10d31046b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x10d9aa2ec WebKit::ResourceLoadStatisticsDatabaseStore::getNumberOfPrevalentResources() const
4   0x10d9aaac0 WebKit::ResourceLoadStatisticsDatabaseStore::calculateTelemetryData(WebKit::PrevalentResourceDatabaseTelemetry&) const
5   0x10d9ab713 WebKit::ResourceLoadStatisticsDatabaseStore::calculateAndSubmitTelemetry() const
6   0x10d9d5e17 WebKit::ResourceLoadStatisticsDatabaseStore::ResourceLoadStatisticsDatabaseStore(WebKit::WebResourceLoadStatisticsStore&, WTF::WorkQueue&, WebKit::ShouldIncludeLocalhost, WTF::String const&, PAL::SessionID)::$_11::operator()() const
7   0x10d9d5cf9 WTF::Detail::CallableWrapper<WebKit::ResourceLoadStatisticsDatabaseStore::ResourceLoadStatisticsDatabaseStore(WebKit::WebResourceLoadStatisticsStore&, WTF::WorkQueue&, WebKit::ShouldIncludeLocalhost, WTF::String const&, PAL::SessionID)::$_11, void>::call()
8   0x1318963aa WTF::Function<void ()>::operator()() const
Comment 6 Alexey Proskuryakov 2020-02-19 23:18:21 PST
This is the same issue as bug 207269, just moved to a new place.

I've been unable to extract the log message from any bots. But I have logging from Kate's machine that says this:

ResourceLoadStatisticsDatabaseStore::getNumberOfPrevalentResources failed to step, error message: another row available
Comment 7 Kate Cheney 2020-02-20 07:33:19 PST
(In reply to Alexey Proskuryakov from comment #6)
> This is the same issue as bug 207269, just moved to a new place.
> 
> I've been unable to extract the log message from any bots. But I have
> logging from Kate's machine that says this:
> 
> ResourceLoadStatisticsDatabaseStore::getNumberOfPrevalentResources failed to
> step, error message: another row available

Hmm, this error message doesn't seem to align with where this crash is happening, because another row available means the result value was SQLITE_ROW, which is not the case if the execution enters this block. I wonder if the return value is not SQLITE_ROW or SQLITE_DONE but doesn't return an error. Investigating this now.
Comment 8 Kate Cheney 2020-04-16 08:45:36 PDT

*** This bug has been marked as a duplicate of bug 208206 ***