Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error message of output is different from other runtimes. #2450

Closed
abc767234318 opened this issue Aug 11, 2023 · 0 comments · Fixed by #2459
Closed

The error message of output is different from other runtimes. #2450

abc767234318 opened this issue Aug 11, 2023 · 0 comments · Fixed by #2459

Comments

@abc767234318
Copy link

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"
yamt added a commit to yamt/wasm-micro-runtime that referenced this issue Aug 14, 2023
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant