<?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>59459</bug_id>
          
          <creation_ts>2011-04-26 08:04:35 -0700</creation_ts>
          <short_desc>fast/canvas/webgl/bad-arguments-test.html et al crashing since r84893</short_desc>
          <delta_ts>2011-04-27 17:49:22 -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>WebGL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>59487</dependson>
          <blocked>59659</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Stephen White">senorblanco</reporter>
          <assigned_to name="Adam Barth">abarth</assigned_to>
          <cc>abarth</cc>
    
    <cc>adamk</cc>
    
    <cc>darin</cc>
    
    <cc>enne</cc>
    
    <cc>jamesr</cc>
    
    <cc>jennb</cc>
    
    <cc>kbr</cc>
    
    <cc>levin</cc>
    
    <cc>zmo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>392465</commentid>
    <comment_count>0</comment_count>
    <who name="Stephen White">senorblanco</who>
    <bug_when>2011-04-26 08:04:35 -0700</bug_when>
    <thetext>Many WebGL tests are crashing; seems to have started at http://trac.webkit.org/changeset/84893/

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40ToT%20-%20chromium.org&amp;tests=fast%2Fcanvas%2Fwebgl%2Fbad-arguments-test.html%2Cfast%2Fcanvas%2Fwebgl%2Fbuffer-bind-test.html%2Cfast%2Fcanvas%2Fwebgl%2Fbuffer-data-array-buffer.html%2Cfast%2Fcanvas%2Fwebgl%2Fcanvas-test.html%2Cfast%2Fcanvas%2Fwebgl%2Fconstants.html%2Cfast%2Fcanvas%2Fwebgl%2Fcontext-attributes-alpha-depth-stencil-antialias.html%2Cfast%2Fcanvas%2Fwebgl%2Fcontext-destroyed-crash.html%2Cfast%2Fcanvas%2Fwebgl%2Fcontext-lost-restored.html%2Cfast%2Fcanvas%2Fwebgl%2Fcontext-lost.html%2Cfast%2Fcanvas%2Fwebgl%2Fcopy-tex-image-and-sub-image-2d.html%2Cfast%2Fcanvas%2Fwebgl%2Fcss-webkit-canvas-repaint.html%2Cfast%2Fcanvas%2Fwebgl%2Fcss-webkit-canvas.html%2Cfast%2Fcanvas%2Fwebgl%2Fdraw-arrays-out-of-bounds.html%2Cfast%2Fcanvas%2Fwebgl%2Fdraw-elements-out-of-bounds.html%2Cfast%2Fcanvas%2Fwebgl%2Ferror-reporting.html%2Cfast%2Fcanvas%2Fwebgl%2Fframebuffer-object-attachment.html%2Cfast%2Fcanvas%2Fwebgl%2Fframebuffer-test.html%2Cfast%2Fcanvas%2Fwebgl%2Fget-active-test.html%2Cfast%2Fcanvas%2Fwebgl%2Fgl-bind-attrib-location-test.html%2Cfast%2Fcanvas%2Fwebgl%2Fgl-enable-enum-test.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>392481</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-04-26 08:26:26 -0700</bug_when>
    <thetext>I&apos;m pretty sure the change is correct.  There are likely bugs elsewhere causing the problem.  However, we can revert and investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>392485</commentid>
    <comment_count>2</comment_count>
      <attachid>91111</attachid>
    <who name="Stephen White">senorblanco</who>
    <bug_when>2011-04-26 08:34:00 -0700</bug_when>
    <thetext>Created attachment 91111
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>392486</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-04-26 08:35:00 -0700</bug_when>
    <thetext>Something is clearly wrong with the OwnPtr cleanup in http://trac.webkit.org/changeset/84893/ . The only thing I can think of is that the assignment of OwnPtr&lt;T&gt; to OwnPtr&lt;T&gt; is broken. Looking at the OwnPtr and PassOwnPtr headers I do not see how this assignment is handled by these classes. There exists:

OwnPtr&amp; operator=(const PassOwnPtr&lt;T&gt;&amp;);

but I don&apos;t see a cast operator from OwnPtr&lt;T&gt; to PassOwnPtr&lt;T&gt;, nor a copy constructor on the PassOwnPtr class which takes OwnPtr. Therefore I think this assignment is performing a member-by-member assignment, and when the right hand side goes out of scope, the pointed-to object is deleted.

