Closed zone117x closed 2 years ago
If you can reproduce, can you please provide the stack trace for all the threads? bt all
Thanks!
All threads:
$ lldb --attach-pid 22603
(lldb) process attach --pid 22603
Process 22603 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
frame #0: 0x00007fff68d6d756 libsystem_kernel.dylib`__semwait_signal + 10
libsystem_kernel.dylib`__semwait_signal:
-> 0x7fff68d6d756 <+10>: jae 0x7fff68d6d760 ; <+20>
0x7fff68d6d758 <+12>: movq %rax, %rdi
0x7fff68d6d75b <+15>: jmp 0x7fff68d6c22d ; cerror
0x7fff68d6d760 <+20>: retq
Target 0: (stacks-node) stopped.
Executable module set to "/Users/matt/Projects/stacks-blockchain-merging/target/release/stacks-node".
Architecture set to: x86_64h-apple-macosx-.
(lldb) bt all
error: need to add support for DW_TAG_base_type '()' encoded with DW_ATE = 0x7, bit_size = 0
error: need to add support for DW_TAG_base_type '()' encoded with DW_ATE = 0x7, bit_size = 0
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff68d6d756 libsystem_kernel.dylib`__semwait_signal + 10
frame #1: 0x00007fff68cf0eea libsystem_c.dylib`nanosleep + 196
frame #2: 0x00000001098df7b0 stacks-node`std::thread::sleep::h73abd6b6c0d95d1d [inlined] std::sys::unix::thread::Thread::sleep::h92abcea5a6a22108 at thread.rs:164:20 [opt]
frame #3: 0x00000001098df770 stacks-node`std::thread::sleep::h73abd6b6c0d95d1d at mod.rs:792 [opt]
frame #4: 0x0000000108d1a627 stacks-node`stacks_node::burnchains::bitcoin_regtest_controller::BitcoinRegtestController::wait_for_sortitions::hbc014834b27c4857(self=0x00007ffee703f878, height_to_wait=Option<u64> @ 0x00007facac0eb480) at bitcoin_regtest_controller.rs:1327:13 [opt]
frame #5: 0x0000000108c3b66f stacks-node`stacks_node::run_loop::neon::RunLoop::start::hcd08cb6086a1c1e9(self=<unavailable>, burnchain_opt=Option<blockstack_lib::burnchains::Burnchain> @ 0x00007ffee7047030, mine_start=<unavailable>) at neon.rs:272:33 [opt]
frame #6: 0x0000000108cae674 stacks-node`stacks_node::main::h437665d13b6cd0a7 at main.rs:158:9 [opt]
frame #7: 0x0000000108d5c57a stacks-node`std::sys_common::backtrace::__rust_begin_short_backtrace::h2a25c0ef8f2b7d22 [inlined] core::ops::function::FnOnce::call_once::h5221dc738099f80d((null)=<unavailable>) at function.rs:227:5 [opt]
frame #8: 0x0000000108d5c578 stacks-node`std::sys_common::backtrace::__rust_begin_short_backtrace::h2a25c0ef8f2b7d22(f=<unavailable>) at backtrace.rs:125 [opt]
frame #9: 0x0000000108d6240c stacks-node`std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h3f3f9c822ccc5691 at rt.rs:66:18 [opt]
frame #10: 0x00000001098ef9d4 stacks-node`std::rt::lang_start_internal::h36ccce6e8a047133 [inlined] core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h81f763a559f81b5c at function.rs:259:13 [opt]
frame #11: 0x00000001098ef9cd stacks-node`std::rt::lang_start_internal::h36ccce6e8a047133 [inlined] std::panicking::try::do_call::h8f7e7501b4b6c841 at panicking.rs:381 [opt]
frame #12: 0x00000001098ef9cd stacks-node`std::rt::lang_start_internal::h36ccce6e8a047133 [inlined] std::panicking::try::h5def58989e0f2c84 at panicking.rs:345 [opt]
frame #13: 0x00000001098ef9cd stacks-node`std::rt::lang_start_internal::h36ccce6e8a047133 [inlined] std::panic::catch_unwind::h8210e1d7d92e8f91 at panic.rs:396 [opt]
frame #14: 0x00000001098ef9cd stacks-node`std::rt::lang_start_internal::h36ccce6e8a047133 at rt.rs:51 [opt]
frame #15: 0x0000000108caf1c9 stacks-node`main + 41
frame #16: 0x00007fff68c29cc9 libdyld.dylib`start + 1
thread #2, name = 'ctrl-c'
frame #0: 0x00007fff68d6b81e libsystem_kernel.dylib`read + 10
frame #1: 0x0000000108dc13fb stacks-node`nix::unistd::read::h0ac1dc01f7a47096(fd=<unavailable>, buf=<unavailable>) at unistd.rs:991:24 [opt]
frame #2: 0x0000000108d75921 stacks-node`ctrlc::set_handler::_$u7b$$u7b$closure$u7d$$u7d$::h813672e3b192b3b8 at mod.rs:139:15 [opt]
frame #3: 0x0000000108d75909 stacks-node`ctrlc::set_handler::_$u7b$$u7b$closure$u7d$$u7d$::h813672e3b192b3b8 at lib.rs:111 [opt]
frame #4: 0x0000000108d5f7e9 stacks-node`std::sys_common::backtrace::__rust_begin_short_backtrace::hddcde870272be07d(f=<unavailable>) at backtrace.rs:125:18 [opt]
frame #5: 0x0000000108d664c4 stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h50d48fa4ff8a97dd [inlined] std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::hb1000583e7396e8b at mod.rs:474:17 [opt]
frame #6: 0x0000000108d664bf stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h50d48fa4ff8a97dd [inlined] _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h1cb490d06fd1ce23(self=<unavailable>) at panic.rs:322 [opt]
frame #7: 0x0000000108d664bf stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h50d48fa4ff8a97dd at panicking.rs:381 [opt]
frame #8: 0x0000000108d664bf stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h50d48fa4ff8a97dd at panicking.rs:345 [opt]
frame #9: 0x0000000108d664bf stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h50d48fa4ff8a97dd [inlined] std::panic::catch_unwind::h3824cda6fd9d038a(f=<unavailable>) at panic.rs:396 [opt]
frame #10: 0x0000000108d664bf stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h50d48fa4ff8a97dd [inlined] std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::had1c36d54f86d88e at mod.rs:473 [opt]
frame #11: 0x0000000108d6641a stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h50d48fa4ff8a97dd((null)=0x00007f8651904250, (null)=<unavailable>) at function.rs:227 [opt]
frame #12: 0x00000001098f3a7d stacks-node`std::sys::unix::thread::Thread::new::thread_start::hedb7cc0d930a8f40 [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::h22f4d58d7c8a821c at boxed.rs:1307:9 [opt]
frame #13: 0x00000001098f3a77 stacks-node`std::sys::unix::thread::Thread::new::thread_start::hedb7cc0d930a8f40 [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::haa812e1889643845 at boxed.rs:1307 [opt]
frame #14: 0x00000001098f3a6e stacks-node`std::sys::unix::thread::Thread::new::thread_start::hedb7cc0d930a8f40 at thread.rs:71 [opt]
frame #15: 0x00007fff68e2e109 libsystem_pthread.dylib`_pthread_start + 148
frame #16: 0x00007fff68e29b8b libsystem_pthread.dylib`thread_start + 15
thread #3, name = 'chains-coordinator'
frame #0: 0x00007fff68d6d882 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff68e2e425 libsystem_pthread.dylib`_pthread_cond_wait + 698
frame #2: 0x00000001094c278f stacks-node`blockstack_lib::chainstate::coordinator::comm::CoordinatorReceivers::wait_on::hba425e7931aa3126 [inlined] std::sys::unix::condvar::Condvar::wait::hda4f2ed95c6070cd(self=<unavailable>, mutex=<unavailable>) at condvar.rs:71:17 [opt]
frame #3: 0x00000001094c2784 stacks-node`blockstack_lib::chainstate::coordinator::comm::CoordinatorReceivers::wait_on::hba425e7931aa3126 [inlined] std::sys_common::condvar::Condvar::wait::h12340c550f4b6646(self=<unavailable>, mutex=0x00007f8651904a80) at condvar.rs:44 [opt]
frame #4: 0x00000001094c276c stacks-node`blockstack_lib::chainstate::coordinator::comm::CoordinatorReceivers::wait_on::hba425e7931aa3126 at condvar.rs:188 [opt]
frame #5: 0x00000001094c276c stacks-node`blockstack_lib::chainstate::coordinator::comm::CoordinatorReceivers::wait_on::hba425e7931aa3126(self=<unavailable>) at comm.rs:122 [opt]
frame #6: 0x0000000108c0b5ed stacks-node`blockstack_lib::chainstate::coordinator::ChainsCoordinator$LT$T$C$blockstack_lib..chainstate..coordinator..comm..ArcCounterCoordinatorNotices$C$blockstack_lib..chainstate..coordinator..OnChainRewardSetProvider$GT$::run::h53068dea5da6e7c4(chain_state_db=<unavailable>, burnchain=<unavailable>, attachments_tx=<unavailable>, dispatcher=<unavailable>, comms=<unavailable>, atlas_config=<unavailable>) at mod.rs:295:19 [opt]
frame #7: 0x0000000108d5c659 stacks-node`std::sys_common::backtrace::__rust_begin_short_backtrace::h497736db1d3cc093 [inlined] stacks_node::run_loop::neon::RunLoop::start::_$u7b$$u7b$closure$u7d$$u7d$::h5c47e30aa1bca79a at neon.rs:261:17 [opt]
frame #8: 0x0000000108d5c5c9 stacks-node`std::sys_common::backtrace::__rust_begin_short_backtrace::h497736db1d3cc093(f=<unavailable>) at backtrace.rs:125 [opt]
frame #9: 0x0000000108d666f1 stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5b8ec34011982225 [inlined] std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h44777b5ee157c3e1 at mod.rs:474:17 [opt]
frame #10: 0x0000000108d666cd stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5b8ec34011982225 [inlined] _$LT$std..panic..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h83bdd360b1a7a892(self=<unavailable>) at panic.rs:322 [opt]
frame #11: 0x0000000108d666cd stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5b8ec34011982225 at panicking.rs:381 [opt]
frame #12: 0x0000000108d666cd stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5b8ec34011982225 at panicking.rs:345 [opt]
frame #13: 0x0000000108d666cd stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5b8ec34011982225 [inlined] std::panic::catch_unwind::h499dd2a84ae61cad(f=<unavailable>) at panic.rs:396 [opt]
frame #14: 0x0000000108d666cd stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5b8ec34011982225 [inlined] std::thread::Builder::spawn_unchecked::_$u7b$$u7b$closure$u7d$$u7d$::h2eaeb14f08246660 at mod.rs:473 [opt]
frame #15: 0x0000000108d6661d stacks-node`core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h5b8ec34011982225((null)=0x00007f865300ba00, (null)=<unavailable>) at function.rs:227 [opt]
frame #16: 0x00000001098f3a7d stacks-node`std::sys::unix::thread::Thread::new::thread_start::hedb7cc0d930a8f40 [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::h22f4d58d7c8a821c at boxed.rs:1307:9 [opt]
frame #17: 0x00000001098f3a77 stacks-node`std::sys::unix::thread::Thread::new::thread_start::hedb7cc0d930a8f40 [inlined] _$LT$alloc..boxed..Box$LT$F$C$A$GT$$u20$as$u20$core..ops..function..FnOnce$LT$Args$GT$$GT$::call_once::haa812e1889643845 at boxed.rs:1307 [opt]
frame #18: 0x00000001098f3a6e stacks-node`std::sys::unix::thread::Thread::new::thread_start::hedb7cc0d930a8f40 at thread.rs:71 [opt]
frame #19: 0x00007fff68e2e109 libsystem_pthread.dylib`_pthread_start + 148
frame #20: 0x00007fff68e29b8b libsystem_pthread.dylib`thread_start + 15
(lldb)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed. Please reopen if needed.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Around half the time when restarting everything works as expected. Half the time the node deadlocks.
lldb dump:
Debug log: