Bug 232946 - REGRESSION (r285503): ASSERTION FAILED: m_wasConstructedOnMainThread == isMainThread() under WebCore::BroadcastChannel
Summary: REGRESSION (r285503): ASSERTION FAILED: m_wasConstructedOnMainThread == isMai...
Status: RESOLVED DUPLICATE of bug 232920
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: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-10 09:19 PST by Ryan Haddad
Modified: 2021-11-10 09:22 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2021-11-10 09:19:28 PST
imported/w3c/web-platform-tests/webmessaging/broadcastchannel/workers.html is intermittently failing with the assertion below on iOS and macOS debug bots:

ASSERTION FAILED: m_wasConstructedOnMainThread == isMainThread()
/Volumes/Data/worker/monterey-debug/build/WebKitBuild/Debug/usr/local/include/wtf/CallbackAggregator.h(41) : WTF::CallbackAggregator::~CallbackAggregator()
1   0x139f32890 WTFCrash
2   0x105838170 WTF::NeverDestroyed<WTF::String, WTF::AnyThreadsAccessTraits>::operator WTF::String const&() const
3   0x108075070 WTF::CallbackAggregator::~CallbackAggregator()
4   0x108074fdc WTF::CallbackAggregator::~CallbackAggregator()
5   0x108074fac WTF::ThreadSafeRefCounted<WTF::CallbackAggregator, (WTF::DestructionThread)0>::deref() const::'lambda'()::operator()() const
6   0x108074f20 WTF::ThreadSafeRefCounted<WTF::CallbackAggregator, (WTF::DestructionThread)0>::deref() const
7   0x108074eb0 WTF::Ref<WTF::CallbackAggregator, WTF::RawPtrTraits<WTF::CallbackAggregator> >::~Ref()
8   0x10806db94 WTF::Ref<WTF::CallbackAggregator, WTF::RawPtrTraits<WTF::CallbackAggregator> >::~Ref()
9   0x108072adc WebCore::BroadcastChannel::dispatchMessageTo(WTF::ObjectIdentifier<WebCore::BroadcastChannelIdentifierType>, WTF::Ref<WebCore::SerializedScriptValue, WTF::RawPtrTraits<WebCore::SerializedScriptValue> >&&, WTF::CompletionHandler<void ()>&&)::$_4::~$_4()
10  0x10806db68 WebCore::BroadcastChannel::dispatchMessageTo(WTF::ObjectIdentifier<WebCore::BroadcastChannelIdentifierType>, WTF::Ref<WebCore::SerializedScriptValue, WTF::RawPtrTraits<WebCore::SerializedScriptValue> >&&, WTF::CompletionHandler<void ()>&&)::$_4::~$_4()
11  0x10807e614 WTF::Detail::CallableWrapper<WebCore::BroadcastChannel::dispatchMessageTo(WTF::ObjectIdentifier<WebCore::BroadcastChannelIdentifierType>, WTF::Ref<WebCore::SerializedScriptValue, WTF::RawPtrTraits<WebCore::SerializedScriptValue> >&&, WTF::CompletionHandler<void ()>&&)::$_4, void, WebCore::ScriptExecutionContext&>::~CallableWrapper()
12  0x10807e508 WTF::Detail::CallableWrapper<WebCore::BroadcastChannel::dispatchMessageTo(WTF::ObjectIdentifier<WebCore::BroadcastChannelIdentifierType>, WTF::Ref<WebCore::SerializedScriptValue, WTF::RawPtrTraits<WebCore::SerializedScriptValue> >&&, WTF::CompletionHandler<void ()>&&)::$_4, void, WebCore::ScriptExecutionContext&>::~CallableWrapper()
ASSERTION FAILED: m_wasConstructedOnMainThread == isMainThread()
/Volumes/Data/worker/monterey-debug/build/WebKitBuild/Debug/usr/local/include/wtf/CallbackAggregator.h(41) : WTF::CallbackAggregator::~CallbackAggregator()
13  0x10807e534 WTF::Detail::CallableWrapper<WebCore::BroadcastChannel::dispatchMessageTo(WTF::ObjectIdentifier<WebCore::BroadcastChannelIdentifierType>, WTF::Ref<WebCore::SerializedScriptValue, WTF::RawPtrTraits<WebCore::SerializedScriptValue> >&&, WTF::CompletionHandler<void ()>&&)::$_4, void, WebCore::ScriptExecutionContext&>::~CallableWrapper()

https://results.webkit.org/?suite=layout-tests&test=imported/w3c/web-platform-tests/webmessaging/broadcastchannel/workers.html
Comment 1 Radar WebKit Bug Importer 2021-11-10 09:19:44 PST
<rdar://problem/85256988>
Comment 2 Ryan Haddad 2021-11-10 09:20:29 PST
This appears to have started after r285503
Comment 3 Alex Christensen 2021-11-10 09:22:24 PST

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