Skip to content

The aot compiler encountered a segmentation fault while compiling this wasm binary. #2557

@abc767234318

Description

@abc767234318

I constructed a wasm binary with an exported function called "main". I used the following command to compile it with aot compiler, while a segmentation fault was encountered.
file9.zip

wamrc -o file9.wasm.aot file9.wasm

And the outputs are:

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
Segmentation fault (core dumped)

I used other runtimes to execute this wasm binary and found that the program seemed to contain an endless loop.

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