wabt icon indicating copy to clipboard operation
wabt copied to clipboard

Incorrect Handling of Call Instructions in wasm-interp

Open Q1IQ opened this issue 1 year ago • 0 comments

wasm-interp encounters an "Aborted (core dumped)" error when executing a WebAssembly module that contains call instructions. This issue leads to an unexpected termination of the program.

Test case

program.wasm.txt

Environment

  • OS: Ubuntu 20.04
  • CPU: amd64
  • WABT version: 1.0.36
  • Commands:
./wasm-interp --enable-all --run-export=main ./program.wasm

Actual behavior

Aborted (core dumped)

Expected behavior

wasm-interp should execute the call instructions without causing an "Aborted" error. If there is an issue with the module, it should provide a descriptive error message instead of terminating unexpectedly.

Q1IQ avatar Jan 07 '25 13:01 Q1IQ