<?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>301674</bug_id>
          
          <creation_ts>2025-10-29 20:56:34 -0700</creation_ts>
          <short_desc>WebCore::MediaSource::~MediaSource; WebCore::MediaSource::~MediaSource; mpark::detail::destructor::~destructor</short_desc>
          <delta_ts>2025-11-14 23:52:09 -0800</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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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 name="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2155166</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-10-29 20:56:34 -0700</bug_when>
    <thetext>```
Reproduction Command:
DYLD_FRAMEWORK_PATH=$PWD DYLD_LIBRARY_PATH=$PWD __XPC_DYLD_FRAMEWORK_PATH=$PWD __XPC_DYLD_LIBRARY_PATH=$PWD ASAN_OPTIONS=handle_segv=2,handle_sigbus=2,handle_sigill=2,handle_abort=2,handle_sigtrap=2,allocator_may_return_null=1 __XPC_ASAN_OPTIONS=handle_segv=2,handle_sigbus=2,handle_sigill=2,handle_abort=2,handle_sigtrap=2,allocator_may_return_null=1 ./WebKitTestRunner --no-enable-all-experimental-feature --no-timeout fuzz-7.html fuzz-7.html

Crash Log:

AddressSanitizer:DEADLYSIGNAL
=================================================================
==55279==ERROR: AddressSanitizer: TRAP on unknown address 0x00012beeb308 (pc 0x00012beeb308 bp 0x00016bbdac30 sp 0x00016bbdac30 T0)
    #0 0x00012beeb308 in WTFCrashWithSecurityImplication+0x10 (JavaScriptCore:arm64e+0x61b7308)
    #1 0x00012beeb944 in WTF::RefCountedBase::printRefDuringDestructionLogAndCrash(void const*)+0x9c (JavaScriptCore:arm64e+0x61b7944)
    #2 0x0003061a74d8 in WebCore::MediaSource::~MediaSource()+0x11bc (WebCore:arm64e+0x61a74d8)
    #3 0x0003061af7ac in WebCore::MediaSource::~MediaSource()+0x1c (WebCore:arm64e+0x61af7ac)
    #4 0x00030039102c in WebCore::HTMLMediaElement::~HTMLMediaElement()+0x3370 (WebCore:arm64e+0x39102c)
    #5 0x00030038dc14 in WebCore::HTMLVideoElement::~HTMLVideoElement()+0x30 (WebCore:arm64e+0x38dc14)
    #6 0x000129fd1dc8 in void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType&lt;JSC::JSDestructibleObjectDestroyFunc&gt;(JSC::FreeList*, JSC::JSDestructibleObjectDestroyFunc const&amp;)::&apos;lambda&apos;()::operator()() const+0x1160 (JavaScriptCore:arm64e+0x429ddc8)
    #7 0x000129fa36a0 in void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType&lt;JSC::JSDestructibleObjectDestroyFunc&gt;(JSC::FreeList*, JSC::JSDestructibleObjectDestroyFunc const&amp;)+0x380 (JavaScriptCore:arm64e+0x426f6a0)
    #8 0x000129fa32ec in JSC::JSDestructibleObjectHeapCellType::finishSweep(JSC::MarkedBlock::Handle&amp;, JSC::FreeList*) const+0x94 (JavaScriptCore:arm64e+0x426f2ec)
    #9 0x000128ebc978 in JSC::MarkedBlock::Handle::sweep(JSC::FreeList*)+0x92c (JavaScriptCore:arm64e+0x3188978)
    #10 0x000128ea6d0c in JSC::LocalAllocator::allocateSlowCase(JSC::Heap&amp;, unsigned long, JSC::GCDeferralContext*, JSC::AllocationFailureMode)+0x210 (JavaScriptCore:arm64e+0x3172d0c)
    #11 0x000302bf5274 in WebCore::JSHTMLVideoElement::create(JSC::Structure*, WebCore::JSDOMGlobalObject*, WTF::Ref&lt;WebCore::HTMLVideoElement, WTF::RawPtrTraits&lt;WebCore::HTMLVideoElement&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::HTMLVideoElement&gt;&gt;&amp;&amp;)+0x1b4 (WebCore:arm64e+0x2bf5274)
    #12 0x000302bf4ee8 in WebCore::JSDOMWrapperConverterTraits&lt;WebCore::HTMLVideoElement&gt;::WrapperClass* WebCore::createWrapper&lt;WebCore::HTMLVideoElement, WebCore::HTMLElement&gt;(WebCore::JSDOMGlobalObject*, WTF::Ref&lt;WebCore::HTMLElement, WTF::RawPtrTraits&lt;WebCore::HTMLElement&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::HTMLElement&gt;&gt;&amp;&amp;)+0x16c (WebCore:arm64e+0x2bf4ee8)
    #13 0x000302a9b930 in WebCore::createJSHTMLWrapper(WebCore::JSDOMGlobalObject*, WTF::Ref&lt;WebCore::HTMLElement, WTF::RawPtrTraits&lt;WebCore::HTMLElement&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::HTMLElement&gt;&gt;&amp;&amp;)+0x5d70 (WebCore:arm64e+0x2a9b930)
    #14 0x00030721dfb0 in WebCore::toJSNewlyCreated(JSC::JSGlobalObject*, WebCore::JSDOMGlobalObject*, WTF::Ref&lt;WebCore::Element, WTF::RawPtrTraits&lt;WebCore::Element&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Element&gt;&gt;&amp;&amp;)+0x178 (WebCore:arm64e+0x721dfb0)
    #15 0x00030232b888 in JSC::JSValue WebCore::toJSNewlyCreated&lt;WebCore::IDLInterface&lt;WebCore::Element&gt;, WebCore::ExceptionOr&lt;WTF::Ref&lt;WebCore::Element, WTF::RawPtrTraits&lt;WebCore::Element&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Element&gt;&gt;&gt;&gt;(JSC::JSGlobalObject&amp;, WebCore::JSDOMGlobalObject&amp;, JSC::ThrowScope&amp;, WebCore::ExceptionOr&lt;WTF::Ref&lt;WebCore::Element, WTF::RawPtrTraits&lt;WebCore::Element&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Element&gt;&gt;&gt;&amp;&amp;)+0x144 (WebCore:arm64e+0x232b888)
    #16 0x00030232ad24 in WebCore::jsDocumentPrototypeFunction_createElementBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSDocument*)+0x708 (WebCore:arm64e+0x232ad24)
    #17 0x00030231fa90 in WebCore::jsDocumentPrototypeFunction_createElement(JSC::JSGlobalObject*, JSC::CallFrame*)+0x1c4 (WebCore:arm64e+0x231fa90)
    #18 0x00012e82c03c  (&lt;unknown module&gt;)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155168</commentid>
    <comment_count>1</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-10-29 20:58:02 -0700</bug_when>
    <thetext>rdar://163479310</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2155174</commentid>
    <comment_count>2</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-10-29 21:18:29 -0700</bug_when>
    <thetext>Pull request: https://github.com/apple/WebKit/pull/3933</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>