<?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>180306</bug_id>
          
          <creation_ts>2017-12-01 21:58:42 -0800</creation_ts>
          <short_desc>Try proxying all function arguments</short_desc>
          <delta_ts>2017-12-04 13:22:37 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>
          <dependson>180297</dependson>
          <blocked>180375</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="JF Bastien">jfbastien</reporter>
          <assigned_to name="JF Bastien">jfbastien</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>fpizlo</cc>
    
    <cc>jfbastien</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>msaboff</cc>
    
    <cc>rmorisset</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1377235</commentid>
    <comment_count>0</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-12-01 21:58:42 -0800</bug_when>
    <thetext>In bug #180297 we found that some of the Math functions weren&apos;t doing their exception checks. Enumerate all functions and try calling all of them to see if there&apos;s anything else that fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377236</commentid>
    <comment_count>1</comment_count>
      <attachid>328212</attachid>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-12-01 22:15:22 -0800</bug_when>
    <thetext>Created attachment 328212
patch

Everything passes!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377242</commentid>
    <comment_count>2</comment_count>
      <attachid>328212</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-12-01 22:48:31 -0800</bug_when>
    <thetext>Comment on attachment 328212
patch

Clearing flags on attachment: 328212

Committed r225444: &lt;https://trac.webkit.org/changeset/225444&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377243</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-12-01 22:48:33 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377244</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-12-01 22:49:25 -0800</bug_when>
    <thetext>&lt;rdar://problem/35812613&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377805</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-12-04 12:07:41 -0800</bug_when>
    <thetext>All the new tests are crashing for WPE and GTK:


** The following JSC stress test failures have been introduced:
	stress/proxy-all-the-parameters.js.default
	stress/proxy-all-the-parameters.js.dfg-eager
	stress/proxy-all-the-parameters.js.dfg-eager-no-cjit-validate
	stress/proxy-all-the-parameters.js.dfg-maximal-flush-validate-no-cjit
	stress/proxy-all-the-parameters.js.ftl-eager
	stress/proxy-all-the-parameters.js.ftl-eager-no-cjit
	stress/proxy-all-the-parameters.js.ftl-eager-no-cjit-b3o1
	stress/proxy-all-the-parameters.js.ftl-no-cjit-b3o1
	stress/proxy-all-the-parameters.js.ftl-no-cjit-no-inline-validate
	stress/proxy-all-the-parameters.js.ftl-no-cjit-no-put-stack-validate
	stress/proxy-all-the-parameters.js.ftl-no-cjit-small-pool
	stress/proxy-all-the-parameters.js.ftl-no-cjit-validate-sampling-profiler
	stress/proxy-all-the-parameters.js.no-cjit-collect-continuously
	stress/proxy-all-the-parameters.js.no-cjit-validate-phases
	stress/proxy-all-the-parameters.js.no-ftl
	stress/proxy-all-the-parameters.js.no-llint

Results for JSC stress tests:
    16 failures found.


Let&apos;s see if I can figure out how to run the tests and get a backtrace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377824</commentid>
    <comment_count>6</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-12-04 12:32:57 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #5)
&gt; All the new tests are crashing for WPE and GTK:
&gt; 
&gt; 
&gt; ** The following JSC stress test failures have been introduced:
&gt; 	stress/proxy-all-the-parameters.js.default
&gt; 	stress/proxy-all-the-parameters.js.dfg-eager
&gt; 	stress/proxy-all-the-parameters.js.dfg-eager-no-cjit-validate
&gt; 	stress/proxy-all-the-parameters.js.dfg-maximal-flush-validate-no-cjit
&gt; 	stress/proxy-all-the-parameters.js.ftl-eager
&gt; 	stress/proxy-all-the-parameters.js.ftl-eager-no-cjit
&gt; 	stress/proxy-all-the-parameters.js.ftl-eager-no-cjit-b3o1
&gt; 	stress/proxy-all-the-parameters.js.ftl-no-cjit-b3o1
&gt; 	stress/proxy-all-the-parameters.js.ftl-no-cjit-no-inline-validate
&gt; 	stress/proxy-all-the-parameters.js.ftl-no-cjit-no-put-stack-validate
&gt; 	stress/proxy-all-the-parameters.js.ftl-no-cjit-small-pool
&gt; 	stress/proxy-all-the-parameters.js.ftl-no-cjit-validate-sampling-profiler
&gt; 	stress/proxy-all-the-parameters.js.no-cjit-collect-continuously
&gt; 	stress/proxy-all-the-parameters.js.no-cjit-validate-phases
&gt; 	stress/proxy-all-the-parameters.js.no-ftl
&gt; 	stress/proxy-all-the-parameters.js.no-llint
&gt; 
&gt; Results for JSC stress tests:
&gt;     16 failures found.
&gt; 
&gt; 
&gt; Let&apos;s see if I can figure out how to run the tests and get a backtrace.

When you run locally can you set verbose and check what function is run before the failure? You might be injecting a function that we shouldn’t call into the globally namespace. And this test will call it :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377849</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-12-04 13:14:28 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #5)
&gt; Let&apos;s see if I can figure out how to run the tests and get a backtrace.

They all pass on my personal machine. Sigh.

Yuskue, is this something you might want to look into?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377850</commentid>
    <comment_count>8</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-12-04 13:16:42 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #7)
