Skip to content

iwasm with aot file fail with SIGSEGV #3442

Open
@peter-jerry-ye

Description

@peter-jerry-ye

Subject of the issue

iwasm with an aot fails with unhandled SIGSEGV. The original wasm works fine.

Test case

WAT file: test.txt

A Moonbit version of n-body simulation

Your environment

  • Host OS: Mac M1 Sonoma 14.4.1
  • WAMR version, platform, cpu architecture, running mode: 7949df9, iwasm built with GC support

Steps to reproduce

wasm-tools parse test.wat -o test.wasm
wamrc --size-level=0 -o test.aot --enable-gc test.wasm # size-level=0 due to Mac M1
iwasm test.aot

Expected behavior

Print result (which I assume is 0x0:i32)

Actual behavior

unhandled SIGSEGV, si_addr: 0x67ffff79

Metadata

Metadata

Assignees

No one assigned

    Labels

    GCGarbage Collection featureaot compilerbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions