<?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>22042</bug_id>
          
          <creation_ts>2008-11-02 13:02:11 -0800</creation_ts>
          <short_desc>REGRESSION(r38066): ASSERTION FAILED: source in CodeBlock</short_desc>
          <delta_ts>2008-11-03 10:26:47 -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>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>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Lilek">dev+webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97432</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-11-02 13:02:11 -0800</bug_when>
    <thetext>&lt;http://trac.webkit.org/changeset/38066&gt; caused an assertion failure on any page that has JavaScript.

ASSERTION FAILED: source
(/Users/matt/Code/WebKit/JavaScriptCore/VM/CodeBlock.h:264 JSC::CodeBlock::CodeBlock(JSC::ScopeNode*, JSC::CodeType, WTF::PassRefPtr&lt;JSC::SourceProvider&gt;, unsigned int))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97433</commentid>
    <comment_count>1</comment_count>
      <attachid>24854</attachid>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-11-02 13:04:20 -0800</bug_when>
    <thetext>Created attachment 24854
Fix

My C++-foo isn&apos;t strong enough to know exactly why this was wrong, but this stops the ASSERT.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97434</commentid>
    <comment_count>2</comment_count>
      <attachid>24854</attachid>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-11-02 13:11:32 -0800</bug_when>
    <thetext>Comment on attachment 24854
Fix

r=me if you change the parameters on the other two constructors in that file to match.

This is a pretty bizarre thing. I wish I knew why it happened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97435</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-11-02 13:15:48 -0800</bug_when>
    <thetext>Committed revision 38068.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97473</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2008-11-03 10:23:56 -0800</bug_when>
    <thetext>Doesn&apos;t this mean that all the name changes in http://trac.webkit.org/changeset/38066 are invalid?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97475</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-11-03 10:26:47 -0800</bug_when>
    <thetext>The name changes are valid. The issue was that after the initializer

, source(source)

the PassRefPtr source was getting zeroed out, causing the assertion that source is nonzero to fail, where source is scoped to the parameter rather than the member variable. The assertion could also have been changed to ASSERT(this-&gt;source), and I might go back and do that.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>24854</attachid>
            <date>2008-11-02 13:04:20 -0800</date>
            <delta_ts>2008-11-02 13:11:32 -0800</delta_ts>
            <desc>Fix</desc>
            <filename>FOO</filename>
            <type>text/plain</type>
            <size>1447</size>
            <attacher name="Matt Lilek">dev+webkit</attacher>
            
              <data encoding="base64">SW5kZXg6IFZNL0NvZGVCbG9jay5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFZNL0NvZGVCbG9jay5oCShyZXZp
c2lvbiAzODA2NikKKysrIFZNL0NvZGVCbG9jay5oCSh3b3JraW5nIGNvcHkpCkBAIC0yNDUsNyAr
MjQ1LDcgQEAKICAgICB9OwogCiAgICAgc3RydWN0IENvZGVCbG9jayB7Ci0gICAgICAgIENvZGVC
bG9jayhTY29wZU5vZGUqIG93bmVyTm9kZSwgQ29kZVR5cGUgY29kZVR5cGUsIFBhc3NSZWZQdHI8
U291cmNlUHJvdmlkZXI+IHNvdXJjZSwgdW5zaWduZWQgc291cmNlT2Zmc2V0KQorICAgICAgICBD
b2RlQmxvY2soU2NvcGVOb2RlKiBvd25lck5vZGUsIENvZGVUeXBlIGNvZGVUeXBlLCBQYXNzUmVm
UHRyPFNvdXJjZVByb3ZpZGVyPiBzb3VyY2VQcm92aWRlciwgdW5zaWduZWQgc291cmNlT2Zmc2V0
KQogICAgICAgICAgICAgOiBvd25lck5vZGUob3duZXJOb2RlKQogICAgICAgICAgICAgLCBnbG9i
YWxEYXRhKDApCiAjaWYgRU5BQkxFKENUSSkKQEAgLTI1OCw3ICsyNTgsNyBAQAogICAgICAgICAg
ICAgLCBuZWVkc0Z1bGxTY29wZUNoYWluKG93bmVyTm9kZS0+bmVlZHNBY3RpdmF0aW9uKCkpCiAg
ICAgICAgICAgICAsIHVzZXNFdmFsKG93bmVyTm9kZS0+dXNlc0V2YWwoKSkKICAgICAgICAgICAg
ICwgY29kZVR5cGUoY29kZVR5cGUpCi0gICAgICAgICAgICAsIHNvdXJjZShzb3VyY2UpCisgICAg
ICAgICAgICAsIHNvdXJjZShzb3VyY2VQcm92aWRlcikKICAgICAgICAgICAgICwgc291cmNlT2Zm
c2V0KHNvdXJjZU9mZnNldCkKICAgICAgICAgewogICAgICAgICAgICAgQVNTRVJUKHNvdXJjZSk7
CkluZGV4OiBDaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gQ2hhbmdlTG9nCShyZXZpc2lvbiAzODA2
NykKKysrIENoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDA4LTEx
LTAyICBNYXR0IExpbGVrICA8d2Via2l0QG1hdHRsaWxlay5jb20+CisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQnVnIDIyMDQyOiBSRUdSRVNTSU9OKHIz
ODA2Nik6IEFTU0VSVElPTiBGQUlMRUQ6IHNvdXJjZSBpbiBDb2RlQmxvY2sKKyAgICAgICAgPGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMjA0Mj4KKworICAgICAgICBS
ZW5hbWUgcGFyYW1ldGVyIG5hbWUgdG8gYXZvaWQgQVNTRVJULgorCisgICAgICAgICogVk0vQ29k
ZUJsb2NrLmg6CisgICAgICAgIChKU0M6OkNvZGVCbG9jazo6Q29kZUJsb2NrKToKKwogMjAwOC0x
MS0wMiAgQ2FtZXJvbiBad2FyaWNoICA8endhcmljaEBhcHBsZS5jb20+CiAKICAgICAgICAgUmV2
aWV3ZWQgYnkgT2xpdmVyIEh1bnQuCg==
</data>
<flag name="review"
          id="11382"
          type_id="1"
          status="+"
          setter="zwarich"
    />
          </attachment>
      

    </bug>

</bugzilla>