Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test failed on Linux: test_large_message_with_secio failed: Unexpected error: ProtocolSelectError #391

Open
eval-exec opened this issue Dec 4, 2024 · 0 comments

Comments

@eval-exec
Copy link
Collaborator

On master branch, commit_id: 09ec7b75d5d0f224dda1985a86c8b7f19c5467a1:
execute make test got:

running 2 tests
test test_large_message_with_no_secio ... ok
test test_large_message_with_secio ... FAILED

failures:

---- test_large_message_with_secio stdout ----
thread 'test_large_message_with_secio' panicked at tentacle/tests/test_large_pending_messge.rs:75:18:
Unexpected error: ProtocolSelectError { proto_name: None, session_context: SessionContext { id: SessionId(1), address: "/ip4/127.0.0.1/tcp/36619/p2p/QmTWeJUnVdigWTNwmSZdTq4rj1dcUC4XZBn5yvTop4eTCV", ty: Outbound, remote_pubkey: Some(0x039642a1c49793e572c5213c7dc4b530b077f80a4ef33e00addbf243d07cfaa4e7), closed: true, pending_data_size: 0 } }
stack backtrace:
   0:     0x55f6ed12f8f5 - std::backtrace_rs::backtrace::libunwind::trace::h649ab3318d3445c5
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
   1:     0x55f6ed12f8f5 - std::backtrace_rs::backtrace::trace_unsynchronized::hf4bb60c3387150c3
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x55f6ed12f8f5 - std::sys::backtrace::_print_fmt::hd9186c800e44bd00
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:65:5
   3:     0x55f6ed12f8f5 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h1b9dad2a88e955ff
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:40:26
   4:     0x55f6ed15962b - core::fmt::rt::Argument::fmt::h351a7824f737a6a0
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/fmt/rt.rs:173:76
   5:     0x55f6ed15962b - core::fmt::write::h4b5a1270214bc4a7
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/fmt/mod.rs:1182:21
   6:     0x55f6ed12c36f - std::io::Write::write_fmt::h9d1e399061051a36
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/io/mod.rs:1827:15
   7:     0x55f6ed131111 - std::sys::backtrace::BacktraceLock::print::h68d41b51481bce5c
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:43:9
   8:     0x55f6ed131111 - std::panicking::default_hook::{{closure}}::h96ab15e9936be7ed
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:269:22
   9:     0x55f6ed130cb8 - std::panicking::default_hook::h3cacb9c27561ad33
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:293:9
  10:     0x55f6ec93a16a - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd212b1446b2b2077
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/alloc/src/boxed.rs:2084:9
  11:     0x55f6ec93a16a - test::test_main::{{closure}}::hd15ff34f3f68988b
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/test/src/lib.rs:136:21
  12:     0x55f6ed1319af - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hce7569f4ca5d1b64
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/alloc/src/boxed.rs:2084:9
  13:     0x55f6ed1319af - std::panicking::rust_panic_with_hook::hfe205f6954b2c97b
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:808:13
  14:     0x55f6ed1315d7 - std::panicking::begin_panic_handler::{{closure}}::h6cb44b3a50f28c44
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:674:13
  15:     0x55f6ed12fdb9 - std::sys::backtrace::__rust_end_short_backtrace::hf1c1f2a92799bb0e
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:168:18
  16:     0x55f6ed131264 - rust_begin_unwind
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:665:5
  17:     0x55f6ec737ca3 - core::panicking::panic_fmt::h3d8fc78294164da7
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/panicking.rs:74:14
  18:     0x55f6ec7cf445 - <test_large_pending_messge::SHandle as tentacle::traits::ServiceHandle>::handle_error::{{closure}}::h214f69a56e01ef3f
                               at /home/exec/Projects/github.com/nervosnetwork/tentacle/tentacle/tests/test_large_pending_messge.rs:75:18
  19:     0x55f6eca595d3 - <core::pin::Pin<P> as core::future::future::Future>::poll::h0a36d6b113274e45
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/future/future.rs:123:9
  20:     0x55f6ec7b08d9 - tentacle::service::Service<T,K>::run::{{closure}}::h76e95089c79caf11
                               at /home/exec/Projects/github.com/nervosnetwork/tentacle/tentacle/src/service.rs:290:76
  21:     0x55f6ec7cecb6 - test_large_pending_messge::test_large_message::{{closure}}::hf183350d064c23c7
                               at /home/exec/Projects/github.com/nervosnetwork/tentacle/tentacle/tests/test_large_pending_messge.rs:106:23
  22:     0x55f6ec865f0d - <core::pin::Pin<P> as core::future::future::Future>::poll::he84b3c4c1d90b418
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/future/future.rs:123:9
  23:     0x55f6ec872d3f - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h9efc363945f6ea6a
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/park.rs:281:63
  24:     0x55f6ec8719e2 - tokio::runtime::coop::with_budget::hf5dfab6bac12c9f1
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/coop.rs:107:5
  25:     0x55f6ec8719e2 - tokio::runtime::coop::budget::he84cd727d5f0f276
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/coop.rs:73:5
  26:     0x55f6ec8719e2 - tokio::runtime::park::CachedParkThread::block_on::h92af62b94b23a9c2
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/park.rs:281:31
  27:     0x55f6ec738b40 - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h27f689dd73fd3a4e
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/context/blocking.rs:66:9
  28:     0x55f6ec7d7d1e - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h6c9e00807f5c46cc
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/scheduler/multi_thread/mod.rs:87:13
  29:     0x55f6ec87b8a0 - tokio::runtime::context::runtime::enter_runtime::hffad3cffd561b69c
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/context/runtime.rs:65:16
  30:     0x55f6ec7d7c51 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h9926fa485ed20bcb
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/scheduler/multi_thread/mod.rs:86:9
  31:     0x55f6ec7ac8b2 - tokio::runtime::runtime::Runtime::block_on_inner::h5c33ff55dc1c4a0f
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/runtime.rs:370:45
  32:     0x55f6ec7acefe - tokio::runtime::runtime::Runtime::block_on::hf168ca46ba1d21a5
                               at /home/exec/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/runtime/runtime.rs:340:13
  33:     0x55f6ec90153f - test_large_pending_messge::test_large_message::ha875e6a3c6a5cb57
                               at /home/exec/Projects/github.com/nervosnetwork/tentacle/tentacle/tests/test_large_pending_messge.rs:100:5
  34:     0x55f6ec90191b - test_large_pending_messge::test_large_message_with_secio::hd394bf6779058fc5
                               at /home/exec/Projects/github.com/nervosnetwork/tentacle/tentacle/tests/test_large_pending_messge.rs:112:5
  35:     0x55f6ec7cf497 - test_large_pending_messge::test_large_message_with_secio::{{closure}}::h00fcdb05ad1cb777
                               at /home/exec/Projects/github.com/nervosnetwork/tentacle/tentacle/tests/test_large_pending_messge.rs:111:35
  36:     0x55f6ec7da646 - core::ops::function::FnOnce::call_once::h31daf96355d4e30d
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/ops/function.rs:250:5
  37:     0x55f6ec93e7ab - core::ops::function::FnOnce::call_once::h81f56a195fe4862e
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/ops/function.rs:250:5
  38:     0x55f6ec93e7ab - test::__rust_begin_short_backtrace::h919c79c8b896f9e2
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/test/src/lib.rs:624:18
  39:     0x55f6ec93e055 - test::run_test_in_process::{{closure}}::h7b3d5751c5b4dd75
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/test/src/lib.rs:647:60
  40:     0x55f6ec93e055 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hdabd61465e4dbd80
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/panic/unwind_safe.rs:272:9
  41:     0x55f6ec93e055 - std::panicking::try::do_call::hc813c79fd64b0a90
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:557:40
  42:     0x55f6ec93e055 - std::panicking::try::h055c5de7e7bfc209
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:521:19
  43:     0x55f6ec93e055 - std::panic::catch_unwind::h4265d6525195c807
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panic.rs:350:14
  44:     0x55f6ec93e055 - test::run_test_in_process::he72c277a35f96567
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/test/src/lib.rs:647:27
  45:     0x55f6ec93e055 - test::run_test::{{closure}}::h974e632522c0fbcf
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/test/src/lib.rs:568:43
  46:     0x55f6ec906044 - test::run_test::{{closure}}::hdc2c89ce8b601dda
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/test/src/lib.rs:598:41
  47:     0x55f6ec906044 - std::sys::backtrace::__rust_begin_short_backtrace::h342cb8e53aeb2076
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:152:18
  48:     0x55f6ec909772 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h67b1b5c1709ad95b
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/thread/mod.rs:538:17
  49:     0x55f6ec909772 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hd8c7a030ea8b7676
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/panic/unwind_safe.rs:272:9
  50:     0x55f6ec909772 - std::panicking::try::do_call::h512c2ab2c15b7d31
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:557:40
  51:     0x55f6ec909772 - std::panicking::try::h5c2903f8937bc868
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:521:19
  52:     0x55f6ec909772 - std::panic::catch_unwind::h242c80217c2dbece
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panic.rs:350:14
  53:     0x55f6ec909772 - std::thread::Builder::spawn_unchecked_::{{closure}}::h6cb4494ebdd8caf7
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/thread/mod.rs:537:30
  54:     0x55f6ec909772 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h42193b008049ba94
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/ops/function.rs:250:5
  55:     0x55f6ed135eeb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::ha1963004222e7822
error: test failed, to rerun pass `-p tentacle --test test_large_pending_messge`
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/alloc/src/boxed.rs:2070:9
  56:     0x55f6ed135eeb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h1086ced1f7c494c2
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/alloc/src/boxed.rs:2070:9
  57:     0x55f6ed135eeb - std::sys::pal::unix::thread::Thread::new::thread_start::ha8af9c992ef0b208
                               at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/pal/unix/thread.rs:108:17
  58:     0x7fc784bbe272 - start_thread
  59:     0x7fc784c39dec - clone3
  60:                0x0 - <unknown>


failures:
    test_large_message_with_secio

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s

@eval-exec eval-exec changed the title make test failed: test_large_message_with_secio failed: Unexpected error: ProtocolSelectError make test failed on Linux: test_large_message_with_secio failed: Unexpected error: ProtocolSelectError Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant