<?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>66845</bug_id>
          
          <creation_ts>2011-08-24 02:20:09 -0700</creation_ts>
          <short_desc>ErrorInstance::create sometimes has two heap object constructions in flight at once</short_desc>
          <delta_ts>2011-08-24 10:44:53 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Filip Pizlo">fpizlo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>oliver</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>456028</commentid>
    <comment_count>0</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-08-24 02:20:09 -0700</bug_when>
    <thetext>Under the newly refactored heap object creation scheme, only one heap object can have its C++ constructor in flight at a time.  This ensures that a GC cannot be fired while some object has yet to have its initial state (i.e. vtable) set.  However, the ErrorInstance::create(ExecState*, Structure*, JSValue) constructor violates this constraint by calling toString() in the argument list to a placement new call.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>456029</commentid>
    <comment_count>1</comment_count>
      <attachid>104974</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-08-24 02:24:47 -0700</bug_when>
    <thetext>Created attachment 104974
the patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>456042</commentid>
    <comment_count>2</comment_count>
      <attachid>104974</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2011-08-24 03:37:08 -0700</bug_when>
    <thetext>Comment on attachment 104974
the patch

Tests pass, ready to commit if others concur.  Interestingly, this failure is already covered by our run-javascriptcore-tests, but not in LayoutTests.

Should we port the relevant test into LayoutTests, or maybe we should have run-webkit-tests trigger run-javascriptcore-tests automatically?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>456144</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-08-24 09:43:43 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; maybe we should have run-webkit-tests trigger run-javascriptcore-tests automatically?

This is the right long term direction. But ideally we want this to run tests and show failures the same way run-webkit-tests does, not an entirely different way. The internal machinery doesn’t have to be identical, but the format of results should be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>456191</commentid>
    <comment_count>4</comment_count>
      <attachid>104974</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-24 10:44:49 -0700</bug_when>
    <thetext>Comment on attachment 104974
the patch

Clearing flags on attachment: 104974

Committed r93710: &lt;http://trac.webkit.org/changeset/93710&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>456192</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-24 10:44:53 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>104974</attachid>
            <date>2011-08-24 02:24:47 -0700</date>
            <delta_ts>2011-08-24 10:44:49 -0700</delta_ts>
            <desc>the patch</desc>
            <filename>errorinstance_patch_1.diff</filename>
            <type>text/plain</type>
            <size>1524</size>
            <attacher name="Filip Pizlo">fpizlo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gOTM2OTYpCisrKyBTb3VyY2Uv
SmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAK
KzIwMTEtMDgtMjQgIEZpbGlwIFBpemxvICA8ZnBpemxvQGFwcGxlLmNvbT4KKworICAgICAgICBF
cnJvckluc3RhbmNlOjpjcmVhdGUgc29tZXRpbWVzIGhhcyB0d28gaGVhcCBvYmplY3QgY29uc3Ry
dWN0aW9ucworICAgICAgICBpbiBmbGlnaHQgYXQgb25jZQorICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjY4NDUKKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKyAgICAgICAgCisgICAgICAgIFRoZSBmaXggaXMgc2ltcGxlIHNpbmNl
IHRoZXJlIGlzIGFscmVhZHkgYSBzZWNvbmQgY3JlYXRlKCkgbWV0aG9kCisgICAgICAgIHRoYXQg
dGFrZXMgYSBVU3RyaW5nLgorCisgICAgICAgICogcnVudGltZS9FcnJvckluc3RhbmNlLmNwcDoK
KyAgICAgICAgKEpTQzo6RXJyb3JJbnN0YW5jZTo6Y3JlYXRlKToKKwogMjAxMS0wOC0yMyAgTWFy
ayBIYWhuZW5iZXJnICA8bWhhaG5lbmJlcmdAYXBwbGUuY29tPgogCiAgICAgICAgIEFkZCBjaGVj
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