<?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>133537</bug_id>
          
          <creation_ts>2014-06-05 00:49:09 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: innerStyle-&gt;refCount() == 1 in WebCore::RenderButton::setupInnerStyle</short_desc>
          <delta_ts>2015-10-16 09:57:52 -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>All</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>darin</cc>
    
    <cc>kling</cc>
    
    <cc>stavila</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1013472</commentid>
    <comment_count>0</comment_count>
      <attachid>232526</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2014-06-05 00:49:09 -0700</bug_when>
    <thetext>Created attachment 232526
Test case

Assertion failure happens when loading the following test (r169529):

&lt;style&gt;


 :first-letter {    
    widows:inherit;
}


button {
    outline-width:0vmax;
    max-width:inherit;
 }

&lt;/style&gt;
&lt;button&gt;a

ASSERTION FAILED: innerStyle-&gt;refCount() == 1
../../Source/WebCore/rendering/RenderButton.cpp(129) : void WebCore::RenderButton::setupInnerStyle(WebCore::RenderStyle*)

...

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff9732a700 (LWP 5429)]
0x00007ffff30ac8ec in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:333
333	    *(int *)(uintptr_t)0xbbadbeef = 0;
(gdb) bt
#0  0x00007ffff30ac8ec in WTFCrash () at ../../Source/WTF/wtf/Assertions.cpp:333
#1  0x00007ffff3e50015 in WebCore::RenderButton::setupInnerStyle (this=0x8d4670, innerStyle=0x7e3550)
    at ../../Source/WebCore/rendering/RenderButton.cpp:129
#2  0x00007ffff3e4fe6a in WebCore::RenderButton::styleDidChange (this=0x8d4670, diff=WebCore::StyleDifferenceEqual, oldStyle=0x809f60)
    at ../../Source/WebCore/rendering/RenderButton.cpp:114
#3  0x00007ffff3e63eba in WebCore::RenderElement::setStyle (this=0x8d4670, style=...) at ../../Source/WebCore/rendering/RenderElement.cpp:430
#4  0x00007ffff3e640c2 in WebCore::RenderElement::setAnimatableStyle (this=0x8d4670, style=...)
    at ../../Source/WebCore/rendering/RenderElement.cpp:468
#5  0x00007ffff40845ae in WebCore::Style::resolveLocal (current=..., renderingParentNode=..., renderTreePosition=..., 
    inheritedChange=WebCore::Style::NoChange) at ../../Source/WebCore/style/StyleResolveTree.cpp:737
#6  0x00007ffff4084b27 in WebCore::Style::resolveTree (current=..., renderingParentNode=..., renderTreePosition=..., change=WebCore::Style::NoChange)
    at ../../Source/WebCore/style/StyleResolveTree.cpp:887
#7  0x00007ffff4084d68 in WebCore::Style::resolveTree (current=..., renderingParentNode=..., renderTreePosition=..., change=WebCore::Style::NoChange)
    at ../../Source/WebCore/style/StyleResolveTree.cpp:922
#8  0x00007ffff4084d68 in WebCore::Style::resolveTree (current=..., renderingParentNode=..., renderTreePosition=..., change=WebCore::Style::NoChange)
    at ../../Source/WebCore/style/StyleResolveTree.cpp:922
#9  0x00007ffff4085023 in WebCore::Style::resolveTree (document=..., change=WebCore::Style::NoChange)
    at ../../Source/WebCore/style/StyleResolveTree.cpp:964
#10 0x00007ffff35c0ea6 in WebCore::Document::recalcStyle (this=0x843f20, change=WebCore::Style::NoChange)
    at ../../Source/WebCore/dom/Document.cpp:1750
#11 0x00007ffff35c1157 in WebCore::Document::updateStyleIfNeeded (this=0x843f20) at ../../Source/WebCore/dom/Document.cpp:1795
#12 0x00007ffff3b539cb in WebCore::FrameView::layout (this=0x878530, allowSubtree=true) at ../../Source/WebCore/page/FrameView.cpp:1159
#13 0x00007ffff3b574e5 in WebCore::FrameView::visibleContentsResized (this=0x878530) at ../../Source/WebCore/page/FrameView.cpp:2239
#14 0x00007ffff3c01385 in WebCore::ScrollView::updateScrollbars (this=0x878530, desiredOffset=...) at ../../Source/WebCore/platform/ScrollView.cpp:660
#15 0x00007ffff3bffd77 in WebCore::ScrollView::setContentsSize (this=0x878530, newSize=...) at ../../Source/WebCore/platform/ScrollView.cpp:389
#16 0x00007ffff3b51ffe in WebCore::FrameView::setContentsSize (this=0x878530, size=...) at ../../Source/WebCore/page/FrameView.cpp:538
#17 0x00007ffff3b52218 in WebCore::FrameView::adjustViewSize (this=0x878530) at ../../Source/WebCore/page/FrameView.cpp:568
#18 0x00007ffff3b542a9 in WebCore::FrameView::layout (this=0x878530, allowSubtree=true) at ../../Source/WebCore/page/FrameView.cpp:1305
#19 0x00007ffff35c3165 in WebCore::Document::implicitClose (this=0x843f20) at ../../Source/WebCore/dom/Document.cpp:2432
#20 0x00007ffff3a24337 in WebCore::FrameLoader::checkCallImplicitClose (this=0x988898) at ../../Source/WebCore/loader/FrameLoader.cpp:895
#21 0x00007ffff3a240e2 in WebCore::FrameLoader::checkCompleted (this=0x988898) at ../../Source/WebCore/loader/FrameLoader.cpp:841
#22 0x00007ffff3a23e6a in WebCore::FrameLoader::finishedParsing (this=0x988898) at ../../Source/WebCore/loader/FrameLoader.cpp:761
#23 0x00007ffff35cab8d in WebCore::Document::finishedParsing (this=0x843f20) at ../../Source/WebCore/dom/Document.cpp:4489
#24 0x00007ffff38c2133 in WebCore::HTMLConstructionSite::finishedParsing (this=0x843688)
    at ../../Source/WebCore/html/parser/HTMLConstructionSite.cpp:395
