<?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>140185</bug_id>
          
          <creation_ts>2015-01-07 10:42:53 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: enclosingIntRect(rendererMappedResult) == enclosingIntRect(result.boundingBox()) in WebCore::RenderGeometryMap::mapToContainer</short_desc>
          <delta_ts>2016-08-04 13:01:50 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renata Hodovan">rhodovan.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1059417</commentid>
    <comment_count>0</comment_count>
      <attachid>244165</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2015-01-07 10:42:53 -0800</bug_when>
    <thetext>Created attachment 244165
Test case

Load this with debug WK:

&lt;!DOCTYPE html&gt;
&lt;style&gt;
* {
    margin: auto 4971%;
}
&lt;/style&gt;
&lt;fieldset&gt;
    &lt;sub dir=&quot;rtl&quot;&gt;
        &lt;dfn&gt;
            &lt;keygen autofocus&gt;
            &lt;textarea&gt;&lt;/textarea&gt;
            &lt;footer&gt;&lt;input/&gt;&lt;/footer&gt;
        &lt;/dfn&gt;
    &lt;/sub&gt;
&lt;/fieldset&gt;

This might be another repro of https://bugs.webkit.org/show_bug.cgi?id=108619.


Backtrace:

ASSERTION FAILED: enclosingIntRect(rendererMappedResult) == enclosingIntRect(result.boundingBox())
../../Source/WebCore/rendering/RenderGeometryMap.cpp(141) : WebCore::FloatQuad WebCore::RenderGeometryMap::mapToContainer(const WebCore::FloatRect&amp;, const WebCore::RenderLayerModelObject*) const

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff98984700 (LWP 31676)]
0x00007fffed92a5c7 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
321	    *(int *)(uintptr_t)0xbbadbeef = 0;
#0  0x00007fffed92a5c7 in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:321
#1  0x00007ffff394252d in WebCore::RenderGeometryMap::mapToContainer (this=0x7fffffffca50, rect=..., container=0x0) at ../../Source/WebCore/rendering/RenderGeometryMap.cpp:141
#2  0x00007ffff38bd9b6 in WebCore::RenderBox::outlineBoundsForRepaint (this=0x7fff983eccc0, repaintContainer=0x0, geometryMap=0x7fffffffca50) at ../../Source/WebCore/rendering/RenderBox.cpp:683
#3  0x00007ffff396966a in WebCore::RenderLayer::computeRepaintRects (this=0x7fff983ebd80, repaintContainer=0x0, geometryMap=0x7fffffffca50) at ../../Source/WebCore/rendering/RenderLayer.cpp:674
#4  0x00007ffff39688d6 in WebCore::RenderLayer::updateLayerPositions (this=0x7fff983ebd80, geometryMap=0x7fffffffca50, flags=13) at ../../Source/WebCore/rendering/RenderLayer.cpp:395
#5  0x00007ffff3968c0f in WebCore::RenderLayer::updateLayerPositions (this=0x7ffff7f367e0, geometryMap=0x7fffffffca50, flags=13) at ../../Source/WebCore/rendering/RenderLayer.cpp:450
#6  0x00007ffff3968c0f in WebCore::RenderLayer::updateLayerPositions (this=0x7ffff7f36b40, geometryMap=0x7fffffffca50, flags=13) at ../../Source/WebCore/rendering/RenderLayer.cpp:450
#7  0x00007ffff396862c in WebCore::RenderLayer::updateLayerPositionsAfterLayout (this=0x7ffff7f36b40, rootLayer=0x7ffff7f36b40, flags=13) at ../../Source/WebCore/rendering/RenderLayer.cpp:353
#8  0x00007ffff35c9b5f in WebCore::FrameView::layout (this=0x7ffff7ec9b00, allowSubtree=true) at ../../Source/WebCore/page/FrameView.cpp:1357
#9  0x00007ffff2f883a7 in WebCore::Document::implicitClose (this=0x7ffff7e49000) at ../../Source/WebCore/dom/Document.cpp:2464
#10 0x00007ffff347376f in WebCore::FrameLoader::checkCallImplicitClose (this=0x7ffff7f3ca98) at ../../Source/WebCore/loader/FrameLoader.cpp:909
#11 0x00007ffff34734db in WebCore::FrameLoader::checkCompleted (this=0x7ffff7f3ca98) at ../../Source/WebCore/loader/FrameLoader.cpp:855
#12 0x00007ffff3473244 in WebCore::FrameLoader::finishedParsing (this=0x7ffff7f3ca98) at ../../Source/WebCore/loader/FrameLoader.cpp:775
#13 0x00007ffff2f91302 in WebCore::Document::finishedParsing (this=0x7ffff7e49000) at ../../Source/WebCore/dom/Document.cpp:4597
#14 0x00007ffff32ee375 in WebCore::HTMLConstructionSite::finishedParsing (this=0x7ffff7f36920) at ../../Source/WebCore/html/parser/HTMLConstructionSite.cpp:404
#15 0x00007ffff332aec0 in WebCore::HTMLTreeBuilder::finished (this=0x7ffff7f36900) at ../../Source/WebCore/html/parser/HTMLTreeBuilder.cpp:2941
#16 0x00007ffff32f6be6 in WebCore::HTMLDocumentParser::end (this=0x7ffff7ed0100) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:425
#17 0x00007ffff32f6cb4 in WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd (this=0x7ffff7ed0100) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:434
#18 0x00007ffff32f5940 in WebCore::HTMLDocumentParser::prepareToStopParsing (this=0x7ffff7ed0100) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:153
#19 0x00007ffff32f6ceb in WebCore::HTMLDocumentParser::attemptToEnd (this=0x7ffff7ed0100) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:446
#20 0x00007ffff32f6d99 in WebCore::HTMLDocumentParser::finish (this=0x7ffff7ed0100) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:474
#21 0x00007ffff3463885 in WebCore::DocumentWriter::end (this=0x7ffff7ebcaa0) at ../../Source/WebCore/loader/DocumentWriter.cpp:247
#22 0x00007ffff344f029 in WebCore::DocumentLoader::finishedLoading (this=0x7ffff7ebca00, finishTime=0) at ../../Source/WebCore/loader/DocumentLoader.cpp:440
#23 0x00007ffff344ed92 in WebCore::DocumentLoader::notifyFinished (this=0x7ffff7ebca00, resource=0x7ffff7ec9680) at ../../Source/WebCore/loader/DocumentLoader.cpp:374
#24 0x00007ffff3501e1e in WebCore::CachedResource::checkNotify (this=0x7ffff7ec9680) at ../../Source/WebCore/loader/cache/CachedResource.cpp:294
#25 0x00007ffff3501f1c in WebCore::CachedResource::finishLoading (this=0x7ffff7ec9680) at ../../Source/WebCore/loader/cache/CachedResource.cpp:310
#26 0x00007ffff34fe617 in WebCore::CachedRawResource::finishLoading (this=0x7ffff7ec9680, data=0x7ffff7e42570) at ../../Source/WebCore/loader/cache/CachedRawResource.cpp:104
#27 0x00007ffff34b1886 in WebCore::SubresourceLoader::didFinishLoading (this=0x7ffff7ec9200, finishTime=0) at ../../Source/WebCore/loader/SubresourceLoader.cpp:355
#28 0x00007ffff34ad4e7 in WebCore::ResourceLoader::didFinishLoading (this=0x7ffff7ec9200, finishTime=0) at ../../Source/WebCore/loader/ResourceLoader.cpp:506
#29 0x00007ffff3e58c65 in WebCore::readCallback (asyncResult=0x6d69a0, data=0x7ffff7e390e0) at ../../Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:1295
#30 0x00007fffeb4cc7d6 in async_ready_callback_wrapper (source_object=0x7c8ad0, res=0x6d69a0, user_data=user_data@entry=0x7ffff7e390e0) at ginputstream.c:523
#31 0x00007fffeb4f20d5 in g_task_return_now (task=0x6d69a0) at gtask.c:1077
#32 0x00007fffeb4f20f9 in complete_in_idle_cb (task=0x6d69a0) at gtask.c:1086
#33 0x00007fffea7319fd in g_main_dispatch (context=0x478330) at gmain.c:3064
#34 g_main_context_dispatch (context=context@entry=0x478330) at gmain.c:3663
#35 0x00007fffea731d68 in g_main_context_iterate (context=0x478330, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at gmain.c:3734
#36 0x00007fffea73202a in g_main_loop_run (loop=0x8fd8e0) at gmain.c:3928
#37 0x00007ffff4537450 in WTF::RunLoop::run () at ../../Source/WTF/wtf/gtk/RunLoopGtk.cpp:59
#38 0x00007ffff2a65456 in WebKit::ChildProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMain&gt; (argc=2, argv=0x7fffffffd898) at ../../Source/WebKit2/Shared/unix/ChildProcessMain.h:61
#39 0x00007ffff2a652bb in WebKit::WebProcessMainUnix (argc=2, argv=0x7fffffffd898) at ../../Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:70
#40 0x0000000000400891 in main (argc=2, argv=0x7fffffffd898) at ../../Source/WebKit2/WebProcess/EntryPoint/unix/WebProcessMain.cpp:44</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1059470</commentid>
    <comment_count>1</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2015-01-07 12:44:01 -0800</bug_when>
    <thetext>(const WebCore::FloatRect &amp;) rect = 0x00007fff4fcef738: {
  m_location = (m_x = -32042248, m_y = 68.59375)
  m_size = (m_width = 130, m_height = 13)
}

