You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit fixes a panic related to type imports where an import of a
type didn't correctly declare the new type index on the Wasmtime side of
things. Additionally this plumbs more support throughout Wasmtime to
support type imports, namely that they do not need to be supplied
through a `Linker`. This additionally implements a feature where empty
instances, even transitively, do not need to be supplied by a Wasmtime
embedder. This means that instances which only have types, for example,
do not need to be supplied into a `Linker` since no runtime information
for them is required anyway.
Closesbytecodealliance#5775
Thanks for the report! I've posted a fix for this at #5777
Type imports/exports were unfortunately underbaked a bit when I first implemented components in Wasmtime and as we fleshed them out for the bindings story I hadn't gotten a chance to come back to Wasmtime and fill out the implementation, so the bug reports are appreciated!
This commit fixes a panic related to type imports where an import of a
type didn't correctly declare the new type index on the Wasmtime side of
things. Additionally this plumbs more support throughout Wasmtime to
support type imports, namely that they do not need to be supplied
through a `Linker`. This additionally implements a feature where empty
instances, even transitively, do not need to be supplied by a Wasmtime
embedder. This means that instances which only have types, for example,
do not need to be supplied into a `Linker` since no runtime information
for them is required anyway.
Closes#5775
Test Case
I have made an repo to demonstrate this panic
Steps to Reproduce
cargo run
Expected Results
No panic happens.
Actual Results
The program panicked with the following stack trace:
Versions and Environment
Wasmtime version or commit:
6df3bbb
, with featurescomponent-model
Operating system:
Windows 10 21H2, 19044.2486
Architecture:
x64
Rustc:
rustc 1.67.0 (fc594f156 2023-01-24)
Cargo:
cargo 1.67.0 (8ecd4f20a 2023-01-10)
The text was updated successfully, but these errors were encountered: