<?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>52156</bug_id>
          
          <creation_ts>2011-01-10 11:01:22 -0800</creation_ts>
          <short_desc>REGRESSION (r75289): Assertion failure in JSC::Heap::destroy() when running JS tests</short_desc>
          <delta_ts>2011-01-10 12:17:28 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://build.webkit.org/builders/Windows%20XP%20Debug%20%28Tests%29/builds/24054/steps/jscore-test/logs/stdio</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>ggaren</cc>
    
    <cc>msaboff</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>331714</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 11:01:22 -0800</bug_when>
    <thetext>To reproduce:

1. run-javascriptcore-tests

Three tests will hit an assertion. The tests are:

	js1_5/Regress/regress-152646.js
	js1_5/Regress/regress-192414.js
	js1_5/Regress/regress-96526-002.js

The assertion is in Heap::destroy. It is:

    ASSERT(!m_globalData-&gt;dynamicGlobalObject);

m_globalData-&gt;dynamicGlobalObject seems always to be 0x01500000.

Here&apos;s the backtrace:

&gt;	JavaScriptCore.dll!JSC::Heap::destroy()  Line 90 + 0x28 bytes	C++
 	jsc.exe!cleanupGlobalData(JSC::JSGlobalData * globalData=0x00f2be88)  Line 364	C++
 	jsc.exe!main(int argc=6, char * * argv=0x00cfed00)  Line 356 + 0x9 bytes	C++
 	jsc.exe!__tmainCRTStartup()  Line 597 + 0x17 bytes	C
 	kernel32.dll!_BaseProcessStart@4()  + 0x23 bytes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331715</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 11:01:38 -0800</bug_when>
    <thetext>Is there any way to skip JS tests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331716</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 11:02:11 -0800</bug_when>
    <thetext>&lt;rdar://problem/8842022&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331717</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 11:03:32 -0800</bug_when>
    <thetext>Looks like run-javascriptcore-tests has support for skipping tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331721</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 11:11:12 -0800</bug_when>
    <thetext>I skipped these tests in r75392.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331722</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 11:12:03 -0800</bug_when>
    <thetext>Maybe this was caused by r75289?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331735</commentid>
    <comment_count>6</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2011-01-10 11:19:09 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Maybe this was caused by r75289?

I would guess so, rather than disabling those tests, i think it would be better to rollout that patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331746</commentid>
    <comment_count>7</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-01-10 11:24:03 -0800</bug_when>
    <thetext>Yes, please roll out the offending patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331747</commentid>
    <comment_count>8</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2011-01-10 11:24:23 -0800</bug_when>
    <thetext>(...and re-enable the tests.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331804</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 12:03:26 -0800</bug_when>
    <thetext>I don&apos;t know what the offending patch is yet. I&apos;m testing r75289 now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331811</commentid>
    <comment_count>10</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 12:06:29 -0800</bug_when>
    <thetext>Rolling out r75289 fixes the assertions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331815</commentid>
    <comment_count>11</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2011-01-10 12:08:25 -0800</bug_when>
    <thetext>:-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>331829</commentid>
    <comment_count>12</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-01-10 12:17:09 -0800</bug_when>
    <thetext>Rolled out r75289 and r75392. I commented in bug 26276.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>