#25 0x00007ffff38fac8f in WebCore::HTMLTreeBuilder::finished (this=0x843670) at ../../Source/WebCore/html/parser/HTMLTreeBuilder.cpp:2997
#26 0x00007ffff38c9bbe in WebCore::HTMLDocumentParser::end (this=0x809630) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:439
#27 0x00007ffff38c9ca9 in WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd (this=0x809630)
    at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:450
#28 0x00007ffff38c88f3 in WebCore::HTMLDocumentParser::prepareToStopParsing (this=0x809630)
    at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:165
#29 0x00007ffff38c9cec in WebCore::HTMLDocumentParser::attemptToEnd (this=0x809630) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:462
#30 0x00007ffff38c9da3 in WebCore::HTMLDocumentParser::finish (this=0x809630) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:490
#31 0x00007ffff3a17053 in WebCore::DocumentWriter::end (this=0x99c000) at ../../Source/WebCore/loader/DocumentWriter.cpp:248
#32 0x00007ffff3a04423 in WebCore::DocumentLoader::finishedLoading (this=0x99bf60, finishTime=0) at ../../Source/WebCore/loader/DocumentLoader.cpp:440
#33 0x00007ffff3a0418c in WebCore::DocumentLoader::notifyFinished (this=0x99bf60, resource=0x84e400)
    at ../../Source/WebCore/loader/DocumentLoader.cpp:374
#34 0x00007ffff3aaabc2 in WebCore::CachedResource::checkNotify (this=0x84e400) at ../../Source/WebCore/loader/cache/CachedResource.cpp:332
#35 0x00007ffff3aaaca0 in WebCore::CachedResource::finishLoading (this=0x84e400) at ../../Source/WebCore/loader/cache/CachedResource.cpp:348
#36 0x00007ffff3aa7a14 in WebCore::CachedRawResource::finishLoading (this=0x84e400, data=0x78b0a0)
    at ../../Source/WebCore/loader/cache/CachedRawResource.cpp:97
#37 0x00007ffff3a5e3b4 in WebCore::SubresourceLoader::didFinishLoading (this=0x825c00, finishTime=0)
    at ../../Source/WebCore/loader/SubresourceLoader.cpp:310
#38 0x00007ffff3a5a8d7 in WebCore::ResourceLoader::didFinishLoading (this=0x825c00, finishTime=0)
    at ../../Source/WebCore/loader/ResourceLoader.cpp:517
#39 0x00007ffff43071e9 in WebCore::readCallback (asyncResult=0x8419b0, data=0x827100)
---Type &lt;return&gt; to continue, or q &lt;return&gt; to quit---
    at ../../Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:1288
#40 0x00007fffec2c02ea in async_ready_callback_wrapper (source_object=0x98cb30, res=0x8419b0, user_data=0x827100) at ginputstream.c:519
#41 0x00007fffec2dfceb in g_task_return_now (task=0x8419b0) at gtask.c:1108
#42 0x00007fffec2dfd09 in complete_in_idle_cb (task=0x8419b0) at gtask.c:1117
#43 0x00007fffeb5362e6 in g_main_dispatch (context=0x677bb0) at gmain.c:3065
#44 g_main_context_dispatch (context=context@entry=0x677bb0) at gmain.c:3641
#45 0x00007fffeb536638 in g_main_context_iterate (context=0x677bb0, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;)
    at gmain.c:3712
#46 0x00007fffeb536a3a in g_main_loop_run (loop=0x913eb0) at gmain.c:3906
#47 0x00007ffff30fd900 in WTF::RunLoop::run () at ../../Source/WTF/wtf/gtk/RunLoopGtk.cpp:59
#48 0x00007ffff303a194 in WebKit::ChildProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMain&gt; (argc=2, argv=0x7fffffffda58)
    at ../../Source/WebKit2/Shared/unix/ChildProcessMain.h:61
#49 0x00007ffff3039ff9 in WebKit::WebProcessMainUnix (argc=2, argv=0x7fffffffda58) at ../../Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp:73
#50 0x000000000040085d in main (argc=2, argv=0x7fffffffda58) at ../../Source/WebKit2/WebProcess/EntryPoint/unix/WebProcessMain.cpp:32</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1133881</commentid>
    <comment_count>1</comment_count>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2015-10-16 09:57:52 -0700</bug_when>
    <thetext>It is not reproducible anymore. Closing.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>232526</attachid>
            <date>2014-06-05 00:49:09 -0700</date>
            <delta_ts>2014-06-05 00:49:09 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>crash.html</filename>
            <type>text/html</type>
            <size>134</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PHN0eWxlPgoKCiA6Zmlyc3QtbGV0dGVyIHsgICAgCiAgICB3aWRvd3M6aW5oZXJpdDsKfQoKCmJ1
dHRvbiB7CiAgICBvdXRsaW5lLXdpZHRoOjB2bWF4OwogICAgbWF4LXdpZHRoOmluaGVyaXQ7CiB9
Cgo8L3N0eWxlPgo8YnV0dG9uPmE=
</data>

          </attachment>
      

    </bug>

</bugzilla>