<?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>191537</bug_id>
          
          <creation_ts>2018-11-11 18:51:56 -0800</creation_ts>
          <short_desc>Should never be reached failure in WebCore::BidiResolverBase::createBidiRunsForLine</short_desc>
          <delta_ts>2018-12-10 16:06:49 -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>WebCore Misc.</component>
          <version>WebKit Local Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>188406</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>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renata Hodovan">hodovan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jfernandez</cc>
    
    <cc>mitz</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>rhodovan.u-szeged</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1477464</commentid>
    <comment_count>0</comment_count>
      <attachid>354524</attachid>
    <who name="Renata Hodovan">hodovan</who>
    <bug_when>2018-11-11 18:51:56 -0800</bug_when>
    <thetext>Created attachment 354524
Test

Load the attached test with debug WebKitTestRunner:

JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ&lt;s dir&gt;&lt;font&gt;&lt;/font&gt;
TTTTTTTTTTTTTTTTTTTTTTTTTtype=&quot;url


Checked revision: 2698c9fc7de
The issue can be reproduced both on Mac and GTK and happens quite often with different test cases.

Backtrace:

SHOULD NEVER BE REACHED
/Users/reni/work/sut/WebKit/Source/WebCore/platform/text/BidiResolver.h(899) : void WebCore::BidiResolverBase&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiResolverWithIsolate&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiIsolatedRun&gt; &gt;::createBidiRunsForLine(const Iterator &amp;, WebCore::VisualDirectionOverride, bool) [Iterator = WebCore::InlineIterator, Run = WebCore::BidiRun, DerivedClass = WebCore::BidiResolverWithIsolate&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiIsolatedRun&gt;]
1   0x43800fd39 WTFCrash
2   0x412b210b0 WTF::Vector&lt;unsigned char, 0ul, WTF::CrashOnOverflow, 16ul&gt;::Vector()
3   0x41b06765b WebCore::BidiResolverBase&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiResolverWithIsolate&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiIsolatedRun&gt; &gt;::createBidiRunsForLine(WebCore::InlineIterator const&amp;, WebCore::VisualDirectionOverride, bool)
4   0x41af5457f WebCore::constructBidiRunsForSegment(WebCore::BidiResolverWithIsolate&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiIsolatedRun&gt;&amp;, WebCore::BidiRunList&lt;WebCore::BidiRun&gt;&amp;, WebCore::InlineIterator const&amp;, WebCore::VisualDirectionOverride, bool)
5   0x41af4e08b WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange(WebCore::LineLayoutState&amp;, WebCore::BidiResolverWithIsolate&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiIsolatedRun&gt;&amp;, WebCore::InlineIterator const&amp;, WebCore::BidiStatus const&amp;, unsigned int)
6   0x41af49f7b WebCore::RenderBlockFlow::layoutRunsAndFloats(WebCore::LineLayoutState&amp;, bool)
7   0x41af5aaef WebCore::RenderBlockFlow::layoutLineBoxes(bool, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
8   0x41ae5329a WebCore::RenderBlockFlow::layoutInlineChildren(bool, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
9   0x41ae4f47c WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
10  0x41ade274d WebCore::RenderBlock::layout()
11  0x41ae5d702 WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&amp;, WebCore::RenderBlockFlow::MarginInfo&amp;, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
12  0x41ae53ae6 WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&amp;)
13  0x41ae4f4f5 WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
14  0x41ade274d WebCore::RenderBlock::layout()
15  0x41ae5d702 WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&amp;, WebCore::RenderBlockFlow::MarginInfo&amp;, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
16  0x41ae53ae6 WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&amp;)
17  0x41ae4f4f5 WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
18  0x41ade274d WebCore::RenderBlock::layout()
19  0x41b760b5a WebCore::RenderView::layout()
20  0x419bb8593 WebCore::FrameViewLayoutContext::layout()
21  0x4181d098a WebCore::Document::implicitClose()
22  0x4197406b1 WebCore::FrameLoader::checkCallImplicitClose()
23  0x41973f547 WebCore::FrameLoader::checkCompleted()
24  0x41973a114 WebCore::FrameLoader::finishedParsing()
25  0x41820c49b WebCore::Document::finishedParsing()
26  0x419065748 WebCore::HTMLConstructionSite::finishedParsing()
27  0x4190f567f WebCore::HTMLTreeBuilder::finished()
28  0x4190775c3 WebCore::HTMLDocumentParser::end()
29  0x4190716c1 WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd()
30  0x419071282 WebCore::HTMLDocumentParser::prepareToStopParsing()
31  0x4190776df WebCore::HTMLDocumentParser::attemptToEnd()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1477559</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-11-12 07:05:33 -0800</bug_when>
    <thetext>&lt;rdar://problem/45988756&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1486789</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-12-10 16:06:49 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 188406 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>354524</attachid>
            <date>2018-11-11 18:51:56 -0800</date>
            <delta_ts>2018-11-11 18:51:56 -0800</delta_ts>
            <desc>Test</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>131</size>
            <attacher name="Renata Hodovan">hodovan</attacher>
            
              <data encoding="base64">SkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpK
SkpKSkpKSkpKSkpKSkpKSkpKSjxzIGRpcj48Zm9udD48L2ZvbnQ+ClRUVFRUVFRUVFRUVFRUVFRU
VFRUVFRUVFR0eXBlPSJ1cmw=
</data>

          </attachment>
      

    </bug>

</bugzilla>