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

[gc] array as a field in struct object is not supported in constant init expr #4096

Open
vouillon opened this issue Feb 20, 2025 · 0 comments · May be fixed by #4099
Open

[gc] array as a field in struct object is not supported in constant init expr #4096

vouillon opened this issue Feb 20, 2025 · 0 comments · May be fixed by #4099

Comments

@vouillon
Copy link
Contributor

Steps to reproduce

  1. Unpack zip globals.zip

  2. Build iwasm with the following command:

cmake .. -DWAMR_BUILD_GC=1 -DWAMR_BUILD_EXCE_HANDLING=1 -DWAMR_BUILD_TAIL_CALL=1 && make
  1. Run ./iwasm globals.wasm

Expected behavior

It should print something like:

line 1
line 2
line 3

Actual behavior

I get the following output:

WASM module instantiate failed: array as a field in struct object is not supported in constant init expr
unhandled SIGSEGV, si_addr: 0x21
Abandon (core dumped)
@lum1n0us lum1n0us linked a pull request Feb 23, 2025 that will close this issue
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