-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
What happened?
i'm testing on ubuntu22.04.
run the example script"run_example_wasm_container.sh",
the output info is
rustup target add wasm32-wasi
info: component 'rust-std' for target 'wasm32-wasi' is up to date
cd crates/wasi-demo-app && cargo build
Updating crates.io index
Compiling wasi-demo-app v0.3.1 (/tmp/runwasi/crates/wasi-demo-app)
Finished dev [unoptimized + debuginfo] target(s) in 1m 30s
cd crates/wasi-demo-app && cargo build --features oci-v1-tar
Downloaded clap_derive v4.4.7
Downloaded aho-corasick v1.1.2
Downloaded syn v1.0.109
Downloaded clap_builder v4.4.9
Downloaded env_logger v0.10.1
Downloaded humantime v2.1.0
Downloaded libc v0.2.151
Downloaded anstyle-parse v0.2.2
Downloaded async-trait v0.1.73
Downloaded clap v4.4.10
Downloaded derive_builder_core v0.12.0
Downloaded digest v0.10.7
Downloaded getset v0.1.2
Downloaded regex-automata v0.4.1
Downloaded quote v1.0.33
Downloaded memchr v2.6.4
Downloaded sha2 v0.10.8
Downloaded thiserror v1.0.50
Downloaded utf8parse v0.2.1
Downloaded tar v0.4.40
Downloaded anyhow v1.0.75
Downloaded bitflags v2.4.0
Downloaded block-buffer v0.10.4
Downloaded colorchoice v1.0.0
Downloaded derive_builder v0.12.0
Downloaded hex v0.4.3
Downloaded heck v0.4.1
Downloaded darling_core v0.14.4
Downloaded pin-project-lite v0.2.13
Downloaded oci-spec v0.6.4
Downloaded rustix v0.38.21
Downloaded serde_derive v1.0.193
Downloaded strsim v0.10.0
Downloaded termcolor v1.3.0
Downloaded typenum v1.17.0
Downloaded anstyle v1.0.4
Downloaded anstyle-query v1.0.0
Downloaded clap_lex v0.6.0
Downloaded cpufeatures v0.2.9
Downloaded filetime v0.2.22
Downloaded generic-array v0.14.7
Downloaded itoa v1.0.9
Downloaded proc-macro-error v1.0.4
Downloaded ryu v1.0.15
Downloaded serde_json v1.0.108
Downloaded thiserror-impl v1.0.50
Downloaded version_check v0.9.4
Downloaded bytes v1.5.0
Downloaded darling v0.14.4
Downloaded errno v0.3.5
Downloaded ident_case v1.0.1
Downloaded proc-macro2 v1.0.69
Downloaded serde v1.0.193
Downloaded linux-raw-sys v0.4.10
Downloaded anstream v0.6.4
Downloaded darling_macro v0.14.4
Downloaded is-terminal v0.4.9
Downloaded regex v1.10.0
Downloaded sha256 v1.4.0
Downloaded cfg-if v1.0.0
Downloaded fnv v1.0.7
Downloaded regex-syntax v0.8.0
Downloaded xattr v1.0.1
Downloaded tokio v1.35.0
Downloaded log v0.4.20
Downloaded proc-macro-error-attr v1.0.4
Downloaded unicode-ident v1.0.12
Downloaded derive_builder_macro v0.12.0
Downloaded crypto-common v0.1.6
Downloaded syn v2.0.38
Downloaded 70 crates (6.9 MB) in 2m 29s (largest was `linux-raw-sys` at 1.4 MB)
Compiling proc-macro2 v1.0.69
Compiling unicode-ident v1.0.12
Compiling version_check v0.9.4
Compiling syn v1.0.109
Compiling strsim v0.10.0
Compiling typenum v1.17.0
Compiling generic-array v0.14.7
Compiling ident_case v1.0.1
Compiling fnv v1.0.7
Compiling proc-macro-error-attr v1.0.4
Compiling libc v0.2.151
Compiling quote v1.0.33
Compiling syn v2.0.38
Compiling proc-macro-error v1.0.4
Compiling utf8parse v0.2.1
Compiling serde v1.0.193
Compiling cfg-if v1.0.0
Compiling anstyle-parse v0.2.2
Compiling block-buffer v0.10.4
Compiling crypto-common v0.1.6
Compiling anstyle-query v1.0.0
Compiling anstyle v1.0.4
Compiling serde_json v1.0.108
Compiling rustix v0.38.21
Compiling colorchoice v1.0.0
Compiling thiserror v1.0.50
Compiling async-trait v0.1.73
Compiling memchr v2.6.4
Compiling aho-corasick v1.1.2
Compiling anstream v0.6.4
Compiling digest v0.10.7
Compiling ryu v1.0.15
Compiling cpufeatures v0.2.9
Compiling itoa v1.0.9
Compiling clap_lex v0.6.0
Compiling anyhow v1.0.75
Compiling bytes v1.5.0
Compiling linux-raw-sys v0.4.10
Compiling bitflags v2.4.0
Compiling regex-syntax v0.8.0
Compiling heck v0.4.1
Compiling pin-project-lite v0.2.13
Compiling tokio v1.35.0
Compiling regex-automata v0.4.1
Compiling clap_builder v4.4.9
Compiling sha2 v0.10.8
Compiling xattr v1.0.1
Compiling filetime v0.2.22
Compiling hex v0.4.3
Compiling log v0.4.20
Compiling tar v0.4.40
Compiling is-terminal v0.4.9
Compiling regex v1.10.0
Compiling humantime v2.1.0
Compiling termcolor v1.3.0
Compiling env_logger v0.10.1
Compiling darling_core v0.14.4
Compiling serde_derive v1.0.193
Compiling thiserror-impl v1.0.50
Compiling clap_derive v4.4.7
Compiling sha256 v1.4.0
Compiling clap v4.4.10
Compiling darling_macro v0.14.4
Compiling getset v0.1.2
Compiling darling v0.14.4
Compiling derive_builder_core v0.12.0
Compiling derive_builder_macro v0.12.0
Compiling derive_builder v0.12.0
Compiling oci-spec v0.6.4
Compiling oci-tar-builder v0.3.1 (/tmp/runwasi/crates/oci-tar-builder)
Compiling wasi-demo-app v0.3.1 (/tmp/runwasi/crates/wasi-demo-app)
Finished dev [unoptimized + debuginfo] target(s) in 21m 24s
make[1]: Leaving directory '/tmp/runwasi'
[ -f /tmp/runwasi/dist/img.tar ] || cp target/wasm32-wasi/debug/img.tar "dist/img.tar"
sudo ctr -n k8s.io image import --all-platforms dist/img.tar
[sudo] password for necas:
unpacking ghcr.io/containerd/runwasi/wasi-demo-app:latest (sha256:bdd2e5e34cb62837c7d8396017a474afc7adc4a196ff43e620c07999b80e2767)...done
E1213 06:36:02.809060 49586 remote_runtime.go:176] "RunPodSandbox from runtime service failed" err="rpc error: code = Unavailable desc = failed to start sandbox \"dd2580d510c0a9ccf37e3b0b2ba25a13d4c94357029dfd740127d51a5ad28ae8\": error reading from server: EOF: unavailable"
FATA[0000] running container: run pod sandbox: rpc error: code = Unavailable desc = failed to start sandbox "dd2580d510c0a9ccf37e3b0b2ba25a13d4c94357029dfd740127d51a5ad28ae8": error reading from server: EOF: unavailable
kuasar crashed with log
terminate called after throwing an instance of 'std::out_of_range' what(): bitset::reset: __position (which is 1) >= _Nb (which is 1)
What did you expect to happen?
script execute without error message
How can we reproduce it (as minimally and precisely as possible)?
- download and install Kuasar
wget https://github.com/kuasar-io/kuasar/releases/download/v0.3.0/kuasar-v0.3.0-linux-amd64.tar.gz
tar xzvf kuasar-v0.3.0-linux-amd64.tar.gz
mkdir -p /var/lib/kuasar
cp kuasar.img vmlinux.bin config_clh.toml /var/lib/kuasar
2.start Kuasar
nohup wasm-sandboxer --listen /run/wasm-sandboxer.sock --dir /run/kuasar-wasm &
3.start Containerd
ENABLE_CRI_SANDBOXES=1 containerd -c config.toml
4.run the example script"run_example_wasm_container.sh"
Anything else we need to know?
No response
Dev environment
WasmEdge: v0.11.2
Kuasar: v0.3.0-linux-amd64 and v0.4.0-linux-amd64
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.