<?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>250365</bug_id>
          
          <creation_ts>2023-01-10 00:15:31 -0800</creation_ts>
          <short_desc>Nullptr crash in effectiveAssignedNodes</short_desc>
          <delta_ts>2023-01-10 01:44:12 -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>DOM</component>
          <version>WebKit Local 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>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1924308</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-01-10 00:15:31 -0800</bug_when>
    <thetext>e.g.

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   WebCore                       	       0x8094adc90 WebCore::Node::parentNode() const + 112 (Node.h:858)
1   WebCore                       	       0x80cb94548 std::__1::optional&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt; &gt; WebCore::effectiveAssignedNodes(WebCore::ShadowRoot&amp;, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)::$_7::operator()&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt; const&gt;(WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt; const&amp;) const + 56 (SlotAssignment.cpp:437)
2   WebCore                       	       0x80cb94447 WTF::CompactMapper&lt;WebCore::effectiveAssignedNodes(WebCore::ShadowRoot&amp;, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)::$_7, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, void&gt;::compactMap(WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::effectiveAssignedNodes(WebCore::ShadowRoot&amp;, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)::$_7 const&amp;) + 119 (Vector.h:1848)
3   WebCore                       	       0x80cb943c5 WTF::Vector&lt;WTF::CompactMapper&lt;WebCore::effectiveAssignedNodes(WebCore::ShadowRoot&amp;, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)::$_7, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, void&gt;::DestinationItemType, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; WTF::compactMap&lt;WebCore::effectiveAssignedNodes(WebCore::ShadowRoot&amp;, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)::$_7, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;&gt;(WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WebCore::effectiveAssignedNodes(WebCore::ShadowRoot&amp;, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;)::$_7&amp;&amp;) + 69 (Vector.h:1879)
4   WebCore                       	       0x80cb8f073 WebCore::effectiveAssignedNodes(WebCore::ShadowRoot&amp;, WTF::Vector&lt;WTF::WeakPtr&lt;WebCore::Node, WebCore::WeakPtrImplWithEventTargetData&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;) + 51 (SlotAssignment.cpp:436)
5   WebCore                       	       0x80cb8ede8 WebCore::ManualSlotAssignment::assignedNodesForSlot(WebCore::HTMLSlotElement const&amp;, WebCore::ShadowRoot&amp;) + 200 (SlotAssignment.cpp:449)
6   WebCore                       	       0x80cb8f210 WebCore::ManualSlotAssignment::addSlotElementByName(WTF::AtomString const&amp;, WebCore::HTMLSlotElement&amp;, WebCore::ShadowRoot&amp;) + 128 (SlotAssignment.cpp:470)
7   WebCore                       	       0x80cb75121 WebCore::ShadowRoot::addSlotElementByName(WTF::AtomString const&amp;, WebCore::HTMLSlotElement&amp;) + 289 (ShadowRoot.cpp:276)
8   WebCore                       	       0x80ceebb9d WebCore::HTMLSlotElement::insertedIntoAncestor(WebCore::Node::InsertionType, WebCore::ContainerNode&amp;) + 285 (HTMLSlotElement.cpp:67)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924309</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-01-10 00:19:01 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8437</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924310</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-01-10 00:23:10 -0800</bug_when>
    <thetext>&lt;rdar://104063331&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924329</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-10 01:44:10 -0800</bug_when>
    <thetext>Committed 258708@main (bb2cc188a3a9): &lt;https://commits.webkit.org/258708@main&gt;

Reviewed commits have been landed. Closing PR #8437 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>