WebAssembly / binaryen

Optimizer and compiler/toolchain library for WebAssembly
Apache License 2.0
7.27k stars 715 forks source link

UNREACHABLE executed at Precompute.cpp:838 on Windows #6710

Open JSMonk opened 5 days ago

JSMonk commented 5 days ago

Version: 117 Platform: Windows 11 (x64)

Using -O2 and higher on Windows produces UNREACHABLE executed at Precompute.cpp:838 error. I've attached the binary that helps to reproduce the behavior.

stardew-valley-designer-app-web-wasm-js.wasm.zip

To reproduce the failure, take the binary and run the following command:

wasm-opt.exe --all-features -O2 .\stardew-valley-designer-app-web-wasm-js.wasm -o output.wasm

To generate the binary by yourself:

  1. Clone repo: https://github.com/AzimMuradov/stardew-valley-designer
  2. Create local.properties file with the following content: kotlin.daemon.jvmargs=-Xmx2048m
  3. Run ./gradlew.bat :app-web:compileProductionExecutableKotlinWasmJs
  4. The binary is located in the following directory: app-web\build\compileSync\wasmJs\main\productionExecutable\kotlin
kripken commented 5 days ago

Looks like a duplicate of #6639 which has been fixed meanwhile on main (but is not yet in a release).

JSMonk commented 3 days ago

@kripken when the next version release is planned? We would really happy to update to the version with this fix as soon as possible

kripken commented 8 minutes ago

@JSMonk I tagged version 118 now (still building atm).