imported/w3c/web-platform-tests/mediacapture-streams/GUM-optional-constraint.https.html is flakey crashing in macOS BigSur Debug wk2 on Apple Silicon only. HISTORY URL: https://results.webkit.org/?suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fmediacapture-streams%2FGUM-optional-constraint.https.html STDERR TEXT: No crash log found for GPUProcess:48709. stdout: stderr: ASSERTION FAILED: !m_deletionHasBegun /Volumes/Data/worker/bigsur-debug/build/WebKitBuild/Debug/usr/local/include/wtf/ThreadSafeRefCounted.h(58) : void WTF::ThreadSafeRefCountedBase::ref() const 1 0x1334cddd0 WTFCrash 2 0x1334cddec WTFIsDebuggerAttached 3 0x11250ca40 WTF::ThreadSafeRefCountedBase::ref() const 4 0x1113ee748 WTF::Ref<WebCore::RealtimeMediaSource, WTF::RawPtrTraits<WebCore::RealtimeMediaSource> >::Ref(WebCore::RealtimeMediaSource&) 5 0x1113ee704 WTF::Ref<WebCore::RealtimeMediaSource, WTF::RawPtrTraits<WebCore::RealtimeMediaSource> >::Ref(WebCore::RealtimeMediaSource&) 6 0x1158a0130 WTF::Ref<WebCore::RealtimeMediaSource, WTF::RawPtrTraits<WebCore::RealtimeMediaSource> > WTF::makeRef<WebCore::RealtimeMediaSource>(WebCore::RealtimeMediaSource&) 7 0x1158a00ec WebCore::RealtimeMediaSource::forEachObserver(WTF::Function<void (WebCore::RealtimeMediaSource::Observer&)> const&) 8 0x1158bb204 WebCore::RealtimeMediaSource::updateHasStartedProducingData()::$_7::operator()() const 9 0x1158bb048 WTF::Detail::CallableWrapper<WebCore::RealtimeMediaSource::updateHasStartedProducingData()::$_7, void>::call() 10 0x1334f63d8 WTF::Function<void ()>::operator()() const 11 0x1335720d4 WTF::RunLoop::performWork() 12 0x133576ce8 WTF::RunLoop::performWork(void*) 13 0x1a5804c14 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 14 0x1a5804b60 __CFRunLoopDoSource0 15 0x1a580484c __CFRunLoopDoSources0 16 0x1a58031e4 __CFRunLoopRun 17 0x1a5802740 CFRunLoopRunSpecific 18 0x1a658ba88 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] 19 0x1a661f644 -[NSRunLoop(NSRunLoop) run] 20 0x1a547f9e0 _xpc_objc_main 21 0x1a547f3a0 _xpc_copy_xpcservice_dictionary 22 0x10136c4f4 WebKit::XPCServiceMain(int, char const**) 23 0x102b010a4 WKXPCServiceMain 24 0x1003c7e8c main 25 0x1a5725f34 start LEAK: 1 WebPageProxy
<rdar://problem/75583258>
Updated test expectations to Pass Crash here: https://trac.webkit.org/changeset/274658/webkit
This test is very flakey, it appears to only have crashed twice. Also, the crashes are only occurring on Apple Silicon Macs in debug wk2. As such, I cannot reproduce the crash because I do not have access to an apple silicon Mac.