<?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>169722</bug_id>
          
          <creation_ts>2017-03-15 17:14:02 -0700</creation_ts>
          <short_desc>WebAssembly: spec-tests/f32.wast.js fails on ARM64</short_desc>
          <delta_ts>2022-02-13 19:07:01 -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>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=170683</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>161709</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="JF Bastien">jfbastien</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>chi187</cc>
    
    <cc>fpizlo</cc>
    
    <cc>jfbastien</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yegor.jbanov</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1288364</commentid>
    <comment_count>0</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-03-15 17:14:02 -0700</bug_when>
    <thetext># DYLD_FRAMEWORK_PATH=... .../jsc -m --useWebAssembly=1 ./spec-tests//f32.wast.js
Exception: Error: Unreachable code should not be executed (evaluating &apos;$$.exports[&quot;assert_0&quot;]()&apos;)
&lt;wasm&gt;@[wasm code]
&lt;wasm&gt;@[wasm code]
assert_0@[native code]
/private/var/root/jsc-stress-results/.tests/wasm/spec-tests/f32.wast.js:128:43
assert_return@/private/var/root/jsc-stress-results/.tests/wasm/spec-tests/f32.wast.js:80:22
module code@/private/var/root/jsc-stress-results/.tests/wasm/spec-tests/f32.wast.js:128:14
evaluate@[native code]
moduleEvaluation@[native code]
[native code]
promiseReactionJob@[native code]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1288365</commentid>
    <comment_count>1</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-03-15 17:15:21 -0700</bug_when>
    <thetext>Same thing for:

./spec-tests//f64.wast.js
./spec-tests//float_exprs.wast.js
./spec-tests//float_misc.wast.js</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1290070</commentid>
    <comment_count>2</comment_count>
    <who name="JF Bastien">jfbastien</who>
    <bug_when>2017-03-22 09:57:14 -0700</bug_when>
    <thetext>I looked into this and it seems related to NaN handling. The spec tests try to validate NaNs are handled properly and compare their values.

The bug could be:
 - In our code
 - In the spec tests (they&apos;re not currently up to date, see https://github.com/WebAssembly/spec/pull/414)
 - In the code that translates .wast -&gt; .wast.js

This is unlikely to be important for the near future, so I&apos;ll ignore it for now. Maybe we can just comment out the &quot;assert_[0-9]+&quot; invocations for now, and revisit when we update the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1304073</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2017-05-03 09:54:34 -0700</bug_when>
    <thetext>&lt;rdar://problem/31965311&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710309</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey Rubanov">chi187</who>
    <bug_when>2020-11-27 08:50:43 -0800</bug_when>
    <thetext>I think that this issue is not valid anymore</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719307</commentid>
    <comment_count>5</comment_count>
    <who name="Yegor">yegor.jbanov</who>
    <bug_when>2021-01-13 09:14:12 -0800</bug_when>
    <thetext>We&apos;re seeing this error occasionally, specifically:

Error: Unreachable code should not be executed (evaluating &apos;invoker(fn, thisWired)&apos;)

We run on:

LastOSVersionSafariWasLaunchedOn = &quot;10.15.7&quot;;
NewestLaunchedSafariVersion = &quot;609.4.1&quot;;

Is there something Emscripten could do to work around the issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719308</commentid>
    <comment_count>6</comment_count>
    <who name="Yegor">yegor.jbanov</who>
    <bug_when>2021-01-13 09:14:58 -0800</bug_when>
    <thetext>Full log: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8858212739179103328/+/steps/felt_test_safari_desktop/0/stdout</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719378</commentid>
    <comment_count>7</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-01-13 11:59:25 -0800</bug_when>
    <thetext>(In reply to Yegor from comment #6)
&gt; Full log:
&gt; https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.
&gt; com/8858212739179103328/+/steps/felt_test_safari_desktop/0/stdout

I don&apos;t think this error is related to f32.wast.js. Please open a new bug.
And please attach a test case which can reproduce this :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>