wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

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

Open vouillon opened this issue 9 months ago • 2 comments

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 these three lines:

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

vouillon avatar Apr 10 '25 17:04 vouillon

Experiencing the same issue - getting a unhandled SIGSEGV, si_addr: 0x642700000005 with the above WASM error

nickbetteridge avatar Apr 11 '25 09:04 nickbetteridge

Is there any chance of somebody being able to take a few moments to have a look at this? This is a bit of a show-stopper for us and, unfortunately, I'm not a C/C++ coder - so we're a little stuck as we can't, currently, build and run anything via Ocaml. Thanks in advance for any feedback

nickbetteridge avatar Apr 24 '25 06:04 nickbetteridge