<?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>81374</bug_id>
          
          <creation_ts>2012-03-16 11:05:51 -0700</creation_ts>
          <short_desc>remove-body-during-body-replacement2.html is triggering crashes on all platforms</short_desc>
          <delta_ts>2012-03-21 10:34:40 -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>WebCore Misc.</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>http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&amp;tests=fast%2Fdom%2Fremove-body-during-body-replacement2.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Levi Weintraub">leviw</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>haraken</cc>
    
    <cc>inferno</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>580691</commentid>
    <comment_count>0</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-03-16 11:05:51 -0700</bug_when>
    <thetext>The backtraces all seem pretty different to keep things interesting. I tried a run with cluster-fuzz but it announced it un-reproducible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580725</commentid>
    <comment_count>1</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2012-03-16 11:32:48 -0700</bug_when>
    <thetext>Tried with libgmalloc (MAC) with --repeat-each 100, the testcases does not crash. Sometimes, it is the case, that the previous test that run before it, is causing the crash. Also, tried with ClusterFuzz on Linux with DRT, it didnt reproduce.

Here is the crash stack from the url above

	base::debug::StackTrace::StackTrace() [0x82ad2ac]
	base::(anonymous namespace)::StackDumpSignalHandler() [0x8293e1d]
	0xb7799400
	WebCore::Frame::addDestructionObserver() [0x8adc56c]
	WebCore::FrameDestructionObserver::observeFrame() [0x8ade946]
	WebCore::DOMWindow::DOMWindow() [0x8ac02f5]
	WebCore::Frame::domWindow() [0x8addc72]
	WebCore::DOMWindowProperty::~DOMWindowProperty() [0x8ac5fc9]
	WebCore::DOMWindowNotifications::~DOMWindowNotifications() [0x960d994]
	WebCore::DOMWindow::~DOMWindow() [0x8ac3913]
	WebCore::V8DOMWindow::derefObject() [0x8e44465]
	WebCore::DOMData::derefObject() [0x8b52cb2]
	WebCore::DOMData::handleWeakObject&lt;&gt;() [0x8b52f99]
	WebCore::DOMDataStore::weakDOMObjectCallback() [0x8b53020]
	v8::internal::GlobalHandles::PostGarbageCollectionProcessing() [0x842815b]
None</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580775</commentid>
    <comment_count>2</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-03-16 12:14:03 -0700</bug_when>
    <thetext>Here&apos;s a few of the tests leading up to one of the crashes. I should note that  fast/dom/prototype-inheritance-2.html crashes on my machine (Mac 10.6 Debug) every other run when ran independently. It doesn&apos;t have a problem on cluster-fuzz though... even with location.reload()

 fast/dom/null-document-location-assign-crash.html passed
 fast/dom/null-document-location-href-put-crash.html passed
 fast/dom/null-document-location-put-crash.html passed
 fast/dom/null-document-location-replace-crash.html passed
 fast/dom/null-document-window-open-crash.html passed
 fast/dom/null-page-show-modal-dialog-crash.html passed
 fast/dom/objc-big-method-name.html passed
 fast/dom/object-plugin-hides-properties.html passed
 fast/dom/offset-parent-positioned-and-inline.html passed
 fast/dom/offset-position-writing-modes.html passed
 fast/dom/onerror-img.html passed
 fast/dom/onload-open.html passed
 fast/dom/option-properties.html passed
 fast/dom/option-text-mutation-crash.html passed
 fast/dom/outerText-no-element.html passed
 fast/dom/outerText.html passed
 fast/dom/ping-attribute-dom-binding.html passed
 fast/dom/plugin-attributes-enumeration.html passed
 fast/dom/prefixed-image-tag.xhtml passed
 fast/dom/processing-instruction-appendChild-exceptions.xhtml passed
 fast/dom/prototype-chain.html passed
 fast/dom/prototype-inheritance-2.html failed: Text diff mismatch
 fast/dom/prototype-inheritance.html passed
 fast/dom/prototype-property.html passed
 fast/dom/prototypes.html passed
 fast/dom/register-protocol-handler.html passed
 fast/dom/remove-body-during-body-replacement2.html crashed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580844</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-16 13:07:12 -0700</bug_when>
    <thetext>+haraken, who worked on DOMWindowNotifications recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580849</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-16 13:11:35 -0700</bug_when>
    <thetext>I see the problem.  My fault.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580859</commentid>
    <comment_count>5</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-03-16 13:14:29 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; I see the problem.  My fault.

