<?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>153695</bug_id>
          
          <creation_ts>2016-01-29 20:17:51 -0800</creation_ts>
          <short_desc>REGRESSION(r195661): [GTK] Scrollbar tests crashing after overlay scrollbar groundwork</short_desc>
          <delta_ts>2016-03-05 05:24:37 -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>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=153936</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=155048</see_also>
    
    <see_also>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876</see_also>
          <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>cgarcia</cc>
    
    <cc>darin</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1160392</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-29 20:17:51 -0800</bug_when>
    <thetext>fast/repaint/fixed-move-after-scroll.html has been crashing flakily beginning with r195672-r195673. These two commits are obviously not the cause of the crash, but they come shortly after several commits implementing the groundwork for overlay scrollbars landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1160394</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-29 20:31:07 -0800</bug_when>
    <thetext>And fast/scrolling/scroll-position-on-reload-rtl.html has been fairly reliably since r195660-r195661. r195660 looks like a more likely culprit so I&apos;ll pick that for the bug title.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1160395</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-01-29 20:31:26 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; And fast/scrolling/scroll-position-on-reload-rtl.html has been fairly
&gt; reliably since r195660-r195661.

fairly reliably crashing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162570</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-02-05 20:39:27 -0800</bug_when>
    <thetext>Also scrollbars/scrollbar-initial-position.html (flaky since r195660-r195661).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162578</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-05 23:38:21 -0800</bug_when>
    <thetext>When reporting this kind of failures it&apos;s very useful to include links to the bots results, especially if they are flaky. That way I know if it&apos;s an assert only happening in debug or if it also fails in release, and I can focus on fixing the bug instead of figuring out how to make it crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162590</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-06 03:16:32 -0800</bug_when>
    <thetext>*** Bug 153936 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162591</commentid>
    <comment_count>6</comment_count>
      <attachid>270792</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-06 03:20:02 -0800</bug_when>
    <thetext>Created attachment 270792
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162603</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-02-06 07:37:38 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; When reporting this kind of failures it&apos;s very useful to include links to
&gt; the bots results, especially if they are flaky. That way I know if it&apos;s an
&gt; assert only happening in debug or if it also fails in release, and I can
&gt; focus on fixing the bug instead of figuring out how to make it crash.

OK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162604</commentid>
    <comment_count>8</comment_count>
      <attachid>270792</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-02-06 07:43:18 -0800</bug_when>
    <thetext>Comment on attachment 270792
Patch

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

Also update the test expectations?

&gt; Source/WebCore/platform/ScrollAnimation.h:38
&gt; +    virtual ~ScrollAnimation() { };

Ugh, real shame this was not caught by -Wdelete-non-virtual-dtor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162716</commentid>
    <comment_count>9</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-07 01:43:51 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; Comment on attachment 270792 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=270792&amp;action=review
&gt; 
&gt; Also update the test expectations?

Ah, did you also update the test expectations? It&apos;s also very useful to add a comment to the bug when you do so, saying, expectations update in r123456.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162720</commentid>
    <comment_count>10</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2016-02-07 02:09:42 -0800</bug_when>
    <thetext>Committed r196238: &lt;http://trac.webkit.org/changeset/196238&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162722</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-02-07 07:18:51 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; Ah, did you also update the test expectations? It&apos;s also very useful to add
&gt; a comment to the bug when you do so, saying, expectations update in r123456.

OK, I&apos;ll try to start doing this. (I always update expectations when filing bugs against layout tests.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171083</commentid>
    <comment_count>12</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2016-03-04 15:32:16 -0800</bug_when>
    <thetext>I’d like to understand where this was being deleted in a polymorphic way, but with something other than delete. If it was being deleted with delete, then -Wdelete-non-virtual-dtor should have warned us about this mistake.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171114</commentid>
    <comment_count>13</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-03-04 17:02:18 -0800</bug_when>
    <thetext>I think through std::unique_ptr. A quick test:

#include &lt;memory&gt;

class A
{
public:
  virtual void something() { }
};

class B : public A
{
};

This code triggers -Wdelete-non-virtual-dtor in both GCC and Clang:

int main()
{
  A* a = new B;
  delete a;
}

But this code triggers only -Wnon-virtual-dtor:

int main()
{
  auto a = std::make_unique&lt;B&gt;();
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171115</commentid>
    <comment_count>14</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-03-04 17:04:46 -0800</bug_when>
    <thetext>Just found https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58876

&quot;&quot;&quot;This is because warnings are suppressed by default in system headers, and the undefined delete operation occurs in a system header.  You get the warning if you use -Wsystem-headers&quot;&quot;&quot;

(Of course we don&apos;t want to do that though, we&apos;d be spammed by tons of warnings we can&apos;t control.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1171206</commentid>
    <comment_count>15</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2016-03-05 05:24:37 -0800</bug_when>
    <thetext>(In reply to comment #13)
&gt; But this code triggers only -Wnon-virtual-dtor:
&gt; 
&gt; int main()
&gt; {
&gt;   auto a = std::make_unique&lt;B&gt;();
&gt; }

Well that&apos;s a bad example because that&apos;s not polymorphic, the right example is:

int main()
{
  auto a = std::unique_ptr&lt;A&gt;(new B);
}

(It still triggers only -Wnon-virtual-dtor, so my point is sound.)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>270792</attachid>
            <date>2016-02-06 03:20:02 -0800</date>
            <delta_ts>2016-02-06 07:43:18 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>wcore-scroll-animation-crash.diff</filename>
            <type>text/plain</type>
            <size>1371</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCA3Yzc5YzVlLi5lNTBiMDVkIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcg
QEAKKzIwMTYtMDItMDYgIENhcmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29t
PgorCisgICAgICAgIFJFR1JFU1NJT04ocjE5NTY2MSk6IFtHVEtdIFNjcm9sbGJhciB0ZXN0cyBj
cmFzaGluZyBhZnRlciBvdmVybGF5IHNjcm9sbGJhciBncm91bmR3b3JrCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNTM2OTUKKworICAgICAgICBSZXZp
ZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBUaGUgcHJvYmxlbSBpcyB0aGF0IFNj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LCBTY3JvbGxHcmFudWxh
cml0eSwgZmxvYXQgc3RlcCwgZmxvYXQgbXVsdGlwbGllcikgPSAwOwogICAgIHZpcnR1YWwgdm9p
ZCBzdG9wKCkgPSAwOwogICAgIHZpcnR1YWwgdm9pZCB1cGRhdGVWaXNpYmxlTGVuZ3RocygpID0g
MDsK
</data>
<flag name="review"
          id="295632"
          type_id="1"
          status="+"
          setter="mcatanzaro"
    />
          </attachment>
      

    </bug>

</bugzilla>