<?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>149621</bug_id>
          
          <creation_ts>2015-09-29 03:28:33 -0700</creation_ts>
          <short_desc>REGRESSION(r190289): It made Speedometer/Full.html performance test fail</short_desc>
          <delta_ts>2018-01-17 19:11:32 -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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=149720</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>148664</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Michael Saboff">msaboff</assigned_to>
          <cc>barraclough</cc>
    
    <cc>basile_clement</cc>
    
    <cc>cdumez</cc>
    
    <cc>fpizlo</cc>
    
    <cc>keith_miller</cc>
    
    <cc>msaboff</cc>
    
    <cc>ossy</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1129201</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-29 03:28:33 -0700</bug_when>
    <thetext>https://trac.webkit.org/changeset/190289 made Speedometer/Full.html performance test fail

Running Speedometer/Full.html (151 of 151)
ERROR: CONSOLE MESSAGE: line 208: Miss the info bar? Run TodoMVC from a server to avoid a cross-origin error.
FAILED

- EFL perf bot: https://build.webkit.org/builders/EFL%20Linux%2064-bit%20Release%20WK2%20%28Perf%29/builds/6952
- Apple perf bot: https://build.webkit.org/builders/Apple%20Yosemite%20Release%20WK2%20%28Perf%29/builds/3026

