<?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>242066</bug_id>
          
          <creation_ts>2022-06-28 10:29:26 -0700</creation_ts>
          <short_desc>[GTK] Frequent crashes on github.com in WebCore::RenderFileUploadControl::uploadButton</short_desc>
          <delta_ts>2022-06-28 13:43:48 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>241954</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>fujii</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1878791</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-06-28 10:29:26 -0700</bug_when>
    <thetext>Today I hit four crashes within two minutes when browsing github.com with 2.36.3. It&apos;s a null pointer dereference:

(gdb) bt
#0  WebCore::ContainerNode::firstChild() const (this=0x0)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/dom/ContainerNode.h:43
#1  WebCore::RenderFileUploadControl::uploadButton() const (this=&lt;optimized out&gt;)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/rendering/RenderFileUploadControl.cpp:246
#2  0x00007f37cc758304 in WebCore::RenderFileUploadControl::updateFromElement() (this=0x7f37401dac80)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/rendering/RenderFileUploadControl.cpp:78
#3  0x00007f37cbf50206 in WebCore::HTMLInputElement::didAttachRenderers() (this=0x7f36b825b020)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/html/HTMLInputElement.cpp:875
#4  0x00007f37cc97b947 in WebCore::RenderTreeUpdater::popParent() (this=0x7ffc02234600)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:237
#5  0x00007f37cc97c778 in WebCore::RenderTreeUpdater::popParentsToDepth(unsigned int)
    (depth=&lt;optimized out&gt;, this=&lt;optimized out&gt;)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:250
#6  WebCore::RenderTreeUpdater::updateRenderTree(WebCore::ContainerNode&amp;) (this=0x7ffc02234600, root=&lt;optimized out&gt;)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:158
#7  0x00007f37cc97cf1b in WebCore::RenderTreeUpdater::commit(std::unique_ptr&lt;WebCore::Style::Update const, std::default_delete&lt;WebCore::Style::Update const&gt; &gt;) (Python Exception &lt;class &apos;gdb.error&apos;&gt;: Request for member &apos;_M_head_impl&apos; is ambiguous in type &apos;std::tuple&lt;WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt;&apos;. Candidates are:
  &apos;std::default_delete&lt;WebCore::Style::Update const&gt; std::_Head_base&lt;1, std::default_delete&lt;WebCore::Style::Update const&gt;, true&gt;::_M_head_impl&apos; (std::tuple&lt;WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Tuple_impl&lt;0, WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Tuple_impl&lt;1, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Head_base&lt;1, std::default_delete&lt;WebCore::Style::Update const&gt;, true&gt;)
  &apos;&lt;unnamed type&gt; std::_Head_base&lt;0, WebCore::Style::Update const*, false&gt;::_M_head_impl&apos; (std::tuple&lt;WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Tuple_impl&lt;0, WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Head_base&lt;0, WebCore::Style::Update const*, false&gt;)
this=0x7ffc02234600, styleUpdate=...)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp:125
#8  0x00007f37cbccde2c in WebCore::Document::updateRenderTree(std::unique_ptr&lt;WebCore::Style::Update const, std::default_delete&lt;WebCore::Style::Update const&gt; &gt;) (this=this@entry=Python Exception &lt;class &apos;gdb.error&apos;&gt;: Request for member &apos;_M_head_impl&apos; is ambiguous in type &apos;std::tuple&lt;WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt;&apos;. Candidates are:
  &apos;std::default_delete&lt;WebCore::Style::Update const&gt; std::_Head_base&lt;1, std::default_delete&lt;WebCore::Style::Update const&gt;, true&gt;::_M_head_impl&apos; (std::tuple&lt;WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Tuple_impl&lt;0, WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Tuple_impl&lt;1, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Head_base&lt;1, std::default_delete&lt;WebCore::Style::Update const&gt;, true&gt;)
  &apos;&lt;unnamed type&gt; std::_Head_base&lt;0, WebCore::Style::Update const*, false&gt;::_M_head_impl&apos; (std::tuple&lt;WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Tuple_impl&lt;0, WebCore::Style::Update const*, std::default_delete&lt;WebCore::Style::Update const&gt; &gt; -&gt; std::_Head_base&lt;0, WebCore::Style::Update const*, false&gt;)
