<?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>43314</bug_id>
          
          <creation_ts>2010-08-01 12:01:18 -0700</creation_ts>
          <short_desc>REGRESSION(r64320): crash in cti_op_get_by_val + 473 : immediately after logging in to gmail.com: (r64246-r64341)</short_desc>
          <delta_ts>2010-08-04 02:09:31 -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>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://gmail.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Joe Strzemp">maccinema</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>msaboff</cc>
    
    <cc>zherczeg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>258690</commentid>
    <comment_count>0</comment_count>
    <who name="Joe Strzemp">maccinema</who>
    <bug_when>2010-08-01 12:01:18 -0700</bug_when>
    <thetext>Running OS 10.6.4  webkit: r64341

Webkit consistently crashes in r64341 immediately after logging in to gmail.com.
No action other than logging in is required to reproduce the problem.

Crashing stack follows:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x0000000100811fd9 cti_op_get_by_val + 473
1   com.apple.JavaScriptCore      	0x00000001007d79c8 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;, JSC::JSValue*) + 728
2   com.apple.Safari              	0x0000000100000001 0x100000000 + 1
3   ???                           	0x000000011d97a960 0 + 4791445856
4   com.apple.WebCore             	0x0000000101141b60 WebCore::JSDOMWindowShell::~JSDOMWindowShell() + 0
5   ???                           	0x0000441f0f66ffff 0 + 74900193083391</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258692</commentid>
    <comment_count>1</comment_count>
    <who name="Joe Strzemp">maccinema</who>
    <bug_when>2010-08-01 12:34:11 -0700</bug_when>
    <thetext>Looks to me like the most likely suspect for this crash is changeset 64320:
&quot;Changed the handling for removing and adding elements at the front of an array&quot;
as JSC::JIT:: emit_op_put_by_val was changed.

This started failing somewhere in r64246-r64341.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258695</commentid>
    <comment_count>2</comment_count>
    <who name="Joe Strzemp">maccinema</who>
    <bug_when>2010-08-01 12:50:11 -0700</bug_when>
    <thetext>Changing to P1 as this is a reproducible crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258718</commentid>
    <comment_count>3</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2010-08-01 18:34:28 -0700</bug_when>
    <thetext>Cheers Joe, we&apos;ll investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258756</commentid>
    <comment_count>4</comment_count>
    <who name="Zoltan Herczeg">zherczeg</who>
    <bug_when>2010-08-02 02:20:45 -0700</bug_when>
    <thetext>Could you check whether this is valid for the latest revision?

As for me, r64451 works with both Qt-debug and Mac-Leopard-release. I entered gmail.com into the url bar (immediately redirects to some login page for Google), set the username and password (of a newly created dummy account), click on &quot;Sign in&quot;, and the login is succeded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259004</commentid>
    <comment_count>5</comment_count>
    <who name="Joe Strzemp">maccinema</who>
    <bug_when>2010-08-02 11:22:56 -0700</bug_when>
    <thetext>Webkit still crashes with the most recent nightly: r64451.

In order to reproduce, it might require more than just a newly created gmail account.
I have lots of gmail messages (more than a &quot;page&quot; full), Buzz, and Chat entries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259025</commentid>
    <comment_count>6</comment_count>
    <who name="Joe Strzemp">maccinema</who>
    <bug_when>2010-08-02 12:00:10 -0700</bug_when>
    <thetext>Interesting note:   gmail works in 32-bit mode for me, but crashes in 64-bit mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259817</commentid>
    <comment_count>7</comment_count>
      <attachid>63404</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2010-08-03 19:33:48 -0700</bug_when>
    <thetext>Created attachment 63404
Patch to fix the number of JSValues to memcpy when unshift&apos;ing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259830</commentid>
    <comment_count>8</comment_count>
      <attachid>63404</attachid>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2010-08-03 20:05:01 -0700</bug_when>
    <thetext>Comment on attachment 63404
Patch to fix the number of JSValues to memcpy when unshift&apos;ing

landing by hand</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259832</commentid>
    <comment_count>9</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2010-08-03 20:06:30 -0700</bug_when>
    <thetext>Transmitting file data ..
Committed revision 64620.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259901</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-04 00:02:04 -0700</bug_when>
    <thetext>Could this have a regression test?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259935</commentid>
    <comment_count>11</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2010-08-04 02:09:31 -0700</bug_when>
    <thetext>Hey Alexey,

We discussed this, and it may be tricky to trigger with any consistency in an isolated test case since the bug will only occur if malloc returns non-zerofill (used) memory (along with a bunch of other conditions).  As such we thought it better to get the fix landed immediately, but Micheal is going to try to produce a good test case.

cheers,
G.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>63404</attachid>
            <date>2010-08-03 19:33:48 -0700</date>
            <delta_ts>2010-08-03 20:05:01 -0700</delta_ts>
            <desc>Patch to fix the number of JSValues to memcpy when unshift&apos;ing</desc>
            <filename>43314.patch</filename>
            <type>text/plain</type>
            <size>1752</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDY0NTkyKQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTggQEAKKzIwMTAtMDgtMDMgIE1pY2hhZWwg
U2Fib2ZmICA8bXNhYm9mZkBhcHBsZS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgRml4IGZvciBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93
X2J1Zy5jZ2k/aWQ9NDMzMTQuICBUaGUgcHJpb3IgY29kZQorICAgICAgICB3YXMgdXNpbmcgdGhl
IHdyb25nICJsZW5ndGgiIHZhbHVlIHRvIG1vdmUgYXJyYXkgY29udGVudHMgd2hlbiBhZGRpbmcK
KyAgICAgICAgc3BhY2UgdG8gdGhlIGJlZ2lubmluZyBvZiBhbiBhcnJheSBmb3IgYW4gdW5zaGlm
dCgpIG9yIHNpbWlsYXIKKyAgICAgICAgb3BlcmF0aW9uLiAgSW5zdGV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TsKIAogICAgIG1lbWNweShuZXdTdG9yYWdlLCBzdG9yYWdlLCBzdG9yYWdlU2l6ZSgwKSk7Ci0g
ICAgbWVtY3B5KCZuZXdTdG9yYWdlLT5tX3ZlY3RvcltuZXdMZW5ndGggLSBtX3ZlY3Rvckxlbmd0
aF0sICZzdG9yYWdlLT5tX3ZlY3RvclswXSwgc3RvcmFnZS0+bV9sZW5ndGggKiBzaXplb2YoSlNW
YWx1ZSkpOworICAgIG1lbWNweSgmbmV3U3RvcmFnZS0+bV92ZWN0b3JbbmV3TGVuZ3RoIC0gbV92
ZWN0b3JMZW5ndGhdLCAmc3RvcmFnZS0+bV92ZWN0b3JbMF0sIHZlY3Rvckxlbmd0aCAqIHNpemVv
ZihKU1ZhbHVlKSk7CiAgICAgCiAgICAgbmV3U3RvcmFnZS0+bV9hbGxvY0Jhc2UgPSBuZXdCYXNl
U3RvcmFnZTsKICAgICBtX3ZlY3Rvckxlbmd0aCA9IG5ld0xlbmd0aDsK
</data>
<flag name="review"
          id="51749"
          type_id="1"
          status="+"
          setter="barraclough"
    />
    <flag name="commit-queue"
          id="51750"
          type_id="3"
          status="-"
          setter="barraclough"
    />
          </attachment>
      

    </bug>

</bugzilla>