Bug 230109 - [ BigSur arm64 EWS ] ASSERTION FAILED: m_globalScope->hasOneRef() ./workers/WorkerOrWorkletThread.cpp(155) : void WebCore::WorkerOrWorkletThread::workerOrWorkletThread()
Summary: [ BigSur arm64 EWS ] ASSERTION FAILED: m_globalScope->hasOneRef() ./workers/W...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac (Apple Silicon) Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-09 10:33 PDT by ayumi_kojima
Modified: 2021-09-10 16:17 PDT (History)
4 users (show)

See Also:


Attachments
Crash log (91.03 KB, text/plain)
2021-09-09 10:34 PDT, ayumi_kojima
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ayumi_kojima 2021-09-09 10:33:51 PDT
imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any.html

Is a flaky crash on macOS-AppleSilicon-Big-Sur-Debug-WK2-Tests-EWS

In the open source directory, I don't see any crash but it failed a couple of times in the history: https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fworkers%2Fmodules%2Fdedicated-worker-import-blob-url.any.html

Builds that the test failed:

https://build.webkit.org/#/builders/70/builds/4727
https://build.webkit.org/#/builders/13/builds/4168
https://build.webkit.org/#/builders/45/builds/1320

The test started being flaky on EWS at https://ews-build.webkit.org/#/builders/60/builds/11578

Stderr:

ASSERTION FAILED: m_globalScope->hasOneRef()
./workers/WorkerOrWorkletThread.cpp(155) : void WebCore::WorkerOrWorkletThread::workerOrWorkletThread()
1   0x139dc759c WTFCrash
2   0x11986d8d0 WTFCrashWithInfo(int, char const*, char const*, int)
3   0x11d9b6818 WebCore::WorkerOrWorkletThread::workerOrWorkletThread()
4   0x11da08c0c WebCore::WorkerThread::createThread()::$_1::operator()() const
5   0x11da08b88 WTF::Detail::CallableWrapper<WebCore::WorkerThread::createThread()::$_1, void>::call()
6   0x139df0ee0 WTF::Function<void ()>::operator()() const
7   0x139ec05d4 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)
8   0x139ecebf4 WTF::wtfThreadEntryPoint(void*)
9   0x180d8b878 _pthread_start
10  0x180d865e0 thread_start
com.apple.WebKit.WebContent.Development terminated (pid 77307) because the process crashed
LEAK: 1 WebPageProxy
Comment 1 ayumi_kojima 2021-09-09 10:34:31 PDT
Created attachment 437758 [details]
Crash log
Comment 2 Radar WebKit Bug Importer 2021-09-09 10:35:10 PDT
<rdar://problem/82932581>
Comment 3 ayumi_kojima 2021-09-09 10:41:25 PDT
Marked test expectations for the flaky crash to speed up EWS: https://trac.webkit.org/changeset/282224/webkit

Because failure only happened 3 times and they are all on different platforms, I will not set expectations for them for now.
Comment 4 ayumi_kojima 2021-09-10 16:14:17 PDT
rwt --root debugToTest --iterations 1000 --clobber-old-results --exit-after-n-crashes-or-timeouts 1 --force --debug imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any.html --no-timeout
(In reply to ayumi_kojima from comment #3)
> Marked test expectations for the flaky crash to speed up EWS:
> https://trac.webkit.org/changeset/282224/webkit
> 
> Because failure only happened 3 times and they are all on different
> platforms, I will not set expectations for them for now.

I did mark test expectations for this test.
Comment 5 ayumi_kojima 2021-09-10 16:16:11 PDT
I was not able to reproduce the crash using --iterations 1000 --clobber-old-results --exit-after-n-crashes-or-timeouts 1 --force --debug imported/w3c/web-platform-tests/workers/modules/dedicated-worker-import-blob-url.any.html 

The test timed out instead. It hanged with --no-timeout flag.