wasm-micro-runtime: iwasm: WASM module load failed: type mismatch: expect (ref null ht) but got other1 unknown type
Steps to reproduce
-
Build
iwasmwith the following command
cmake .. -DWAMR_BUILD_GC=1 -DWAMR_BUILD_BULK_MEMORY=1 -DWAMR_BUILD_EXCE_HANDLING=1 -DWAMR_BUILD_TAIL_CALL=1 -DWAMR_BUILD_CUSTOM_NAME_SECTION=1 -DWAMR_BUILD_EXCE_HANDLING=0 && make
- Run
./iwasm kotlin-wasm-wasi-example-wasm-wasi-dev.wasm
Expected behavior
It should print something like:
Hello from Kotlin via WASI
Current 'realtime' timestamp is: 1715281633864118000
Current 'monotonic' timestamp is: 210424654558083
Actual behavior
It prints:
WASM module load failed: type mismatch: expect (ref null ht) but got other1 unknown type
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 20 (6 by maintainers)
Commits related to this issue
- Enhance GC const initializer expression to support nested struct/array new (#3447) Only support interpreter now, and fix some issues found in wasm loader. This PR fixes issue #3410 and #3411. — committed to bytecodealliance/wasm-micro-runtime by wenyongh 3 years ago
- wasm loader: Fix several issues in GC and exception handling (#3586) Fix several issues of GC and exception handling in wasm loader: - Should restore param_reftype_maps/param_reftype_map_count/param... — committed to bytecodealliance/wasm-micro-runtime by wenyongh 2 years ago
@bennyhuo Hi, thanks for your discovery. I have created a new PR #4372 and tried running the first WASM binary from the issue — it now produces the correct result. Could you have a try, or wait for this PR to be merged into the main branch?
@bashor thanks for the wat files and the new samples, there are several issues in the handling of exception handling and GC, I submitted PR #3586 to fix them and now all the files run successfully. Please try again.
Thanks, I will definitely check it out!