<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>228167</bug_id>
          
          <creation_ts>2021-07-21 15:38:39 -0700</creation_ts>
          <short_desc>[iOS Debug] media/media-fragments/TC0003.html is flaky crashing</short_desc>
          <delta_ts>2021-07-21 18:15:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>228038</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ayumi_kojima</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1778576</commentid>
    <comment_count>0</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-07-21 15:38:39 -0700</bug_when>
    <thetext>media/media-fragments/TC0003.html

Is flaky crashing on iOS 14 E Simulator wk2 Debug.

History: https://results.webkit.org/?suite=layout-tests&amp;test=media%2Fmedia-usage-state-private-browsing.html

The crash started showing in the history on around 5/13/2021. Test results are not available before 5/13/2021.

I was not able to reproduce the crash on a simulator (iOS 15) on my local machine using run-webkit-tests --iphone-simulator --iterations 50 --debug -f --exit-after-n-failures 2 --exit-after-n-crashes-or-timeouts 2 media/media-fragments/TC0003.html

It timed out instead.

Crash log:

ASSERTION FAILED: !m_messageReceiverMapCount
/Volumes/Data/worker/ios-simulator-14-debug/build/Source/WebKit/Platform/IPC/MessageReceiver.h(41) : virtual IPC::MessageReceiver::~MessageReceiver()
1   0x4dd437a19 WTFCrash
2   0x4c00b0e3b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x4c00f5e48 IPC::MessageReceiver::~MessageReceiver()
4   0x4c1db6d3e WebKit::RemoteAudioHardwareListener::~RemoteAudioHardwareListener()
5   0x4c1db6e85 WebKit::RemoteAudioHardwareListener::~RemoteAudioHardwareListener()
6   0x4c1db6eec WebKit::RemoteAudioHardwareListener::~RemoteAudioHardwareListener()
7   0x4e62c5c1f std::__1::default_delete&lt;WebCore::AudioHardwareListener&gt;::operator()(WebCore::AudioHardwareListener*) const
8   0x4e62c5be2 WTF::RefCounted&lt;WebCore::AudioHardwareListener, std::__1::default_delete&lt;WebCore::AudioHardwareListener&gt; &gt;::deref() const
9   0x4e62c5b67 WTF::DefaultRefDerefTraits&lt;WebCore::AudioHardwareListener&gt;::derefIfNotNull(WebCore::AudioHardwareListener*)
10  0x4e792d304 WTF::RefPtr&lt;WebCore::AudioHardwareListener, WTF::RawPtrTraits&lt;WebCore::AudioHardwareListener&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::AudioHardwareListener&gt; &gt;::operator=(std::nullptr_t)
11  0x4e792d2be WebCore::MediaSessionManagerCocoa::removeSession(WebCore::PlatformMediaSession&amp;)
12  0x4ea07d8cf WebCore::PlatformMediaSession::stopSession()
13  0x4e93dbb1c WebCore::HTMLMediaElement::stop()
14  0x4e9025bcd auto WebCore::ScriptExecutionContext::stopActiveDOMObjects()::$_3::operator()&lt;WebCore::ActiveDOMObject&gt;(WebCore::ActiveDOMObject&amp;) const
15  0x4e9025b63 WTF::Detail::CallableWrapper&lt;WebCore::ScriptExecutionContext::stopActiveDOMObjects()::$_3, WebCore::ScriptExecutionContext::ShouldContinue, WebCore::ActiveDOMObject&amp;&gt;::call(WebCore::ActiveDOMObject&amp;)
16  0x4e900e41a WTF::Function&lt;WebCore::ScriptExecutionContext::ShouldContinue (WebCore::ActiveDOMObject&amp;)&gt;::operator()(WebCore::ActiveDOMObject&amp;) const
17  0x4e900e270 WebCore::ScriptExecutionContext::forEachActiveDOMObject(WTF::Function&lt;WebCore::ScriptExecutionContext::ShouldContinue (WebCore::ActiveDOMObject&amp;)&gt; const&amp;) const
18  0x4e900e787 WebCore::ScriptExecutionContext::stopActiveDOMObjects()
19  0x4e8dcd7ef WebCore::Document::stopActiveDOMObjects()
20  0x4e8dcd58c WebCore::Document::commonTeardown()
21  0x4e8ddaa64 WebCore::Document::willBeRemovedFromFrame()
22  0x4e9d7bd73 WebCore::Frame::setView(WTF::RefPtr&lt;WebCore::FrameView, WTF::RawPtrTraits&lt;WebCore::FrameView&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::FrameView&gt; &gt;&amp;&amp;)
23  0x4e9d812dd WebCore::Frame::createView(WebCore::IntSize const&amp;, std::__1::optional&lt;WebCore::Color&gt; const&amp;, WebCore::IntSize const&amp;, WebCore::IntRect const&amp;, bool, WebCore::ScrollbarMode, bool, WebCore::ScrollbarMode, bool)
24  0x4c2028197 WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage()
25  0x4e9b3c084 WebCore::FrameLoader::transitionToCommitted(WebCore::CachedPage*)
26  0x4e9b3ac97 WebCore::FrameLoader::commitProvisionalLoad()
27  0x4e9ab40cc WebCore::DocumentLoader::commitIfReady()
28  0x4e9ab4931 WebCore::DocumentLoader::finishedLoading()
29  0x4e9ac1411 WebCore::DocumentLoader::maybeLoadEmpty()
30  0x4e9ac1595 WebCore::DocumentLoader::startLoadingMainResource()
31  0x4e9b6567d WebCore::FrameLoader::continueLoadAfterNavigationPolicy(WebCore::ResourceRequest const&amp;, WebCore::FormState*, WebCore::NavigationPolicyDecision, WebCore::AllowNavigationToInvalidURL)::$_11::operator()()
com.apple.WebKit.WebContent.Development terminated (pid 67975) because the process crashed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778578</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-21 15:39:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/80922039&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778581</commentid>
    <comment_count>2</comment_count>
    <who name="">ayumi_kojima</who>
    <bug_when>2021-07-21 15:44:39 -0700</bug_when>
    <thetext>Updated test expectations https://trac.webkit.org/changeset/280164/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778625</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-07-21 18:15:26 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 228038 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>