Bug 242229 - [mac] ASSERTION FAILED: globalScope.registration().active()->state() == ServiceWorkerState::Activated: imported/w3c/web-platform-tests/service-workers/service-worker/claim-with-redirect.https.html is randomly crashing
Summary: [mac] ASSERTION FAILED: globalScope.registration().active()->state() == Servi...
Status: RESOLVED DUPLICATE of bug 241627
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-30 23:28 PDT by Fujii Hironori
Modified: 2022-07-05 06:04 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2022-06-30 23:28:42 PDT
[mac] ASSERTION FAILED: globalScope.registration().active()->state() == ServiceWorkerState::Activated: imported/w3c/web-platform-tests/service-workers/service-worker/claim-with-redirect.https.html is randomly crashing

https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fservice-workers%2Fservice-worker%2Fclaim-with-redirect.https.html

251241@main
Buildbot: builder Apple-BigSur-Debug-AppleSilicon-WK2-Tests build 6409
https://build.webkit.org/#/builders/103/builds/6409


ASSERTION FAILED: globalScope.registration().active()->state() == ServiceWorkerState::Activated
./workers/service/context/ServiceWorkerFetch.cpp(167) : void WebCore::ServiceWorkerFetch::dispatchFetchEvent(Ref<WebCore::ServiceWorkerFetch::Client> &&, WebCore::ServiceWorkerGlobalScope &, WebCore::ResourceRequest &&, WTF::String &&, WebCore::FetchOptions &&, WebCore::FetchIdentifier, bool, WTF::String &&, WTF::String &&)
1   0x13dd70734 WTFCrash
2   0x117f17850 WebCore::JSHTMLHeadElement::createPrototype(JSC::VM&, WebCore::JSDOMGlobalObject&)
3   0x11cd1f1c0 WebCore::ServiceWorkerFetch::dispatchFetchEvent(WTF::Ref<WebCore::ServiceWorkerFetch::Client, WTF::RawPtrTraits<WebCore::ServiceWorkerFetch::Client> >&&, WebCore::ServiceWorkerGlobalScope&, WebCore::ResourceRequest&&, WTF::String&&, WebCore::FetchOptions&&, WTF::ObjectIdentifier<WebCore::FetchIdentifierType>, bool, WTF::String&&, WTF::String&&)
4   0x11cda1c2c WebCore::ServiceWorkerThread::queueTaskToFireFetchEvent(WTF::Ref<WebCore::ServiceWorkerFetch::Client, WTF::RawPtrTraits<WebCore::ServiceWorkerFetch::Client> >&&, WebCore::ResourceRequest&&, WTF::String&&, WebCore::FetchOptions&&, WTF::ObjectIdentifier<WebCore::FetchIdentifierType>, bool, WTF::String&&, WTF::String&&)::$_34::operator()()
5   0x11cda19e8 WTF::Detail::CallableWrapper<WebCore::ServiceWorkerThread::queueTaskToFireFetchEvent(WTF::Ref<WebCore::ServiceWorkerFetch::Client, WTF::RawPtrTraits<WebCore::ServiceWorkerFetch::Client> >&&, WebCore::ResourceRequest&&, WTF::String&&, WebCore::FetchOptions&&, WTF::ObjectIdentifier<WebCore::FetchIdentifierType>, bool, WTF::String&&, WTF::String&&)::$_34, void>::call()
6   0x119eb9d0c WTF::Function<void ()>::operator()() const
7   0x11a843ae4 WebCore::EventLoopFunctionDispatchTask::execute()
8   0x11a836c70 WebCore::EventLoop::run()
9   0x11cc1c700 WebCore::WorkerEventLoop::scheduleToRun()::$_3::operator()(WebCore::ScriptExecutionContext&) const
10  0x11cc1c4f0 WTF::Detail::CallableWrapper<WebCore::WorkerEventLoop::scheduleToRun()::$_3, void, WebCore::ScriptExecutionContext&>::call(WebCore::ScriptExecutionContext&)
11  0x119b0ab84 WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const
12  0x119af9ad8 WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&)
13  0x11cc68590 WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*)
14  0x11cc67a1c WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&)
15  0x11cc67644 WebCore::WorkerDedicatedRunLoop::run(WebCore::WorkerOrWorkletGlobalScope*)
16  0x11cc2cfcc WebCore::WorkerOrWorkletThread::runEventLoop()
17  0x11cd20e40 WebCore::ServiceWorkerThread::runEventLoop()
18  0x11cc2d344 WebCore::WorkerOrWorkletThread::workerOrWorkletThread()
19  0x11cc8c4f8 WebCore::WorkerThread::createThread()::$_4::operator()() const
20  0x11cc8c474 WTF::Detail::CallableWrapper<WebCore::WorkerThread::createThread()::$_4, void>::call()
21  0x13dd9b898 WTF::Function<void ()>::operator()() const
22  0x13de7efc8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)
23  0x13de8d888 WTF::wtfThreadEntryPoint(void*)
24  0x191eab878 _pthread_start
25  0x191ea65e0 thread_start
ServiceWorkerProcess terminated (pid 17876) for reason: crash
LEAK: 1 WebPageProxy
Comment 2 Fujii Hironori 2022-06-30 23:35:46 PDT
This assertion was added by 197576@main (bug#181698).
Comment 3 youenn fablet 2022-07-05 06:04:11 PDT

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