Open
Description
I met this error at the current master branch(bc771a4).
I run the discovery5 test.ts 11 times. They succeed at 9 times. A test failed because of a different error. A test failed because of this error.
I used this command:
yarn mocha -r ts-node/register --timeout 10000 src/e2e.long/discovery5.test.ts
Below is the error message:
====================
stack backtrace:
0: 0x5637bb296273 - backtrace::backtrace::libunwind::trace::h389b7f78776dda1f
at /home/juhyung/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/backtrace/libunwind.rs:53
- backtrace::backtrace::trace::h35e146709d259c8b
at /home/juhyung/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/backtrace/mod.rs:42
1: 0x5637bb2935e3 - backtrace::capture::Backtrace::new_unresolved::h2acfb8aeff36f932
at /home/juhyung/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/capture.rs:88
2: 0x5637bb293556 - backtrace::capture::Backtrace::new::h32feb04c4b84be54
at /home/juhyung/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.7/src/capture.rs:63
3: 0x5637b98e661a - panic_hook::panic_message::h4db40ff8aee25363
at util/panic_hook/src/lib.rs:74
4: 0x5637b98e5e55 - panic_hook::panic_hook::h332960d4ef09703e
at util/panic_hook/src/lib.rs:43
5: 0x5637b98e8f87 - core::ops::function::Fn::call::ha78be1dacd140af8
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/ops/function.rs:72
6: 0x5637bb2ce65b - std::panicking::rust_panic_with_hook::ha0c7ca5b39baa9d5
at src/libstd/panicking.rs:490
7: 0x5637bb2ce23a - rust_begin_unwind
at src/libstd/panicking.rs:388
8: 0x5637bb2f5f60 - core::panicking::panic_fmt::h106d7128cbbc7cd2
at src/libcore/panicking.rs:101
9: 0x5637bb2f5d62 - core::option::expect_none_failed::hfcafefc70a7975bb
at src/libcore/option.rs:1272
10: 0x5637baac42e4 - core::result::Result<T,E>::unwrap::hdb946cd6d9a894ea
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/result.rs:1005
11: 0x5637baab94ee - codechain_crypto::aes::decrypt::h21e077a0f16a0afa
at /home/juhyung/.cargo/git/checkouts/rust-codechain-crypto-81d89da97780f22a/3002ed3/src/aes.rs:43
12: 0x5637ba1d6a33 - codechain_network::routing_table::decrypt_nonce::h9ce36753c2c1983a
at network/src/routing_table.rs:620
13: 0x5637ba1d4feb - codechain_network::routing_table::RoutingTable::set_initiator_establish::ha9eabc7afaa7d5df
at network/src/routing_table.rs:513
14: 0x5637ba2a2e9f - <codechain_network::p2p::handler::Handler as codechain_io::IoHandler<codechain_network::p2p::handler::Message>>::stream_readable::h489585ca5efd3a37
at network/src/p2p/handler.rs:912
15: 0x5637ba1f5df5 - codechain_io::worker::Worker::do_work::h3f4d6699c74bee95
at /mnt/sonnyexternal/juhyung/code/kodebox/foundry/util/io/src/worker.rs:122
16: 0x5637ba1f74fc - codechain_io::worker::Worker::work_loop::h283ccb40ec5dd2c1
at /mnt/sonnyexternal/juhyung/code/kodebox/foundry/util/io/src/worker.rs:110
17: 0x5637ba1f5ba2 - codechain_io::worker::Worker::new::{{closure}}::h193f3065f32fdca7
at /mnt/sonnyexternal/juhyung/code/kodebox/foundry/util/io/src/worker.rs:84
18: 0x5637ba2c32e2 - std::sys_common::backtrace::__rust_begin_short_backtrace::h812eb05e4b5329b8
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/sys_common/backtrace.rs:130
19: 0x5637ba2b6f42 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::he631a29fe360477a
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/thread/mod.rs:475
20: 0x5637ba2c3650 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h6eaff2580ca0094c
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/panic.rs:318
21: 0x5637ba2c4003 - std::panicking::try::do_call::h815471931bf1a096
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/panicking.rs:297
22: 0x5637ba2c41bc - __rust_try
23: 0x5637ba2c3dd3 - std::panicking::try::h28f2ba4d50eb9f37
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/panicking.rs:274
24: 0x5637ba2c3722 - std::panic::catch_unwind::he845036214da02b9
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/panic.rs:394
25: 0x5637ba2b69a8 - std::thread::Builder::spawn_unchecked::{{closure}}::h4eb589dd385e1965
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/thread/mod.rs:474
26: 0x5637ba2180fe - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4630174f3ad4646d
at /home/juhyung/.rustup/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/ops/function.rs:232
27: 0x5637bb2d6519 - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::hf311c88f1fadb9b8
at /rustc/d3fb005a39e62501b8b0b356166e515ae24e2e54/src/liballoc/boxed.rs:1076
- <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h8cfb7235b81393ef
at /rustc/d3fb005a39e62501b8b0b356166e515ae24e2e54/src/liballoc/boxed.rs:1076
- std::sys::unix::thread::Thread::new::thread_start::hf745c8cf29a89648
at src/libstd/sys/unix/thread.rs:87
28: 0x7f72ff31e608 - start_thread
29: 0x7f72ff228102 - __clone
30: 0x0 - <unknown>
Thread 'P2P Worker #2' panicked at 'called `Result::unwrap()` on an `Err` value: BlockModeError', /home/juhyung/.cargo/git/checkouts/rust-codechain-crypto-81d89da97780f22a/3002ed3/src/aes.rs:43
This is a bug. Please report it at:
https://github.com/CodeChain-io/codechain/issues/new