The latest known good revision is r190286. ( https://build.webkit.org/builders/Apple%20Yosemite%20Release%20WK2%20%28Perf%29/builds/3025 )
The first failing revision is r190291. ( https://build.webkit.org/builders/EFL%20Linux%2064-bit%20Release%20WK2%20%28Perf%29/builds/6952 )

I tried to bisect this small interval locally, but didn&apos;t manage, because this
test crashes almost always due to a serious GC related regression - bug149341.
( Unfortunately it seems nobody is interested in fixing crashes/regressions ... )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129231</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-29 05:42:34 -0700</bug_when>
    <thetext>r190288 is the last good revision - https://build.webkit.org/builders/Apple%20Yosemite%20Release%20WK2%20%28Perf%29/builds/3031</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129337</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-09-29 12:27:26 -0700</bug_when>
    <thetext>I am able to reproduce this in both release and debug builds although the symptoms are a little different.

In a debug build, we are OSR exiting from a function due to BadType, but the real reason is that the tag registers (r14 &amp; r15 on X86-64) do not have the tag constants.  it appears that they were not properly restored after a call (likely to an FTL function).  More debugging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129416</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-09-29 14:42:10 -0700</bug_when>
    <thetext>Should this be duped to bug 149647 now (the rollout bug)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129418</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-09-29 14:44:49 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Should this be duped to bug 149647 now (the rollout bug)?

The rollout bug is closed.  I&apos;ll still work on the issue with this defect.  I&apos;ll add this defect and https://bugs.webkit.org/show_bug.cgi?id=149619 to bug 149647.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129499</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-09-29 22:38:38 -0700</bug_when>
    <thetext>A little more detail.  We are calling a function that makes a varargs tail call.  When the FTL makes a tail call and it needs to take the slow path, it doesn&apos;t properly restore the callee save registers.  Moved the restoration of callee saves to common path before deciding to take the fast or slow path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129672</commentid>
    <comment_count>6</comment_count>
      <attachid>262192</attachid>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-09-30 14:40:05 -0700</bug_when>
    <thetext>Created attachment 262192
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129689</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-09-30 15:30:19 -0700</bug_when>
    <thetext>Landed as part of change set r190370: &lt;http://trac.webkit.org/changeset/190370&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129719</commentid>
    <comment_count>8</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2015-09-30 16:28:08 -0700</bug_when>
    <thetext>Committed r190372: &lt;http://trac.webkit.org/changeset/190372&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129722</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-09-30 16:35:20 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; Committed r190372: &lt;http://trac.webkit.org/changeset/190372&gt;

This was really a change for an unrelated build fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129887</commentid>
    <comment_count>10</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-10-01 02:50:15 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Landed as part of change set r190370:
&gt; &lt;http://trac.webkit.org/changeset/190370&gt;.

Reopen, because r190370 didn&apos;t fix the orignal issue, Speedometer/Full.html
still fails everywhere. Additionally it can&apos;t be an FTL issue, because
FTL isn&apos;t enabled on Linux platforms at all.

- https://build.webkit.org/builders/Apple%20Mavericks%20Release%20WK2%20%28Perf%29/builds/5900
- https://build.webkit.org/builders/EFL%20Linux%2064-bit%20Release%20WK2%20%28Perf%29/builds/6975

To make sure if r190370 is the culprit, I started force builds on perf bots:
- r190368 - https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20%28Perf%29/builds/12
- r190370 - https://build.webkit.org/builders/Apple%20Mavericks%20Release%20WK2%20%28Perf%29/builds/5904

(r190369 is an unrelated change)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130210</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Saboff">msaboff</who>
    <bug_when>2015-10-02 05:07:25 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #7)
&gt; &gt; Landed as part of change set r190370:
&gt; &gt; &lt;http://trac.webkit.org/changeset/190370&gt;.
&gt; 
&gt; Reopen, because r190370 didn&apos;t fix the orignal issue, Speedometer/Full.html
&gt; still fails everywhere. Additionally it can&apos;t be an FTL issue, because
&gt; FTL isn&apos;t enabled on Linux platforms at all.
&gt; 
&gt; -
&gt; https://build.webkit.org/builders/
&gt; Apple%20Mavericks%20Release%20WK2%20%28Perf%29/builds/5900
&gt; -
&gt; https://build.webkit.org/builders/EFL%20Linux%2064-
&gt; bit%20Release%20WK2%20%28Perf%29/builds/6975
&gt; 
&gt; To make sure if r190370 is the culprit, I started force builds on perf bots:
&gt; - r190368 -
&gt; https://build.webkit.org/builders/
&gt; Apple%20El%20Capitan%20Release%20WK2%20%28Perf%29/builds/12
&gt; - r190370 -
&gt; https://build.webkit.org/builders/
&gt; Apple%20Mavericks%20Release%20WK2%20%28Perf%29/builds/5904
&gt; 
&gt; (r190369 is an unrelated change)

The patch that was landed solves the problem encountered on Mac builds.

Is it possible for you to run Speedometer/Full.html from a debug build in a debugger and post stack trace?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130211</commentid>
    <comment_count>12</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-10-02 05:14:36 -0700</bug_when>
    <thetext>I didn&apos;t notice crashes (in release mode), but I get this console
message locally (EFL Linux x86_64) and you can see it on EFL and 
Apple Mac performance bots too:

ERROR: CONSOLE MESSAGE: line 208: Miss the info bar? Run TodoMVC from a server to avoid a cross-origin error.

After grepping a little bit, base.js:140 in SpeedoMeter 
is responsible for printing this message to console.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130225</commentid>
    <comment_count>13</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2015-10-02 08:07:01 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; I didn&apos;t notice crashes (in release mode), but I get this console
&gt; message locally (EFL Linux x86_64) and you can see it on EFL and 
&gt; Apple Mac performance bots too:
&gt; 
&gt; ERROR: CONSOLE MESSAGE: line 208: Miss the info bar? Run TodoMVC from a
&gt; server to avoid a cross-origin error.
&gt; 
&gt; After grepping a little bit, base.js:140 in SpeedoMeter 
&gt; is responsible for printing this message to console.

Looks like:
https://bugs.webkit.org/show_bug.cgi?id=149720</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1130924</commentid>
    <comment_count>14</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-10-06 02:46:39 -0700</bug_when>
    <thetext>*** Bug 149720 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1131075</commentid>
    <comment_count>15</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-10-06 12:17:04 -0700</bug_when>
    <thetext>*** Bug 149720 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1131079</commentid>
    <comment_count>16</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-10-06 12:20:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/22995488&gt;

In order to reproduce this failure, revert http://trac.webkit.org/changeset/190535</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1131082</commentid>
    <comment_count>17</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-10-06 12:37:04 -0700</bug_when>
    <thetext>The bug is that console.info called in line 140 of base.js (there are a few copies of it inside PerformanceTests/Speedometer/) is reported erroneously at line 208.

Given:
138:    function getFile(file, callback) {
139:        if (!location.host) {
140:            return console.info(&apos;Miss the info bar? Run TodoMVC from a server to avoid a cross-origin error.&apos;);
141:        }

207:    redirect();
208:    getFile(&apos;learn.json&apos;, Learn);
209: })();

I&apos;d imagine that the console.info in &quot;getFile&quot; is tail-call optimized into the caller, and erroneously reporting the line number.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>262192</attachid>
            <date>2015-09-30 14:40:05 -0700</date>
            <delta_ts>2015-09-30 14:47:33 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>149621.patch</filename>
            <type>text/plain</type>
            <size>1699</size>
            <attacher name="Michael Saboff">msaboff</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTkwMzY3KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBA
CisyMDE1LTA5LTMwICBNaWNoYWVsIFN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xsSGVscGVycyYgaml0KQogewogICAgIG1f
Y2FsbExpbmtJbmZvID0gaml0LmNvZGVCbG9jaygpLT5hZGRDYWxsTGlua0luZm8oKTsKICAgICAK
KyAgICBpZiAoQ2FsbExpbmtJbmZvOjpjYWxsTW9kZUZvcihtX3R5cGUpID09IENhbGxNb2RlOjpU
YWlsKQorICAgICAgICBqaXQuZW1pdFJlc3RvcmVDYWxsZWVTYXZlcygpOworCiAgICAgQ0NhbGxI
ZWxwZXJzOjpKdW1wIHNsb3dQYXRoID0gaml0LmJyYW5jaFB0cldpdGhQYXRjaCgKICAgICAgICAg
Q0NhbGxIZWxwZXJzOjpOb3RFcXVhbCwgR1BSSW5mbzo6cmVnVDAsIG1fdGFyZ2V0VG9DaGVjaywK
ICAgICAgICAgQ0NhbGxIZWxwZXJzOjpUcnVzdGVkSW1tUHRyKDApKTsKQEAgLTU5LDcgKzYyLDYg
QEAgdm9pZCBKU0NhbGxCYXNlOjplbWl0KENDYWxsSGVscGVycyYgaml0KQogICAgIENDYWxsSGVs
cGVyczo6SnVtcCBkb25lOwogCiAgICAgaWYgKENhbGxMaW5rSW5mbzo6Y2FsbE1vZGVGb3IobV90
eXBlKSA9PSBDYWxsTW9kZTo6VGFpbCkgewotICAgICAgICBqaXQuZW1pdFJlc3RvcmVDYWxsZWVT
YXZlcygpOwogICAgICAgICBqaXQucHJlcGFyZUZvclRhaWxDYWxsU2xvdygpOwogICAgICAgICBt
X2Zhc3RDYWxsID0gaml0Lm5lYXJUYWlsQ2FsbCgpOwogICAgIH0gZWxzZSB7Cg==
</data>
<flag name="review"
          id="287363"
          type_id="1"
          status="+"
          setter="saam"
    />
          </attachment>
      

    </bug>

</bugzilla>