vs.

(const WebCore::FloatRect &amp;) rect = 0x00007fff4fcef758: {
  m_location = (m_x = -31980808, m_y = 68.59375)
  m_size = (m_width = 130, m_height = 13)
}

m_x looks very different when we compute it through the m_renderer-&gt;localToContainerQuad() path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217543</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-08-04 13:01:50 -0700</bug_when>
    <thetext>This does not seem to reproduce under r204307. If you believe there is still a problem, please reopen the bug with a revised test case.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>244165</attachid>
            <date>2015-01-07 10:42:53 -0800</date>
            <delta_ts>2015-01-07 10:42:53 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>crash2.html</filename>
            <type>text/html</type>
            <size>248</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KKiB7CiAgICBtYXJnaW46IGF1dG8gNDk3MSU7Cn0KPC9z
dHlsZT4KPGZpZWxkc2V0PgogICAgPHN1YiBkaXI9InJ0bCI+CiAgICAgICAgPGRmbj4KICAgICAg
ICAgICAgPGtleWdlbiBhdXRvZm9jdXM+CiAgICAgICAgICAgIDx0ZXh0YXJlYT48L3RleHRhcmVh
PgogICAgICAgICAgICA8Zm9vdGVyPjxpbnB1dC8+PC9mb290ZXI+CiAgICAgICAgPC9kZm4+CiAg
ICA8L3N1Yj4KPC9maWVsZHNldD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>