&gt; (In reply to Michael Catanzaro from comment #5)
&gt; &gt; Let&apos;s see if I can figure out how to run the tests and get a backtrace.
&gt; 
&gt; They all pass on my personal machine. Sigh.
&gt; 
&gt; Yuskue, is this something you might want to look into?

Wild guess is that it&apos;s calling some internal function, and if I filter out objects whose name starts with &quot;$&quot; we&apos;ll be good. I&apos;ll upload a patch to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377851</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-12-04 13:17:59 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #7)
&gt; (In reply to Michael Catanzaro from comment #5)
&gt; &gt; Let&apos;s see if I can figure out how to run the tests and get a backtrace.
&gt; 
&gt; They all pass on my personal machine. Sigh.

Um, actually I think I was not running the tests properly. They completed instantaneously. But now I&apos;ve tried passing more arguments to run-jsc-tests, just like our bots do, and it&apos;s no longer completing immediately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377852</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-12-04 13:18:16 -0800</bug_when>
    <thetext>(In reply to JF Bastien from comment #8)
&gt; Wild guess is that it&apos;s calling some internal function, and if I filter out
&gt; objects whose name starts with &quot;$&quot; we&apos;ll be good. I&apos;ll upload a patch to do
&gt; so.

Happy to test it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377857</commentid>
    <comment_count>11</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-12-04 13:22:37 -0800</bug_when>
    <thetext>Will try to address this in https://bugs.webkit.org/show_bug.cgi?id=180375</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>328212</attachid>
            <date>2017-12-01 22:15:22 -0800</date>
            <delta_ts>2017-12-01 22:48:31 -0800</delta_ts>
            <desc>patch</desc>
            <filename>0001-Try-proxying-all-function-arguments.patch</filename>
            <type>text/plain</type>
            <size>3605</size>
            <attacher name="JF Bastien">jfbastien</attacher>
            
              <data encoding="base64">RnJvbSAwNDliODlmMmViZDRmZDk1MjIxN2JlOTNmZDU5NTNiNDczNmQ2ZWY2IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBKRiBCYXN0aWVuIDxqZmJhc3RpZW5AYXBwbGUuY29tPgpEYXRl
OiBGcmksIDEgRGVjIDIwMTcgMjI6MTQ6NTAgLTA4MDAKU3ViamVjdDogW1BBVENIXSBUcnkgcHJv
eHlpbmcgYWxsIGZ1bmN0aW9uIGFyZ3VtZW50cwoKLS0tCiBKU1Rlc3RzL0NoYW5nZUxvZyAgICAg
ICAgICAgICAgICAgICAgICAgICAgfCAxNiArKysrKysrCiBKU1Rlc3RzL3N0cmVzcy9wcm94eS1h
bGwtdGhlLXBhcmFtZXRlcnMuanMgfCA3MCArKysrKysrKysrKysrKysrKysrKysrKysrKysrKysK
I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gICAgICAgIGlmIChpZ25vcmUuaW5jbHVk
ZXMoZikpCisgICAgICAgICAgICBjb250aW51ZTsKKyAgICAgICAgY29uc3QgYXJpdHlQbHVzT25l
ID0gb1tmXS5sZW5ndGggKyAxOworICAgICAgICBpZiAodmVyYm9zZSkKKyAgICAgICAgICAgIHBy
aW50KGBDYWxsaW5nICR7b31bJyR7Zn0nXSgke0FycmF5KGFyaXR5UGx1c09uZSkuZmlsbCgidGhy
b3dlciIpfSlgKTsKKyAgICAgICAgdHJ5IHsKKyAgICAgICAgICAgIG9bZl0oQXJyYXkoYXJpdHlQ
bHVzT25lKS5maWxsKHRocm93ZXIpKTsKKyAgICAgICAgfSBjYXRjaCAoZSkgeworICAgICAgICAg
ICAgaWYgKGAke2V9YC5pbmNsdWRlcygnY29uc3RydWN0b3Igd2l0aG91dCBuZXcgaXMgaW52YWxp
ZCcpKSB7CisgICAgICAgICAgICAgICAgdHJ5IHsKKyAgICAgICAgICAgICAgICAgICAgaWYgKHZl
cmJvc2UpCisgICAgICAgICAgICAgICAgICAgICAgICBwcmludChgICAgIENvbnN0cnVjdGluZyBp
bnN0ZWFkYCk7CisgICAgICAgICAgICAgICAgICAgIG5ldyBvW2ZdKEFycmF5KGFyaXR5UGx1c09u
ZSkuZmlsbCh0aHJvd2VyKSk7CisgICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkgeworICAgICAg
ICAgICAgICAgICAgICBpZiAodmVyYm9zZSkKKyAgICAgICAgICAgICAgICAgICAgICAgIHByaW50
KGAgICAgdGhyZXcgJHtlfWApOworICAgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgIH0gZWxz
ZSB7CisgICAgICAgICAgICAgICAgaWYgKHZlcmJvc2UpCisgICAgICAgICAgICAgICAgICAgIHBy
aW50KGAgICAgdGhyZXcgJHtlfWApOworICAgICAgICAgICAgfQorICAgICAgICB9CisgICAgfQor
fQotLSAKMi4xMC4xCgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>