That first sentence is music to my ears :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580862</commentid>
    <comment_count>6</comment_count>
    <who name="Abhishek Arya">inferno</who>
    <bug_when>2012-03-16 13:15:43 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; I see the problem.  My fault.
&gt; 
&gt; That first sentence is music to my ears :)

(In reply to comment #4)
&gt; I see the problem.  My fault.

Does the bug need security flags ? is it a use after free ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580864</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-16 13:16:24 -0700</bug_when>
    <thetext>&gt; Does the bug need security flags ? is it a use after free ?

I&apos;m not sure yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580876</commentid>
    <comment_count>8</comment_count>
      <attachid>132358</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-16 13:26:57 -0700</bug_when>
    <thetext>Created attachment 132358
needs changelog</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580877</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-16 13:27:39 -0700</bug_when>
    <thetext>Yes.  It&apos;s a use-after-free, but the bug was introduced only 8 hours ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580923</commentid>
    <comment_count>10</comment_count>
      <attachid>132370</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-16 13:54:26 -0700</bug_when>
    <thetext>Created attachment 132370
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581089</commentid>
    <comment_count>11</comment_count>
      <attachid>132370</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-16 16:41:38 -0700</bug_when>
    <thetext>Comment on attachment 132370
Patch

Clearing flags on attachment: 132370

Committed r111086: &lt;http://trac.webkit.org/changeset/111086&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581090</commentid>
    <comment_count>12</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-16 16:41:43 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581516</commentid>
    <comment_count>13</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-03-18 16:40:20 -0700</bug_when>
    <thetext>Reverted r111086 for reason:

Chromium crash

Committed r111140: &lt;http://trac.webkit.org/changeset/111140&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581674</commentid>
    <comment_count>14</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-19 00:34:04 -0700</bug_when>
    <thetext>&gt; Chromium crash

What crashes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581675</commentid>
    <comment_count>15</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-19 00:34:38 -0700</bug_when>
    <thetext>BTW, this patch is &quot;correct&quot; in the sense that we need to call the base class here.  There might be other things we need to change if this causes other crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581676</commentid>
    <comment_count>16</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-03-19 00:36:35 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt; BTW, this patch is &quot;correct&quot; in the sense that we need to call the base class here.  There might be other things we need to change if this causes other crashes.

Adam: This one https://mail.google.com/mail/u/0/?ui=2&amp;shva=1#inbox/1362401bf41e9c9e

I could not fix the crash in hours, and since it is marked as a release-block bug, I rolled out suspicious patches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581677</commentid>
    <comment_count>17</comment_count>
    <who name="Levi Weintraub">leviw</who>
    <bug_when>2012-03-19 00:37:56 -0700</bug_when>
    <thetext>(In reply to comment #16)
&gt; (In reply to comment #15)
&gt; &gt; BTW, this patch is &quot;correct&quot; in the sense that we need to call the base class here.  There might be other things we need to change if this causes other crashes.
&gt; 
&gt; Adam: This one https://mail.google.com/mail/u/0/?ui=2&amp;shva=1#inbox/1362401bf41e9c9e
&gt; 
&gt; I could not fix the crash in hours, and since it is marked as a release-block bug, I rolled out suspicious patches.

Can you provide a link that isn&apos;t to an email in your gmail ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581678</commentid>
    <comment_count>18</comment_count>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-03-19 00:39:48 -0700</bug_when>
    <thetext>(In reply to comment #17)
&gt; Can you provide a link that isn&apos;t to an email in your gmail ;)

Oops, this one:)
http://code.google.com/p/chromium/issues/detail?id=118796</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>582727</commentid>
    <comment_count>19</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-03-19 21:25:00 -0700</bug_when>
    <thetext>This should be fixed now since we rolled out the cause of the problem.  Please re-open if that&apos;s not correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>584309</commentid>
    <comment_count>20</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-03-21 10:34:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/11091337&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>132358</attachid>
            <date>2012-03-16 13:26:57 -0700</date>
            <delta_ts>2012-03-16 13:54:20 -0700</delta_ts>
            <desc>needs changelog</desc>
            <filename>bug-81374-20120316132656.patch</filename>
            <type>text/plain</type>
            <size>788</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL25vdGlmaWNhdGlvbnMvRE9NV2luZG93Tm90aWZpY2F0aW9u
cy5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PQotLS0gU291cmNlL1dlYkNvcmUvbm90aWZpY2F0aW9ucy9ET01XaW5k
b3dOb3RpZmljYXRpb25zLmNwcAkocmV2aXNpb24gMTExMDUwKQorKysgU291cmNlL1dlYkNvcmUv
bm90aWZpY2F0aW9ucy9ET01XaW5kb3dOb3RpZmljYXRpb25zLmNwcAkod29ya2luZyBjb3B5KQpA
QCAtODcsMTAgKzg3LDEzIEBAIE5vdGlmaWNhdGlvbkNlbnRlciogRE9NV2luZG93Tm90aWZpY2F0
aW8KIAogdm9pZCBET01XaW5kb3dOb3RpZmljYXRpb25zOjpkaXNjb25uZWN0RnJhbWUoKQogewor
ICAgIC8vIEZJWE1FOiBXZSBzaG91bGQgc3VwcG9ydCBrZWVwIHRoZSBvbGQgbV9ub3RpZmljYXRp
b25DZW50ZXIgc28gd2UgY2FuIHN1cHBvcnQgcmVjb25uZWN0RnJhbWUoKS4KKyAgICAvLyBTZWUg
RE9NV2luZG93SW5kZXhlZERhdGFiYXNlOjpkaXNjb25uZWN0RnJhbWUoKSBmb3IgYW4gZXhhbXBs
ZSBvZiBob3cgdG8gZG8gdGhpcy4KICAgICBpZiAobV9ub3RpZmljYXRpb25DZW50ZXIpIHsKICAg
ICAgICAgbV9ub3RpZmljYXRpb25DZW50ZXItPmRpc2Nvbm5lY3RGcmFtZSgpOwogICAgICAgICBt
X25vdGlmaWNhdGlvbkNlbnRlciA9IDA7CiAgICAgfQorICAgIERPTVdpbmRvd1Byb3BlcnR5Ojpk
aXNjb25uZWN0RnJhbWUoKTsKIH0KIAogfSAvLyBuYW1lc3BhY2UgV2ViQ29yZQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>132370</attachid>
            <date>2012-03-16 13:54:26 -0700</date>
            <delta_ts>2012-03-16 16:41:38 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-81374-20120316135424.patch</filename>
            <type>text/plain</type>
            <size>1678</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDExMTA2MCkKKysrI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wcAo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBT
b3VyY2UvV2ViQ29yZS9ub3RpZmljYXRpb25zL0RPTVdpbmRvd05vdGlmaWNhdGlvbnMuY3BwCShy
ZXZpc2lvbiAxMTEwNTApCisrKyBTb3VyY2UvV2ViQ29yZS9ub3RpZmljYXRpb25zL0RPTVdpbmRv
d05vdGlmaWNhdGlvbnMuY3BwCSh3b3JraW5nIGNvcHkpCkBAIC04NywxMCArODcsMTMgQEAgTm90
aWZpY2F0aW9uQ2VudGVyKiBET01XaW5kb3dOb3RpZmljYXRpbwogCiB2b2lkIERPTVdpbmRvd05v
dGlmaWNhdGlvbnM6OmRpc2Nvbm5lY3RGcmFtZSgpCiB7CisgICAgLy8gRklYTUU6IFdlIHNob3Vs
ZCBzdXBwb3J0IGtlZXAgdGhlIG9sZCBtX25vdGlmaWNhdGlvbkNlbnRlciBzbyB3ZSBjYW4gc3Vw
cG9ydCByZWNvbm5lY3RGcmFtZSgpLgorICAgIC8vIFNlZSBET01XaW5kb3dJbmRleGVkRGF0YWJh
c2U6OmRpc2Nvbm5lY3RGcmFtZSgpIGZvciBhbiBleGFtcGxlIG9mIGhvdyB0byBkbyB0aGlzLgog
ICAgIGlmIChtX25vdGlmaWNhdGlvbkNlbnRlcikgewogICAgICAgICBtX25vdGlmaWNhdGlvbkNl
bnRlci0+ZGlzY29ubmVjdEZyYW1lKCk7CiAgICAgICAgIG1fbm90aWZpY2F0aW9uQ2VudGVyID0g
MDsKICAgICB9CisgICAgRE9NV2luZG93UHJvcGVydHk6OmRpc2Nvbm5lY3RGcmFtZSgpOwogfQog
CiB9IC8vIG5hbWVzcGFjZSBXZWJDb3JlCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>