containerd / containerd/runwasi

`test_cri_task` failed sporadically

Open
#905 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
1.3k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

An example: https://github.com/containerd/runwasi/actions/runs/13688658147/job/38277636932?pr=903

Log:

```
thread 'sandbox::shim::local::tests::test_cri_task' panicked at crates/containerd-shim-wasm/src/sandbox/shim/local/tests.rs:282:5:
assertion `left == right` failed
left: RUNNING
right: STOPPED
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::assert_failed_inner
3: core::panicking::assert_failed
4: containerd_shim_wasm::sandbox::shim::local::tests::test_cri_task::{{closure}}
5: as core::future::future::Future>::poll
6: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
7: tokio::runtime::park::CachedParkThread::block_on
8: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
9: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
10: tokio::runtime::context::runtime::enter_runtime
11: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
12: tokio::runtime::runtime::Runtime::block_on_inner
13: tokio::runtime::runtime::Runtime::block_on
14: containerd_shim_wasm::sandbox::shim::local::tests::test_cri_task
15: containerd_shim_wasm::sandbox::shim::local::tests::test_cri_task::{{closure}}
16: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

thread 'tokio-runtime-worker' panicked at crates/containerd-shim-wasm/src/sandbox/shim/local/tests.rs:198:28:
called `Result::unwrap()` on an `Err` value: SendError { .. }
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: core::result::unwrap_failed
3: containerd_shim_wasm::sandbox::shim::local::tests::test_cri_task::{{closure}}::{{closure}}
4: tokio::runtime::task::core::Core::poll::{{closure}}
5: tokio::runtime::task::core::Core::poll
6: tokio::runtime::task::harness::poll_future::{{closure}}
7: as core::ops::function::FnOnce<()>>::call_once
8: std::panicking::try::do_call
9: __rust_try
10: std::panic::catch_unwind
11: tokio::runtime::task::harness::poll_future
12: tokio::runtime::task::harness::Harness::poll_inner
13: tokio::runtime::task::harness::Harness::poll
14: tokio::runtime::task::raw::poll
15: tokio::runtime::task::raw::RawTask::poll
16: tokio::runtime::task::LocalNotified::run
17: tokio::runtime::scheduler::multi_thread::worker::Context::run_task::{{closure}}
18: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
19: tokio::runtime::scheduler::multi_thread::worker::Context::run
20: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}::{{closure}}
21: tokio::runtime::context::scoped::Scoped::set
22: tokio::runtime::context::set_scheduler::{{closure}}
23: std::thread::local::LocalKey::try_with
24: std::thread::local::LocalKey::with
25: tokio::runtime::context::set_scheduler
26: tokio::runtime::scheduler::multi_thread::worker::run::{{closure}}
27: tokio::runtime::context::runtime::enter_runtime
28: tokio::runtime::scheduler::multi_thread::worker::run
29: tokio::runtime::scheduler::multi_thread::worker::Launch::launch::{{closure}}
30: as core::future::future::Future>::poll
31: tokio::runtime::task::core::Core::poll::{{closure}}
32: tokio::runtime::task::core::Core::poll
33: tokio::runtime::task::harness::poll_future::{{closure}}
34: as core::ops::function::FnOnce<()>>::call_once
35: std::panicking::try::do_call
36: __rust_try
37: std::panic::catch_unwind
38: tokio::runtime::task::harness::poll_future
39: tokio::runtime::task::harness::Harness::poll_inner
40: tokio::runtime::task::harness::Harness::poll
41: tokio::runtime::task::raw::poll
42: tokio::runtime::task::raw::RawTask::poll
43: tokio::runtime::task::UnownedTask::run
44: tokio::runtime::blocking::pool::Task::run
45: tokio::runtime::blocking::pool::Inner::run
46: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.