<?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>36816</bug_id>
          
          <creation_ts>2010-03-30 05:23:53 -0700</creation_ts>
          <short_desc>Uninitalised members in BytecodeGenerator and CallLinkInfo</short_desc>
          <delta_ts>2010-04-03 18:17:24 -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>PC</rep_platform>
          <op_sys>Linux</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>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Balazs Kelemen">kbalazs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>laszlo.gombos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>205957</commentid>
    <comment_count>0</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-03-30 05:23:53 -0700</bug_when>
    <thetext>Valgrind shows me 2 uninitalised value problem:

Conditional jump or move depends on uninitialised value(s)
  at 0x51BBB60: cti_vm_lazyLinkCall (JITStubs.cpp:1679)
  by 0x51B0102: JSC::TrampolineStructure::TrampolineStructure() (JITStubs.h:76)
  by 0x5173A5C: JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*, JSC::JSValue*) (JITCode.h:77)
  ...

Conditional jump or move depends on uninitialized value(s)
   at 0x513E0DF: JSC::BytecodeGenerator::createArgumentsIfNecessary() (BytecodeGenerator.cpp:1391)
   by 0x5147EE7: JSC::BytecodeGenerator::emitPushNewScope(JSC::RegisterID*, JSC::Identifier const&amp;, JSC::RegisterID*)
BytecodeGenerator.cpp:1882)
   by 0x5154205: JSC::TryNode::emitBytecode(JSC::BytecodeGenerator&amp;, JSC::RegisterID*) (NodesCodegen.cpp:1890)
   ...

These are caused by incomplete member initializer lists. I think the second could be dangerous.
Fortunately we can solve it by an easy fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205958</commentid>
    <comment_count>1</comment_count>
      <attachid>52025</attachid>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-03-30 05:34:39 -0700</bug_when>
    <thetext>Created attachment 52025
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206093</commentid>
    <comment_count>2</comment_count>
      <attachid>52025</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-03-30 11:52:37 -0700</bug_when>
    <thetext>Comment on attachment 52025
proposed patch

Why does this need to be changed? Is there a symptom to having these uninitialized? Are they ever used uninitialized?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206218</commentid>
    <comment_count>3</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-03-30 15:40:57 -0700</bug_when>
    <thetext>The backtraces above shows exactly where are they used uninitialized.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208314</commentid>
    <comment_count>4</comment_count>
      <attachid>52025</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2010-04-03 18:04:00 -0700</bug_when>
    <thetext>Comment on attachment 52025
proposed patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208315</commentid>
    <comment_count>5</comment_count>
      <attachid>52025</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-03 18:17:19 -0700</bug_when>
    <thetext>Comment on attachment 52025
proposed patch

Clearing flags on attachment: 52025

Committed r57054: &lt;http://trac.webkit.org/changeset/57054&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208316</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-04-03 18:17:24 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52025</attachid>
            <date>2010-03-30 05:34:39 -0700</date>
            <delta_ts>2010-04-03 18:17:19 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>uninitalised.diff</filename>
            <type>text/plain</type>
            <size>1762</size>
            <attacher name="Balazs Kelemen">kbalazs</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZyBiL0phdmFTY3JpcHRDb3JlL0No
YW5nZUxvZwppbmRleCBhMzliYWE4Li5hZDE1NDUyIDEwMDY0NAotLS0gYS9KYXZhU2NyaXB0Q29y
ZS9DaGFuZ2VMb2cKKysrIGIvSmF2YVNjcmlwdENvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYg
QEAKKzIwMTAtMDMtMzAgIEJhbGF6cyBLZWxlbWVuICA8a2JAaW5mLnUtc3plZ2VkLmh1PgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEZpeCB1bmluaXRh
bGlzZWQgbWVtYmVycyBpbiBDYWxsTGlua0luZm8gYW5kIEJ5dGVjb2RlR2VuZXJhdG9yLgorCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0zNjgxNgorCisg
ICAgICAgICogYnl0ZWNvZGUvQ29kZUJsb2NrLmNwcDoKKyAgICAgICAgKEpTQzo6Q29kZUJsb2Nr
OjpDb2RlQmxvY2spOgorICAgICAg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VNjcmlwdENvcmUvYnl0ZWNvZGUvQ29kZUJsb2NrLmgKaW5k
ZXggZDkyZGM5ZC4uZmIwNmYzNSAxMDA2NDQKLS0tIGEvSmF2YVNjcmlwdENvcmUvYnl0ZWNvZGUv
Q29kZUJsb2NrLmgKKysrIGIvSmF2YVNjcmlwdENvcmUvYnl0ZWNvZGUvQ29kZUJsb2NrLmgKQEAg
LTEwMiw5ICsxMDIsMTEgQEAgbmFtZXNwYWNlIEpTQyB7CiAgICAgc3RydWN0IENhbGxMaW5rSW5m
byB7CiAgICAgICAgIENhbGxMaW5rSW5mbygpCiAgICAgICAgICAgICA6IGNhbGxlZSgwKQorICAg
ICAgICAgICAgLCBwb3NpdGlvbigwKQorICAgICAgICAgICAgLCBoYXNTZWVuU2hvdWxkUmVwYXRj
aCgwKQogICAgICAgICB7CiAgICAgICAgIH0KLSAgICAKKwogICAgICAgICB1bnNpZ25lZCBieXRl
Y29kZUluZGV4OwogICAgICAgICBDb2RlTG9jYXRpb25OZWFyQ2FsbCBjYWxsUmV0dXJuTG9jYXRp
b247CiAgICAgICAgIENvZGVMb2NhdGlvbkRhdGFMYWJlbFB0ciBob3RQYXRoQmVnaW47Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>