alex28sh opened issue #12941:
Steps to Reproduce
Run on the attached
index.wasm
wasmtime -W gc,function-references,exceptions,stack-switching index.wasmExpected Results
test passedActual Results
thread '<unnamed>' (40796) panicked at /home/Aleksandr.Shefer/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wasmtime-internal-cranelift-43.0.0/src/func_environ/gc/enabled.rs:1534:9: assertionleft == rightfailed left: types::I128 right: types::I32 note: run withRUST_BACKTRACE=1environment variable to display a backtraceVersions and Environment
wasmtime 43.0.0
Operating system: Ubuntu 24.04.4
Architecture: x86_64
alex28sh added the bug label to Issue #12941.
alex28sh added the cranelift label to Issue #12941.
alex28sh edited issue #12941:
Steps to Reproduce
Run on the attached
index.wasm
wasmtime -W gc,function-references,exceptions,stack-switching index.wasmExpected Results
test passedActual Results
thread '<unnamed>' (40796) panicked at /home/Aleksandr.Shefer/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wasmtime-internal-cranelift-43.0.0/src/func_environ/gc/enabled.rs:1534:9: assertionleft == rightfailed left: types::I128 right: types::I32 note: run withRUST_BACKTRACE=1environment variable to display a backtracePresumably, that happens because in Kotlin we are using
contreftyped variabled inside gc structsVersions and Environment
wasmtime 43.0.0
Operating system: Ubuntu 24.04.4
Architecture: x86_64
alexcrichton added the wasm-proposal:stack-switching label to Issue #12941.
cfallin commented on issue #12941:
Thanks for filing the issue!
Stack switching support in Wasmtime is known to be incomplete at this time, and no one is currently staffed to work on it. We'd welcome PRs from anyone willing to improve it, though; if you'd like to send one to address this issue, we'd be happy to review it.
Last updated: Apr 12 2026 at 23:10 UTC