I noticed it while testing current master (f0d6487e290761a4fb03798240a351b5fddfdb38).
The node is in IBD: 2020-04-03T15:23:06Z Synchronizing blockheaders, height: 69998 (~12.07%)
And I’m using Ubuntu 16.04.
I will be happy to let someone willing to see it into the VM I’m using and provide instructions to reproduce.
Here’s how I compiled it:
./configure --with-incompatible-bdb PYTHONPATH= --disable-shared --with-pic --enable-benchmark=no --with-bignum=no --enable-module-recovery --disable-jni --disable-shared --with-pic --enable-benchmark=no --with-bignum=no --enable-module-recovery --disable-jni --no-create --no-recursion
Steps to reproduce (it happens every time I repeat this sequence):
- src/bitcoind
- wait til see first message
New outbound peer connected: version
- click Ctrl+ C (afaik this is SIGINT)
- The process stuck with these logs at the end:
02020-04-03T15:23:12Z Synchronizing blockheaders, height: 73998 (~12.73%)
1^C2020-04-03T15:23:13Z P2P peers available. Skipped DNS seeding.
22020-04-03T15:23:13Z dnsseed thread exit
32020-04-03T15:23:13Z tor: Thread interrupt
42020-04-03T15:23:13Z Shutdown: In progress...
52020-04-03T15:23:13Z torcontrol thread exit
62020-04-03T15:23:13Z addcon thread exit
72020-04-03T15:23:13Z net thread exit
82020-04-03T15:23:13Z msghand thread exit
92020-04-03T15:23:15Z opencon thread exit
102020-04-03T15:23:15Z scheduler thread exit
112020-04-03T15:23:15Z Dumped mempool: 4e-06s to copy, 0.002802s to dump
122020-04-03T15:23:15Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
132020-04-03T15:23:15Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
142020-04-03T15:23:15Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
152020-04-03T15:23:15Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
- Wait for several minutes, nothing happens.
- Try kill $PID, doesn’t do anything
- Finally, do kill -9 $PID to get rid of the process
So, the process doesn’t take much CPU (0.4%), and gdb says it’s 2 threads:
0 Id Target Id Frame
1* 1 Thread 0x7fd51d48a740 (LWP 31824) "b-shutoff" pthread_cond_wait@@GLIBC_2.3.2 ()
2 at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
3 2 Thread 0x7fd507fff700 (LWP 31834) "bitcoind" pthread_cond_wait@@GLIBC_2.3.2 ()
4 at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
Backtrace is here.
Thanks to @vasild for letting me know how to call all that gdb stuff :)