<?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>256290</bug_id>
          
          <creation_ts>2023-05-03 18:49:18 -0700</creation_ts>
          <short_desc>Regression(262252@main) Flaky crash under ~CanMakeCheckedPtrBase() for ScriptExecutionContext</short_desc>
          <delta_ts>2023-05-03 23:32:05 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=254347</see_also>
          <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="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>chirag_m_shah</cc>
    
    <cc>fujii</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1952808</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-05-03 18:49:18 -0700</bug_when>
    <thetext>Flaky crash under ~CanMakeCheckedPtrBase() for ScriptExecutionContext:
ASSERTION FAILED: !m_count
/Volumes/Data/worker/macOS-AppleSilicon-Ventura-Debug-Build-EWS/build/WebKitBuild/Debug/usr/local/include/wtf/CheckedRef.h(242) : WTF::CanMakeCheckedPtrBase&lt;WTF::SingleThreadIntegralWrapper&lt;unsigned int&gt;, unsigned int&gt;::~CanMakeCheckedPtrBase() [StorageType = WTF::SingleThreadIntegralWrapper&lt;unsigned int&gt;, PtrCounterType = unsigned int]
1   0x1352bfb44 WTFCrash
2   0x2806fdf20 JSC::VMTraps::maybeNeedHandling() const
3   0x2836e05b0 WTF::CanMakeCheckedPtrBase&lt;WTF::SingleThreadIntegralWrapper&lt;unsigned int&gt;, unsigned int&gt;::~CanMakeCheckedPtrBase()
4   0x2837b320c WebCore::ScriptExecutionContext::~ScriptExecutionContext()
5   0x2835a7228 WebCore::Document::~Document()
6   0x283a8ca08 WebCore::HTMLDocument::~HTMLDocument()
7   0x283a8ca34 WebCore::HTMLDocument::~HTMLDocument()
8   0x283a8cb08 WebCore::HTMLDocument::~HTMLDocument()
9   0x2835a9718 WebCore::Document::decrementReferencingNodeCount()
10  0x283762ea0 WebCore::Node::~Node()
11  0x28354dabc WebCore::ContainerNode::~ContainerNode()
12  0x283683f88 WebCore::Element::~Element()
13  0x283811a8c WebCore::StyledElement::~StyledElement()
14  0x2805fad08 WebCore::HTMLElement::~HTMLElement()
15  0x283b87aec WebCore::HTMLSpanElement::~HTMLSpanElement()
16  0x283b7b764 WebCore::HTMLSpanElement::~HTMLSpanElement()
17  0x283b7b790 WebCore::HTMLSpanElement::~HTMLSpanElement()
18  0x28376e444 WebCore::Node::removedLastRef()
19  0x2807623f0 WebCore::Node::deref() const
20  0x2810902e0 WebCore::EventTarget::deref()
21  0x280796904 WTF::Ref&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;&gt;::~Ref()
22  0x28062717c WTF::Ref&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;&gt;::~Ref()
23  0x280c17580 WebCore::JSDOMWrapper&lt;WebCore::EventTarget, WTF::RawPtrTraits&lt;WebCore::EventTarget&gt;&gt;::~JSDOMWrapper()
24  0x280c17550 WebCore::JSEventTarget::~JSEventTarget()
25  0x280ba17d0 WebCore::JSEventTarget::~JSEventTarget()
26  0x280b74114 WebCore::JSEventTarget::destroy(JSC::JSCell*)
27  0x136e660c8 JSC::JSDestructibleObjectDestroyFunc::operator()(JSC::VM&amp;, JSC::JSCell*) const
28  0x136e775b8 void JSC::MarkedBlock::Handle::specializedSweep&lt;false, (JSC::MarkedBlock::Handle::EmptyMode)0, (JSC::MarkedBlock::Handle::SweepMode)0, (JSC::MarkedBlock::Handle::SweepDestructionMode)0, (JSC::MarkedBlock::Handle::ScribbleMode)0, (JSC::MarkedBlock::Handle::NewlyAllocatedMode)0, (JSC::MarkedBlock::Handle::MarksMode)0, JSC::JSDestructibleObjectDestroyFunc&gt;(JSC::FreeList*, JSC::MarkedBlock::Handle::EmptyMode, JSC::MarkedBlock::Handle::SweepMode, JSC::MarkedBlock::Handle::SweepDestructionMode, JSC::MarkedBlock::Handle::ScribbleMode, JSC::MarkedBlock::Handle::NewlyAllocatedMode, JSC::MarkedBlock::Handle::MarksMode, JSC::JSDestructibleObjectDestroyFunc const&amp;)::&apos;lambda&apos;(void*)::operator()(void*) const
29  0x136e77638 void JSC::MarkedBlock::Handle::specializedSweep&lt;false, (JSC::MarkedBlock::Handle::EmptyMode)0, (JSC::MarkedBlock::Handle::SweepMode)0, (JSC::MarkedBlock::Handle::SweepDestructionMode)0, (JSC::MarkedBlock::Handle::ScribbleMode)0, (JSC::MarkedBlock::Handle::NewlyAllocatedMode)0, (JSC::MarkedBlock::Handle::MarksMode)0, JSC::JSDestructibleObjectDestroyFunc&gt;(JSC::FreeList*, JSC::MarkedBlock::Handle::EmptyMode, JSC::MarkedBlock::Handle::SweepMode, JSC::MarkedBlock::Handle::SweepDestructionMode, JSC::MarkedBlock::Handle::ScribbleMode, JSC::MarkedBlock::Handle::NewlyAllocatedMode, JSC::MarkedBlock::Handle::MarksMode, JSC::JSDestructibleObjectDestroyFunc const&amp;)::&apos;lambda&apos;(unsigned long)::operator()(unsigned long) const
30  0x136e70824 void JSC::MarkedBlock::Handle::specializedSweep&lt;false, (JSC::MarkedBlock::Handle::EmptyMode)0, (JSC::MarkedBlock::Handle::SweepMode)0, (JSC::MarkedBlock::Handle::SweepDestructionMode)0, (JSC::MarkedBlock::Handle::ScribbleMode)0, (JSC::MarkedBlock::Handle::NewlyAllocatedMode)0, (JSC::MarkedBlock::Handle::MarksMode)0, JSC::JSDestructibleObjectDestroyFunc&gt;(JSC::FreeList*, JSC::MarkedBlock::Handle::EmptyMode, JSC::MarkedBlock::Handle::SweepMode, JSC::MarkedBlock::Handle::SweepDestructionMode, JSC::MarkedBlock::Handle::ScribbleMode, JSC::MarkedBlock::Handle::NewlyAllocatedMode, JSC::MarkedBlock::Handle::MarksMode, JSC::JSDestructibleObjectDestroyFunc const&amp;)
31  0x136e66058 void JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType&lt;JSC::JSDestructibleObjectDestroyFunc&gt;(JSC::FreeList*, JSC::JSDestructibleObjectDestroyFunc const&amp;)
com.apple.WebKit.WebContent.Development terminated (pid 5793) for reason: crash
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952809</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2023-05-03 18:56:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/13431</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952826</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-03 22:20:55 -0700</bug_when>
    <thetext>Committed 263662@main (1116cdd2710a): &lt;https://commits.webkit.org/263662@main&gt;

Reviewed commits have been landed. Closing PR #13431 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952827</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-03 22:21:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/108876874&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1952838</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-05-03 23:32:05 -0700</bug_when>
    <thetext>*** Bug 255381 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>