0x7f37c1eadcb0, styleUpdate=...)
    at /usr/include/c++/11.2.0/bits/unique_ptr.h:172
#9  0x00007f37cbce78cd in WebCore::Document::resolveStyle(WebCore::Document::ResolveStyleType)
    (this=this@entry=0x7f37c1eadcb0, type=&lt;optimized out&gt;, type@entry=WebCore::Document::ResolveStyleType::Normal)
    at /usr/include/c++/11.2.0/bits/move.h:77
#10 0x00007f37cbce7f1f in WebCore::Document::updateStyleIfNeeded() (this=0x7f37c1eadcb0)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/dom/Document.cpp:2182
#11 0x00007f37cbce921e in WebCore::Document::updateLayoutIfDimensionsOutOfDate(WebCore::Element&amp;, WebCore::DimensionsCheck) (this=0x7f37c1eadcb0, element=..., dimensionsCheck=dimensionsCheck@entry=WebCore::HeightDimensionsCheck)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/dom/Document.cpp:2287
#12 0x00007f37cbd0b853 in WebCore::Element::offsetHeight() (this=0x7f36785a6d00)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/dom/Element.cpp:1302
#13 0x00007f37cb15c511 in WebCore::jsHTMLElement_offsetHeightGetter
    (thisObject=&lt;optimized out&gt;, lexicalGlobalObject=&lt;optimized out&gt;)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/_builddir/WebCore/DerivedSources/JSHTMLElement.cpp:4157
#14 WebCore::IDLAttribute&lt;WebCore::JSHTMLElement&gt;::get&lt;WebCore::jsHTMLElement_offsetHeightGetter, (WebCore::CastedThisErrorBehavior)3&gt; (attributeName=..., thisValue=&lt;optimized out&gt;, lexicalGlobalObject=&lt;optimized out&gt;)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/WebCore/bindings/js/JSDOMAttribute.h:88
#15 WebCore::jsHTMLElement_offsetHeight(JSC::JSGlobalObject*, JSC::EncodedJSValue, JSC::PropertyName)
    (lexicalGlobalObject=&lt;optimized out&gt;, thisValue=&lt;optimized out&gt;, attributeName=...)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/_builddir/WebCore/DerivedSources/JSHTMLElement.cpp:4162
#16 0x00007f37c919f715 in JSC::PropertySlot::customGetter(JSC::VM&amp;, JSC::PropertyName) const
    (this=this@entry=0x7ffc02234e10, vm=&lt;optimized out&gt;, propertyName=..., propertyName@entry=...)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/JavaScriptCore/runtime/PropertySlot.cpp:47
#17 0x00007f37c8de06f3 in JSC::PropertySlot::getValue(JSC::JSGlobalObject*, JSC::PropertyName) const
    (propertyName=..., globalObject=0x7f37c1525068, this=0x7ffc02234e10)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/JavaScriptCore/runtime/PropertySlot.h:408
#18 JSC::JSValue::get(JSC::JSGlobalObject*, JSC::PropertyName, JSC::PropertySlot&amp;) const
    (slot=..., propertyName=..., globalObject=&lt;optimized out&gt;, this=0x7ffc02234dc8)
    at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/JavaScriptCore/runtime/JSCJSValueInlines.h:1021
#19 JSC::LLInt::performLLIntGetByID(JSC::Instruction const*, JSC::CodeBlock*, JSC::JSGlobalObject*, JSC::JSValue, JSC::Identifier const&amp;, JSC::GetByIdModeMetadata&amp;)
    (pc=0x7f361820db05, codeBlock=0x7f35c8eac400, globalObject=&lt;optimized out&gt;, baseValue=..., ident=..., metadata=...) at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:814
#20 0x00007f37c8de11d9 in JSC::LLInt::llint_slow_path_get_by_id(JSC::CallFrame*, JSC::Instruction const*)
    (callFrame=0x7ffc02235090, pc=0x7f361820db05) at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:888
#21 0x00007f37c82deb4d in llint_op_get_by_id () at /usr/lib/debug/source/sdk/webkit2gtk-4.1.bst/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm:102
#22 0x0000000000000000 in  ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1878860</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-06-28 13:43:48 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 241954 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>