Bug 298416

Summary: REGRESSION(299195@main?): ASSERTION FAILED: !m_channel on http/tests/websocket/web-socket-loads-captured-in-per-page-domains.html (flaky)
Product: WebKit Reporter: Marta Darbinyan <darbinyan>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Marta Darbinyan
Reported 2025-09-04 15:13:04 PDT
The following test is flaky crash in Debug macOS. First instance happened in EWS on 299195@main. http/tests/websocket/web-socket-loads-captured-in-per-page-domains.html stderr: 1 0x3040fd8a8 WebCore::WebSocket::contextDestroyed() 2 0x3056513cc WebCore::ScriptExecutionContext::~ScriptExecutionContext() 3 0x305354884 WebCore::Document::~Document() 4 0x3059d378c WebCore::HTMLDocument::~HTMLDocument() 5 0x3059d37b8 WebCore::HTMLDocument::~HTMLDocument() 6 0x3059d3924 WebCore::HTMLDocument::operator delete(WebCore::HTMLDocument*, std::destroying_delete_t, unsigned long) 7 0x3059d388c WebCore::HTMLDocument::~HTMLDocument() 8 0x305356c34 WebCore::Document::removedLastRef() 9 0x3055e127c WebCore::Node::removedLastRef() 10 0x3001ddb70 WebCore::Node::deref() const 11 0x300a1ec7c WebCore::EventTarget::deref() 12 0x300a1ec0c WTF::DefaultRefDerefTraits<WebCore::EventTarget>::derefIfNotNull(WebCore::EventTarget*) 13 0x300a1eba8 WTF::Ref<WebCore::EventTarget, WTF::RawPtrTraits<WebCore::EventTarget>, WTF::DefaultRefDerefTraits<WebCore::EventTarget>>::~Ref() 14 0x300a1e8f4 WTF::Ref<WebCore::EventTarget, WTF::RawPtrTraits<WebCore::EventTarget>, WTF::DefaultRefDerefTraits<WebCore::EventTarget>>::~Ref() 15 0x3014c57ac WebCore::JSDOMWrapper<WebCore::EventTarget, WTF::RawPtrTraits<WebCore::EventTarget>>::~JSDOMWrapper() 16 0x3014c577c WebCore::JSEventTarget::~JSEventTarget() 17 0x30145970c WebCore::JSEventTarget::~JSEventTarget() 18 0x30145657c WebCore::JSEventTarget::destroy(JSC::JSCell*) 19 0x130d248b4 JSC::JSDestructibleObjectDestroyFunc::operator()(JSC::VM&, JSC::JSCell*) const 20 0x130d2487c JSC::JSDestructibleObjectHeapCellType::destroy(JSC::VM&, JSC::JSCell*) const 21 0x1306646e4 JSC::Subspace::destroy(JSC::VM&, JSC::JSCell*) 22 0x13060a408 JSC::PreciseAllocation::sweep() 23 0x13060a26c JSC::MarkedSpace::sweepPreciseAllocations() 24 0x130544fbc JSC::Heap::sweepInFinalize() 25 0x130544c18 JSC::Heap::finalize() 26 0x1305443f4 JSC::Heap::handleNeedFinalize(unsigned int) 27 0x1305433b4 JSC::Heap::handleNeedFinalize() 28 0x13053f0b0 JSC::Heap::finishChangingPhase(JSC::GCConductor) 29 0x130540c68 JSC::Heap::changePhase(JSC::GCConductor, JSC::CollectorPhase) 30 0x130540bec JSC::Heap::runEndPhase(JSC::GCConductor) 31 0x13053ea18 JSC::Heap::runCurrentPhase(JSC::GCConductor, JSC::CurrentThreadState*) com.apple.WebKit.WebContent.Development terminated (pid 6878) for reason: crash LEAK: 1 WebPageProxy Test results: https://ews-build.webkit.org/#/builders/122/builds/35096 Test history: https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Fwebsocket%2Fweb-socket-loads-captured-in-per-page-domains.html&style=debug&flavor=wk2&platform=mac
Attachments
Radar WebKit Bug Importer
Comment 1 2025-09-04 15:16:42 PDT
EWS
Comment 2 2025-09-04 15:40:31 PDT
Test gardening commit 299582@main (a561b790b09f): <https://commits.webkit.org/299582@main> Reviewed commits have been landed. Closing PR #50324 and removing active labels.
Alexey Proskuryakov
Comment 3 2025-09-05 11:05:58 PDT
ASSERTION FAILED: !m_channel /Volumes/Data/worker/Apple-Sonoma-Debug-Build/build/Source/WebCore/Modules/websockets/WebSocket.cpp(499) : virtual void WebCore::WebSocket::contextDestroyed() 1 0x36dd274e0 WebCore::WebSocket::contextDestroyed() 2 0x36f2d6100 WebCore::ScriptExecutionContext::~ScriptExecutionContext() 3 0x36efc1688 WebCore::Document::~Document() 4 0x36f66bbc0 WebCore::HTMLDocument::~HTMLDocument() 5 0x36f66bbec WebCore::HTMLDocument::~HTMLDocument() 6 0x36f66bd5c WebCore::HTMLDocument::operator delete(WebCore::HTMLDocument*, std::destroying_delete_t, unsigned long) 7 0x36f66bcc0 WebCore::HTMLDocument::~HTMLDocument() 8 0x36efc3ab4 WebCore::Document::removedLastRef() 9 0x36f2631b4 WebCore::Node::removedLastRef() 10 0x369d1adf8 WebCore::Node::deref() const 11 0x36a591c2c WebCore::EventTarget::deref()
EWS
Comment 4 2025-09-15 17:07:26 PDT
Test gardening commit 299990@main (7b44f3c066f2): <https://commits.webkit.org/299990@main> Reviewed commits have been landed. Closing PR #50777 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.