You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have generated a wasm binary, and I process it with Wamr. But the output error message differs from other runtimes like wasmtime and wasmer. file1.wasm.zip
iwasm --heap-size=0 -f main file1.wasm
The output of Wamr is as follows:
WASM module instantiate failed: out of bounds memory access
And the outputs of the other runtimes are:
-----------------wasmtime-----------------
Error: failed to run main module `file1.wasm`
Caused by:
0: failed to invoke `main`
1: error while executing at wasm backtrace:
0: 0x1e80 - <unknown>!<wasm function 17>
1: 0x29ee - <unknown>!<wasm function 21>
2: 0x2b44 - <unknown>!<wasm function 22>
3: 0x5f9e - <unknown>!<wasm function 64>
4: 0x6329 - <unknown>!<wasm function 65>
2: wasm trap: integer divide by zero
-----------------wasmer-----------------
error: failed to run `file1.wasm`
╰─▶ 1: RuntimeError: integer divide by zero
at <unnamed> (file1.wasm[17]:0x1e80)
at <unnamed> (file1.wasm[21]:0x29ee)
at <unnamed> (file1.wasm[22]:0x2b44)
at <unnamed> (file1.wasm[64]:0x5f9e)
at <unnamed> (file1.wasm[65]:0x6329)
-----------------wasmedge-----------------
[2023-08-11 21:29:01.765] [error] execution failed: integer divide by zero, Code: 0x84
[2023-08-11 21:29:01.765] [error] In instruction: i32.rem_s (0x6f) , Bytecode offset: 0x00001e80 , Args: [0 , 0]
[2023-08-11 21:29:01.765] [error] When executing function name: "main"
The text was updated successfully, but these errors were encountered:
yamt
added a commit
to yamt/wasm-micro-runtime
that referenced
this issue
Aug 14, 2023
I have generated a wasm binary, and I process it with Wamr. But the output error message differs from other runtimes like wasmtime and wasmer.
file1.wasm.zip
The output of Wamr is as follows:
And the outputs of the other runtimes are:
The text was updated successfully, but these errors were encountered: