bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.66k stars 576 forks source link

iwasm fails on try catch #3598

Open bashor opened 3 days ago

bashor commented 3 days ago

Test case

A bit modified version of kotlin-wasm-examples/wasi-example

Steps to reproduce

  1. Download and unzip kotlin-wasm-wasi-example-wasm-wasi.wasm.zip
  2. Build iwasm with GC and EH support.
  3. Run ./iwasm kotlin-wasm-wasi-example-wasm-wasi.wasm.

Expected output

Hello from Kotlin via WASI
OK Hi
Current 'realtime' timestamp is: 1720191249448619000
Current 'monotonic' timestamp is: 4473162847494166

Actual output

Hello from Kotlin via WASI
WASM module instantiate failed: Exception: unsupported opcode
bashor commented 3 days ago

JFTR: it seems to be working when the fast interpreter is disabled

yamt commented 23 hours ago

JFTR: it seems to be working when the fast interpreter is disabled

EH is implemented only for classic interpreter.