Error assertion left == right failed
on Wasm module init in Rust-embedded Wasmtime
#9714
Labels
bug
Incorrect behavior in the current implementation that needs fixing
wasm-proposal:gc
Issues with the implementation of the gc wasm proposal
Test Case
I'm trying to run a Kotlin-produced Wasm module in Rust-embedded Wasmtime. Kotlin requires support for the Wasm GC proposal, which Wasmtime officially has since version 27.0.0. Unfortunately, when initializing the Kotlin-generated Wasm module, a Wasmtime assertion error occurs, seemingly related to the Wasm GC code.
I initially assumed some incompatibility between Wasmtime and Kotlin-produced Wasm but the same file can be executed successfully in the standalone mode with
wasmtime -W function-references,gc
.The minimal Kotlin guest code that reproduces this issue looks like this:
And this is the corresponding host code:
This fails at
linker.instantiate
call with an error:Versions and Environment
Wasmtime version or commit: 27.0.0
Operating system: macOS
Architecture: arm64
The text was updated successfully, but these errors were encountered: