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

'io_service' panicked at 'failed to join thread: Resource deadlock avoided (os error 11)' #2379

Open
Thegaram opened this issue Jan 19, 2022 · 0 comments
Labels
bug Something isn't working P3 Low Priority

Comments

@Thegaram
Copy link
Contributor

2022-01-19T07:31:23.346000Z TestFramework (INFO): 3 generate block 0xe7191a448fdf74fcf8822392ecbb1a4c8c6fa13f3e6d32f82c27c8006046c2f3
2022-01-19T07:31:23.405000Z TestFramework (INFO): 6 generate block 0x033d4dd7bde8fe33f06dc48f89f97020bf6fa71fc81b8bd4c298dd10ee5394cf
2022-01-19T07:31:23.459000Z TestFramework (INFO): 4 generate block 0x65ba2a633ec21627e5d6d8016578d93e8a6bb8d0208d1a54c428e417f08d6af8
2022-01-19T07:31:23.534000Z TestFramework (INFO): 2 generate block 0x4cec0ef1cc75431e55afe16df5beaeca6b01658715341a11121de24aa6fb77eb
2022-01-19T07:31:23.591000Z TestFramework (INFO): 0 generate block 0xf36683f109e6116b12cba6f2234a7c048f1e0c88103cca57783c909ab66f96ce
2022-01-19T07:31:23.598000Z TestFramework (INFO): stop 2
2022-01-19T07:31:25.111000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/Users/user/conflux-rust/tests/test_framework/test_framework.py", line 214, in main
    self.run_test()
  File "/Users/user/conflux-rust/./tests/full_node_tests/p2p_era_test.py", line 76, in run_test
    self.maybe_restart_node(chosen_peer, self.stop_probability, self.clean_probability)
  File "/Users/user/conflux-rust/tests/test_framework/test_framework.py", line 410, in maybe_restart_node
    self.stop_node(i, clean=clean_data)
  File "/Users/user/conflux-rust/tests/test_framework/test_framework.py", line 393, in stop_node
    self.nodes[i].stop_node(expected_stderr, kill, wait)
  File "/Users/user/conflux-rust/tests/test_framework/test_node.py", line 265, in stop_node
    raise AssertionError("Unexpected stderr {} != {} from {}:{} index={}".format(
AssertionError: Unexpected stderr thread 'io_service' panicked at 'failed to join thread: Resource deadlock avoided (os error 11)', library/std/src/sys/unix/thread.rs:182:13
stack backtrace:
   0: rust_begin_unwind
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:515:5
   1: std::panicking::begin_panic_fmt
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:457:5
   2: std::sys::unix::thread::Thread::join
             at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys/unix/thread.rs:182:13
   3: std::thread::JoinHandle<T>::join
   4: <io::worker::SocketWorker as core::ops::drop::Drop>::drop
   5: core::ptr::drop_in_place<(crossbeam_channel::channel::Sender<io::worker::Work<network::NetworkIoMessage>>,io::worker::SocketWorker)>
   6: core::ptr::drop_in_place<io::service_mio::IoManager<network::NetworkIoMessage>>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. !=  from 127.0.0.1:11002 index=2
2022-01-19T07:31:25.117000Z TestFramework (INFO): Stopping nodes
2022-01-19T07:31:28.706000Z TestFramework (WARNING): Not cleaning up dir /var/folders/x6/xftc2q7s4xv8yv7l3w3f2td40000gn/T/conflux_test_y5ommunc
2022-01-19T07:31:28.706000Z TestFramework (ERROR): Test failed. Test logging available at /var/folders/x6/xftc2q7s4xv8yv7l3w3f2td40000gn/T/conflux_test_y5ommunc/test_framework.log
2022-01-19T07:31:28.706000Z TestFramework (ERROR): Hint: Call /Users/user/conflux-rust/tests/combine_logs.py '/var/folders/x6/xftc2q7s4xv8yv7l3w3f2td40000gn/T/conflux_test_y5ommunc' to consolidate all logs

real	1m41.721s
user	0m34.704s
sys	0m59.035s
The program fails at iteration 17

(Potentially) related issues: [1] [2]

@Thegaram Thegaram added bug Something isn't working P3 Low Priority labels Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P3 Low Priority
Projects
None yet
Development

No branches or pull requests

1 participant