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
RUST_BACKTRACE=1 ~/src/github.com/bytecodealliance/WASI-Virt/target/debug/wasi-virt --allow-all -o v.wasm c.wasm
thread 'main' panicked at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:616:21:
internal error: entered unreachable code: should have been handled in `TypeEncoder::component_entity_type`
stack backtrace:
0: rust_begin_unwind
at /rustc/791adf759cc065316f054961875052d5bc03e16c/library/std/src/panicking.rs:652:5
1: core::panicking::panic_fmt
at /rustc/791adf759cc065316f054961875052d5bc03e16c/library/core/src/panicking.rs:72:14
2: wasm_compose::encoding::TypeEncoder::_ty
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:616:21
3: wasm_compose::encoding::TypeEncoder::ty
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:539:19
4: wasm_compose::encoding::TypeEncoder::component_entity_type
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:414:59
5: wasm_compose::encoding::TypeEncoder::export
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:791:22
6: wasm_compose::encoding::TypeEncoder::instance
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:308:26
7: wasm_compose::encoding::TypeEncoder::component_instance_type
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:454:24
8: wasm_compose::encoding::TypeEncoder::_ty
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:620:53
9: wasm_compose::encoding::TypeEncoder::ty
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:539:19
10: wasm_compose::encoding::TypeEncoder::component_entity_type
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:421:44
11: wasm_compose::encoding::CompositionGraphEncoder::encode_item_import
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:1399:18
12: wasm_compose::encoding::CompositionGraphEncoder::encode_imports
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:1350:29
13: wasm_compose::encoding::CompositionGraphEncoder::encode
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/encoding.rs:1318:9
14: wasm_compose::composer::ComponentComposer::compose
at /Users/rvolosatovs/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasm-compose-0.217.0/src/composer.rs:542:9
15: wasi_virt::WasiVirt::finish
at /Users/rvolosatovs/src/github.com/bytecodealliance/WASI-Virt/src/lib.rs:463:34
16: wasi_virt::main
at /Users/rvolosatovs/src/github.com/bytecodealliance/WASI-Virt/src/bin/wasi-virt.rs:218:26
17: core::ops::function::FnOnce::call_once
at /rustc/791adf759cc065316f054961875052d5bc03e16c/library/core/src/ops/function.rs:250:5
Using
wasi-virt
from this PR bytecodealliance/WASI-Virt#92, I was able to trigger a panic inwasm-compose 0.217
Component WIT:
The text was updated successfully, but these errors were encountered: