Skip to content

test_cri_task failed sporadically #905

@Mossaka

Description

@Mossaka

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: <core::pin::Pin<P> 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<T,S>::poll::{{closure}}
   5: tokio::runtime::task::core::Core<T,S>::poll
   6: tokio::runtime::task::harness::poll_future::{{closure}}
   7: <core::panic::unwind_safe::AssertUnwindSafe<F> 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<T,S>::poll_inner
  13: tokio::runtime::task::harness::Harness<T,S>::poll
  14: tokio::runtime::task::raw::poll
  15: tokio::runtime::task::raw::RawTask::poll
  16: tokio::runtime::task::LocalNotified<S>::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<T>::set
  22: tokio::runtime::context::set_scheduler::{{closure}}
  23: std::thread::local::LocalKey<T>::try_with
  24: std::thread::local::LocalKey<T>::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: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
  31: tokio::runtime::task::core::Core<T,S>::poll::{{closure}}
  32: tokio::runtime::task::core::Core<T,S>::poll
  33: tokio::runtime::task::harness::poll_future::{{closure}}
  34: <core::panic::unwind_safe::AssertUnwindSafe<F> 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<T,S>::poll_inner
  40: tokio::runtime::task::harness::Harness<T,S>::poll
  41: tokio::runtime::task::raw::poll
  42: tokio::runtime::task::raw::RawTask::poll
  43: tokio::runtime::task::UnownedTask<S>::run
  44: tokio::runtime::blocking::pool::Task::run
  45: tokio::runtime::blocking::pool::Inner::run
  46: tokio::runtime::blocking::pool::Spawner::spawn_thread::{{closure}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions