<?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>271905</bug_id>
          
          <creation_ts>2024-03-29 12:49:22 -0700</creation_ts>
          <short_desc>ASAN_TRAP | WebCore::RenderObject::destroy; WebCore::Document::destroyRenderTree; WebCore::Document::willBeRemovedFromFrame</short_desc>
          <delta_ts>2024-05-20 07:35:34 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>268770</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=268770</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="John Wilander">wilander</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abifox</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cgarcia</cc>
    
    <cc>csaavedra</cc>
    
    <cc>fred.wang</cc>
    
    <cc>gpoo</cc>
    
    <cc>koivisto</cc>
    
    <cc>mikhail</cc>
    
    <cc>msaboff</cc>
    
    <cc>pgriffis</cc>
    
    <cc>rbuis</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>xan.lopez</cc>
    
    <cc>zalan</cc>
    
    <cc>zdobersek</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2024795</commentid>
    <comment_count>0</comment_count>
      <attachid>470670</attachid>
    <who name="John Wilander">wilander</who>
    <bug_when>2024-03-29 12:49:22 -0700</bug_when>
    <thetext>Created attachment 470670
Repro case

&lt;rdar://125580138&gt;

See attached repro case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2025332</commentid>
    <comment_count>1</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2024-04-02 01:49:19 -0700</bug_when>
    <thetext>This is a duplicate of bug 271903. It is similar to bug 268770, but with a RenderInline ruby split into multiple continuations because of forced line breaks caused by block descendants. RELEASE_ASSERT(!m_previous) fails in WebCore::RenderObject::destroy, with a misparented m_previous. It was badly attached in RenderTreeBuilder::Ruby::attachForStyleBasedRuby with the following bad configuration:

      RenderView at (0,0) size 0x0 renderer (0x7f363e0007a0) layout box ((nil)) layout-&gt;[normal child]
        HTML RenderBlock at (0,0) size 0x0 renderer (0x7f363e0015e0) layout box ((nil)) node (0x7f363e0010e0) layout-&gt;[self][normal child]
          BODY RenderBody at (0,0) size 0x0 renderer (0x7f363e0017f0) layout box ((nil)) node (0x7f363e001230) layout-&gt;[self][normal child]
            RenderBlock at (0,0) size 0x0 renderer (0x7f363e007070) layout box ((nil)) layout-&gt;[self][normal child]
[parent]-----&gt;RUBY RenderInline renderer (0x7f363e005d20) layout box ((nil)) node (0x7f363e004620) continuation-&gt;(0x7f363e007250) layout-&gt;[self][normal child]
                RenderInline renderer (0x7f363e005dc0) layout box ((nil)) layout-&gt;[self][normal child]
                  #text RenderText renderer (0x7f363e005e60) layout box ((nil)) node (0x7f363e004700) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
                  #text RenderText renderer (0x7f363e005ed0) layout box ((nil)) node (0x7f363e004760) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
                  TIME RenderInline renderer (0x7f363e006b30) layout box ((nil)) node (0x7f363e004900) layout-&gt;[self][normal child]
                    #text RenderText renderer (0x7f363e006ac0) layout box ((nil)) node (0x7f363e0047c0) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
                  #text RenderText renderer (0x7f363e0060f0) layout box ((nil)) node (0x7f363e004a50) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
                  RenderInline renderer (0x7f363e006bd0) layout box ((nil)) layout-&gt;[self][normal child]
                    #text RenderText renderer (0x7f363e006c70) layout box ((nil)) node (0x7f363e004ab0) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
                  #text RenderText renderer (0x7f363e0061d0) layout box ((nil)) node (0x7f363e004c60) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
                  DATA RenderInline renderer (0x7f363e006d50) layout box ((nil)) node (0x7f363e004d20) continuation-&gt;(0x7f363e006f80) layout-&gt;[self][normal child]
                    #text RenderText renderer (0x7f363e006ce0) layout box ((nil)) node (0x7f363e004cc0) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
                  #text RenderText renderer (0x7f363e0063f0) layout box ((nil)) node (0x7f363e005010) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]
            RenderBlock at (0,0) size 0x0 renderer (0x7f363e006f80) layout box ((nil)) continuation-&gt;(0x7f363e006df0) layout-&gt;[self][normal child]
              H3 RenderBlock at (0,0) size 0x0 renderer (0x7f363e006e90) layout box ((nil)) node (0x7f363e004e00) layout-&gt;[self]
            RenderBlock at (0,0) size 0x0 renderer (0x7f363e007160) layout box ((nil)) layout-&gt;[self][normal child]
              RUBY RenderInline renderer (0x7f363e007250) layout box ((nil)) node (0x7f363e004620) continuation-&gt;(0x7f363e006820) layout-&gt;[self][normal child]
                DATA RenderInline renderer (0x7f363e006df0) layout box ((nil)) node (0x7f363e004d20) layout-&gt;[self]
              RUBY RenderInline renderer (0x7f363e006820) layout box ((nil)) node (0x7f363e004620) layout-&gt;[self][normal child]
                RenderInline renderer (0x7f363e0068c0) layout box ((nil)) layout-&gt;[self][normal child]