I think the code requires a .release() on the pointer on the right-hand side.

If this analysis is correct, then all of the strict OwnPtr cleanups made yesterday are broken and should be reverted. Additionally, the assignment operator &quot;OwnPtr&amp; operator=(const OwnPtr&lt;T&gt;&amp;);&quot; should explicitly be made private in OwnPtr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>392488</commentid>
    <comment_count>4</comment_count>
      <attachid>91111</attachid>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2011-04-26 08:35:25 -0700</bug_when>
    <thetext>Comment on attachment 91111
Patch

Yes, let&apos;s revert this change until we understand what&apos;s going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>392490</commentid>
    <comment_count>5</comment_count>
    <who name="Stephen White">senorblanco</who>
    <bug_when>2011-04-26 08:37:08 -0700</bug_when>
    <thetext>Committed r84916: &lt;http://trac.webkit.org/changeset/84916&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>91111</attachid>
            <date>2011-04-26 08:34:00 -0700</date>
            <delta_ts>2011-04-26 08:35:25 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-59459-20110426113359.patch</filename>
            <type>text/plain</type>
            <size>2021</size>
            <attacher name="Stephen White">senorblanco</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNv
dXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCShyZXZpc2lvbiA4NDkxNCkKKysrIFNvdXJj
ZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQg
QEAKKzIwMTEtMDQtMjYgIFN0ZXBoZW4gV2hpdGUgIDxzZW5vcmJsYW5jb0BjaHJvbWl1bS5vcmc+
CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgUGFydGlh
bCByZXZlcnQgb2YgaHR0cDovL3RyYWMud2Via2l0Lm9yZy9jaGFuZ2VzZXQvODQ4OTMsIHNpbmNl
IGl0CisgICAgICAgIHRyaWdnZXJlZCBhIGxhcmdlIG51bWJlciBvZiBsYXlvdXQgdGVzdCBmYWls
dXJlcy4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTU5
NDU5CisKKyAgICAgICAgKiBzcmMvR3JhcGhpY3NDb250ZXh0M0RDaHJvbWl1bS5jcHA6CisgICAg
ICAgIChXZWJDb3JlOjpHcmFwaGljc0NvbnRleHQzREludGVybmFsOjppbml0aWFsaXplKToKKwog
MjAxMS0wNC0yNiAgSGFucyBXZW5uYm9yZyAgPGhhbnNAY2hyb21pdW0ub3JnPgogCiAgICAgICAg
IFJldmlld2VkIGJ5IFRvbnkgR2VudGlsY29yZS4KSW5kZXg6IFNvdXJjZS9XZWJLaXQvY2hyb21p
dW0vc3JjL0dyYXBo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w6OmluaXRpYWxpCiAKICAgICBpZiAoIW1fd2Vi
Vmlld0ltcGwpCiAgICAgICAgIHJldHVybiBmYWxzZTsKLSAgICBpZiAoIXdlYkNvbnRleHQtPmlu
aXRpYWxpemUod2ViQXR0cmlidXRlcywgbV93ZWJWaWV3SW1wbCwgcmVuZGVyRGlyZWN0bHlUb0hv
c3RXaW5kb3cpKQorICAgIGlmICghd2ViQ29udGV4dC0+aW5pdGlhbGl6ZSh3ZWJBdHRyaWJ1dGVz
LCBtX3dlYlZpZXdJbXBsLCByZW5kZXJEaXJlY3RseVRvSG9zdFdpbmRvdykpIHsKKyAgICAgICAg
ZGVsZXRlIHdlYkNvbnRleHQ7CiAgICAgICAgIHJldHVybiBmYWxzZTsKLSAgICBtX2ltcGwgPSB3
ZWJDb250ZXh0OworICAgIH0KKyAgICBtX2ltcGwuc2V0KHdlYkNvbnRleHQpOwogCiAjaWYgVVNF
KEFDQ0VMRVJBVEVEX0NPTVBPU0lUSU5HKQogICAgIG1fY29tcG9zaXRpbmdMYXllciA9IFdlYkdM
TGF5ZXJDaHJvbWl1bTo6Y3JlYXRlKDApOwo=
</data>
<flag name="review"
          id="83888"
          type_id="1"
          status="+"
          setter="kbr"
    />
          </attachment>
      

    </bug>

</bugzilla>