<?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>67669</bug_id>
          
          <creation_ts>2011-09-06 13:46:31 -0700</creation_ts>
          <short_desc>Null ptr crash in RenderScrollbar::updateScrollbarParts</short_desc>
          <delta_ts>2011-09-09 11:15:37 -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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abhishek Arya">inferno</reporter>
          <assigned_to name="Abhishek Arya">inferno</assigned_to>
          <cc>jamesr</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>462826</commentid>
    <comment_count>0</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2011-09-06 13:46:31 -0700</bug_when>
    <thetext>http://code.google.com/p/chromium/issues/detail?id=95552

Thread 0 *CRASHED* ( EXCEPTION_ACCESS_VIOLATION_READ @ 0x00000018 )

0x584150d3	 [chrome.dll	 - renderobject.h:960]	WebCore::RenderObject::setChildNeedsLayout(bool,bool)
0x5843873f	 [chrome.dll	 - renderscrollbar.cpp:198]	WebCore::RenderScrollbar::updateScrollbarParts(bool)
0x58438470	 [chrome.dll	 - renderscrollbar.cpp:93]	WebCore::RenderScrollbar::setEnabled(bool)
0x58579e8a	 [chrome.dll	 - scrollview.cpp:554]	WebCore::ScrollView::updateScrollbars(WebCore::IntSize const &amp;)
0x58579633	 [chrome.dll	 - scrollview.cpp:296]	WebCore::ScrollView::setContentsSize(WebCore::IntSize const &amp;)
0x584a4ea9	 [chrome.dll	 - frameview.cpp:489]	WebCore::FrameView::setContentsSize(WebCore::IntSize const &amp;)
0x584a4f77	 [chrome.dll	 - frameview.cpp:515]	WebCore::FrameView::adjustViewSize()
0x584a5899	 [chrome.dll	 - frameview.cpp:1029]	WebCore::FrameView::layout(bool)
0x5861f718	 [chrome.dll	 - document.cpp:1614]	WebCore::Document::updateLayout()
0x5861f78c	 [chrome.dll	 - document.cpp:1645]	WebCore::Document::updateLayoutIgnorePendingStylesheets()
0x58627013	 [chrome.dll	 - element.cpp:402]	WebCore::Element::offsetParent()
0x586c00a3	 [chrome.dll	 - v8element.cpp:100]	WebCore::ElementInternal::offsetParentAttrGetter

Basically, owning renderer can be cleared in ClearOwningRenderer. we need a null check here.  unfortunately top crasher, but no repro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462836</commentid>
    <comment_count>1</comment_count>
      <attachid>106481</attachid>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2011-09-06 13:55:50 -0700</bug_when>
    <thetext>Created attachment 106481
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463117</commentid>
    <comment_count>2</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-09-06 20:54:28 -0700</bug_when>
    <thetext>From that stack, it looks like this scrollbar is associated directly with a ScrollView instead of a scrollable RenderObject, so I&apos;m kind of surprised that this null check fixes it since clearOwningRenderer() doesn&apos;t touch the m_owningFrame ptr, it only touches the m_owner pointer.

Can you take a look at the crashing URLs and see if they involve custom styled scrollbars?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463150</commentid>
    <comment_count>3</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2011-09-06 22:27:28 -0700</bug_when>
    <thetext>from scrollview.h
    // Overridden by FrameView to create custom CSS scrollbars if applicable.
    virtual PassRefPtr&lt;Scrollbar&gt; createScrollbar(ScrollbarOrientation);

(In reply to comment #2)
&gt; From that stack, it looks like this scrollbar is associated directly with a ScrollView instead of a scrollable RenderObject, so I&apos;m kind of surprised that this null check fixes it since clearOwningRenderer() doesn&apos;t touch the m_owningFrame ptr, it only touches the m_owner pointer.
&gt; 
&gt; Can you take a look at the crashing URLs and see if they involve custom styled scrollbars?

The crashing url is not important, but the chrome extension is :) - https://chrome.google.com/webstore/detail/ojmmnceaidnmminjjffpndcbdibelgam [http://crash/reportdetail?reportid=0278250f44f77565]. Yeah, it creates nice custom scrollbars.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463441</commentid>
    <comment_count>4</comment_count>
      <attachid>106481</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-09-07 10:46:12 -0700</bug_when>
    <thetext>Comment on attachment 106481
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=106481&amp;action=review

So I think this is at least not harmful, so R=me.  I really don&apos;t understand how this could help with the crash that you cite, however.

&gt; Source/WebCore/ChangeLog:7
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).
&gt; +

describe the change and why you haven&apos;t added tests

&gt; Source/WebCore/rendering/RenderScrollbar.cpp:199
&gt; +        if (owningRenderer())
&gt; +            owningRenderer()-&gt;setChildNeedsLayout(true);