[beforeChild]--&gt;#text RenderText renderer (0x7f363e006a50) layout box ((nil)) node (0x7f363e0050d0) length-&gt;(1) &quot;\n&quot; layout-&gt;[self]

This is happening when creating a renderer for the RT element, here is the DOM tree:


BODY	0x7f363e001230 (renderer 0x7f363e0017f0) 
	#text	0x7f363e0045c0 &quot;\n\n&quot;
	RUBY	0x7f363e004620 (renderer 0x7f363e005d20) 
		#text	0x7f363e004700 &quot;\n&quot;
		RT	0x7f363e004820 (renderer (nil))  CLASS=class1
			#text	0x7f363e004760 &quot;\n&quot;
			TIME	0x7f363e004900 (renderer 0x7f363e006b30) 
				#text	0x7f363e0047c0 &quot;\n&quot;
			#text	0x7f363e004a50 &quot;\n&quot;
		RP	0x7f363e004b10 (renderer (nil))  CLASS=class1
			#text	0x7f363e004ab0 &quot;\n&quot;
		#text	0x7f363e004c60 &quot;\n&quot;
		DATA	0x7f363e004d20 (renderer 0x7f363e006d50) 
			#text	0x7f363e004cc0 &quot;\n&quot;
			H3	0x7f363e004e00 (renderer 0x7f363e006e90) 
				#text	0x7f363e004f50 &quot;\n&quot;
			#text	0x7f363e004fb0 &quot;\n\n&quot;
		#text	0x7f363e005010 &quot;\n&quot;
		RT	0x7f363e004890 (renderer 0x7f363e007390) 
			#text	0x7f363e005070 &quot;\n&quot;
		#text	0x7f363e0050d0 &quot;\n&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027400</commentid>
    <comment_count>2</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2024-04-10 04:19:26 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 268770 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>470670</attachid>
            <date>2024-03-29 12:49:22 -0700</date>
            <delta_ts>2024-03-29 12:49:22 -0700</delta_ts>
            <desc>Repro case</desc>
            <filename>reduced-1-171104482852.html</filename>
            <type>text/html</type>
            <size>505</size>
            <attacher name="John Wilander">wilander</attacher>
            
              <data encoding="base64">PHN0eWxlPgouY2xhc3MwLC5jbGFzczEsI3g1MCB7IHNsaWRlcnRodW1iLXZlcnRpY2FsO2Rpc3Bs
YXk6IGNvbnRlbnRzO21hc2stcmVwZWF0OiB9Cjwvc3R5bGU+CjxzY3JpcHQ+CmZ1bmN0aW9uIGdj
KCkgewogZm9yKHZhciBpPTA7aTwxMDA7aSsrKSB7CiB9Cn0KZnVuY3Rpb24gbWFpbigpIHsKdHJ5
IHsgeDExLnNldEF0dHJpYnV0ZSgiY2xhc3MiLCJjbGFzczEiKTsgfSBjYXRjaCB7IH0KfQo8L3Nj
cmlwdD4KPGJvZHkgb25sb2FkPSJtYWluKCkiPgo8L25hdj4KPHJ1YnkgaXRlbWdyb3VwPSJBQUFB
QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBIj4KPHJ0IGNsYXNzPSJjbGFzczEiIGl0ZW1zY29w
ZT0iIj4KPHRpbWUgZGlyPSJhdXRvIj4KPC90aW1lPgo8cnAgaWQ9IngxMSIgYXV0b2NhcGl0YWxp
emU9InNlbnRlbmNlcyI+CjwvcnA+CjxkYXRhIDEiPgo8aDMgYWxpZ249Imp1c3RpZnkiPgo8L2gz
Pgo8L21lbnU+CjwvZGF0YT4KPHJ0IHBhcnQ9InBhcnQwIj4KPC9ydD4KPC9ydWJ5Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>