Skip to content

WAMR has a segmentation fault while executing this wasm binary. #2556

@abc767234318

Description

@abc767234318

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.
file7.zip

wamrc -o file7.wasm.aot file7.wasm
iwasm --heap-size=0  -f main file7.wasm.aot

The outputs of WAMR are as follows:

-----------------wamr-----------------
Create AoT compiler with:
  target:        x86_64
  target cpu:    znver3
  target triple: x86_64-unknown-linux-gnu
  cpu features:  
  opt level:     3
  size level:    3
  output format: AoT file
Compile success, file file7.wasm.aot was generated.
Segmentation fault (core dumped)

While the outputs of the other runtimes like wasmtime and wasmer are:

-----------------wasmtime-----------------
warning: using `--invoke` with a function that returns values is experimental and may break in the future
0
0
0
0
0
0
0
520359494

-----------------wasmer-----------------
0 0 0 0 0 0 0 520359494

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions