Bug 216440 - REGRESSION (r266817): ASSERTION FAILED: injectedBundle.isTestRunning() on imported/w3c/web-platform-tests/service-workers/service-worker/svg-target-reftest.https.html
Summary: REGRESSION (r266817): ASSERTION FAILED: injectedBundle.isTestRunning() on imp...
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: Darin Adler
URL:
Keywords: InRadar
Depends on:
Blocks: 216428
  Show dependency treegraph
 
Reported: 2020-09-12 10:47 PDT by Alexey Proskuryakov
Modified: 2020-09-12 16:45 PDT (History)
7 users (show)

See Also:


Attachments
Patch (9.19 KB, patch)
2020-09-12 13:58 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
Patch (11.82 KB, patch)
2020-09-12 14:57 PDT, Darin Adler
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>