Bug 216440

Summary: REGRESSION (r266817): ASSERTION FAILED: injectedBundle.isTestRunning() on imported/w3c/web-platform-tests/service-workers/service-worker/svg-target-reftest.https.html
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: clopez, darin, ews-watchlist, sam, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=186045
https://bugs.webkit.org/show_bug.cgi?id=210375
Bug Depends on:    
Bug Blocks: 216428    
Attachments:
Description Flags
Patch
none
Patch none

Description Alexey Proskuryakov 2020-09-12 10:47:26 PDT
imported/w3c/web-platform-tests/service-workers/service-worker/svg-target-reftest.https.html turned from a failure to pass on release, but it crashes with an assertion in debug consistently.

1   0x12ccd064c WTFCrash
2   0x14159b220 WTR::makeValueRefForValue(OpaqueJSContext const*, objc_object*)
3   0x1415df360 WTR::InjectedBundlePage::dump()
4   0x1415e4200 WTR::dumpAfterWaitAttributeIsRemoved(void*)

History: https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fservice-workers%2Fservice-worker%2Fsvg-target-reftest.https.html

Stack trace: https://build.webkit.org/results/Apple-Catalina-Debug-WK2-Tests/r266887%20(6555)/imported/w3c/web-platform-tests/service-workers/service-worker/svg-target-reftest.https-stderr.txt
Comment 1 Darin Adler 2020-09-12 12:32:11 PDT
Can fix by adding:

    if (!testRunning)
        return;

To dumpAfterWaitAttributeIsRemoved.
Comment 2 Darin Adler 2020-09-12 12:48:27 PDT
When I run this in the debugger, instead of a crash I get a hang.
Comment 3 Darin Adler 2020-09-12 12:49:37 PDT
(In reply to Darin Adler from comment #2)
> When I run this in the debugger, instead of a crash I get a hang.

Oh, never mind, that’s because I was trying to run from a local file instead of with the WPT server.
Comment 4 Darin Adler 2020-09-12 12:50:11 PDT
And service workers don’t work from local files.
Comment 5 Darin Adler 2020-09-12 13:58:53 PDT Comment hidden (obsolete)
Comment 6 Darin Adler 2020-09-12 14:57:16 PDT
Created attachment 408612 [details]
Patch
Comment 7 EWS Watchlist 2020-09-12 14:58:03 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 8 EWS 2020-09-12 16:44:31 PDT
Committed r266984: <https://trac.webkit.org/changeset/266984>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 408612 [details].
Comment 9 Radar WebKit Bug Importer 2020-09-12 16:45:29 PDT
<rdar://problem/68780801>