this should be written more like
if (RenderBox* box = owningRenderer())
    box-&gt;setChildNeedsLayout(true)

this is more common in webkit and more efficient in the case where owningRenderer() is expensive</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463464</commentid>
    <comment_count>5</comment_count>
      <attachid>106603</attachid>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2011-09-07 11:06:55 -0700</bug_when>
    <thetext>Created attachment 106603
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463470</commentid>
    <comment_count>6</comment_count>
      <attachid>106603</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2011-09-07 11:11:20 -0700</bug_when>
    <thetext>Comment on attachment 106603
Patch

OK. keep an eye on the crash reports, please</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463471</commentid>
    <comment_count>7</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2011-09-07 11:11:53 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 106603 [details])
&gt; OK. keep an eye on the crash reports, please

Sure I will. Thanks for the review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463472</commentid>
    <comment_count>8</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2011-09-07 11:14:14 -0700</bug_when>
    <thetext>Committed r94690: &lt;http://trac.webkit.org/changeset/94690&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>464923</commentid>
    <comment_count>9</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2011-09-09 11:15:37 -0700</bug_when>
    <thetext>This top crasher is now gone in 14.0.835.159.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>106481</attachid>
            <date>2011-09-06 13:55:50 -0700</date>
            <delta_ts>2011-09-07 11:06:51 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-67669-20110906135549.patch</filename>
            <type>text/plain</type>
            <size>1271</size>
            <attacher name="Abhishek Arya">inferno</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDk0NTk1KQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIG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ogICAgICAgICBzZXRGcmFtZVJlY3QoSW50UmVjdCh4
KCksIHkoKSwgaXNIb3Jpem9udGFsID8gd2lkdGgoKSA6IG5ld1RoaWNrbmVzcywgaXNIb3Jpem9u
dGFsID8gbmV3VGhpY2tuZXNzIDogaGVpZ2h0KCkpKTsKLSAgICAgICAgb3duaW5nUmVuZGVyZXIo
KS0+c2V0Q2hpbGROZWVkc0xheW91dCh0cnVlKTsKKyAgICAgICAgaWYgKG93bmluZ1JlbmRlcmVy
KCkpCisgICAgICAgICAgICBvd25pbmdSZW5kZXJlcigpLT5zZXRDaGlsZE5lZWRzTGF5b3V0KHRy
dWUpOwogICAgIH0KIH0KIAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>106603</attachid>
            <date>2011-09-07 11:06:55 -0700</date>
            <delta_ts>2011-09-07 11:11:20 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-67669-20110907110654.patch</filename>
            <type>text/plain</type>
            <size>1589</size>
            <attacher name="Abhishek Arya">inferno</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDk0NjMwKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTkgQEAKKzIwMTEtMDktMDYgIEFiaGlzaGVr
IEFyeWEgIDxpbmZlcm5vQGNocm9taXVtLm9yZz4KKworICAgICAgICBOdWxsIG93bmluZ1JlbmRl
cmVyIGNyYXNoIGluIFJlbmRlclNjcm9sbGJhcjo6dXBkYXRlU2Nyb2xsYmFyUGFydHMuCisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3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wCSh3b3JraW5nIGNv
cHkpCkBAIC0xOTUsNyArMTk1LDggQEAgdm9pZCBSZW5kZXJTY3JvbGxiYXI6OnVwZGF0ZVNjcm9s
bGJhclBhcgogICAgIAogICAgIGlmIChuZXdUaGlja25lc3MgIT0gb2xkVGhpY2tuZXNzKSB7CiAg
ICAgICAgIHNldEZyYW1lUmVjdChJbnRSZWN0KHgoKSwgeSgpLCBpc0hvcml6b250YWwgPyB3aWR0
aCgpIDogbmV3VGhpY2tuZXNzLCBpc0hvcml6b250YWwgPyBuZXdUaGlja25lc3MgOiBoZWlnaHQo
KSkpOwotICAgICAgICBvd25pbmdSZW5kZXJlcigpLT5zZXRDaGlsZE5lZWRzTGF5b3V0KHRydWUp
OworICAgICAgICBpZiAoUmVuZGVyQm94KiBib3ggPSBvd25pbmdSZW5kZXJlcigpKQorICAgICAg
ICAgICAgYm94LT5zZXRDaGlsZE5lZWRzTGF5b3V0KHRydWUpOwogICAgIH0KIH0KIAo=
</data>
<flag name="review"
          id="103067"
          type_id="1"
          status="+"
          setter="jamesr"
    />
    <flag name="commit-queue"
          id="103068"
          type_id="3"
          status="+"
          setter="jamesr"
    />
          </attachment>
      

    </bug>

</bugzilla>