My Bicoind stuck with this call futex(0x1ef02ec, FUTEX_WAIT_PRIVATE, 1, NULL) and high cpu load #4051

issue cmingxu opened this issue on April 13, 2014
  1. cmingxu commented at 12:20 PM on April 13, 2014: none

    Hi, i constantly came across this issue and i have to restart my bitcoind several times a day.

    i run a bitcoind with version 0.8.6 on a linux machine, it usually failed to give JSON-RPC any response(TIMEOUT). when i check the process i found it hang with the call futex and have very high cpu load.

    it will be helpful if anybody have any clue, thanks in advanced

  2. laanwj commented at 1:46 PM on April 13, 2014: member

    Can you gdb into the process and give us a traceback for the thread(s) that hangs?

    Also; anything unusual in the debug.log?

  3. cmingxu commented at 4:55 AM on April 14, 2014: none

    (gdb) info threads Id Target Id Frame 20 Thread 0x7f75e7ca5700 (LWP 27738) "bitcoind" 0x00007f75e88840fe in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 19 Thread 0x7f75e74a4700 (LWP 27739) "bitcoin-scriptc" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 18 Thread 0x7f75e6ca3700 (LWP 27740) "bitcoin-scriptc" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 17 Thread 0x7f75e64a2700 (LWP 27741) "bitcoin-scriptc" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 16 Thread 0x7f75e5ca1700 (LWP 27742) "bitcoin-scriptc" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 15 Thread 0x7f75e54a0700 (LWP 27743) "bitcoin-scriptc" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 14 Thread 0x7f75e4c9f700 (LWP 27744) "bitcoin-scriptc" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 13 Thread 0x7f75cffff700 (LWP 27745) "bitcoin-scriptc" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 12 Thread 0x7f75b7c76700 (LWP 27944) "bitcoind" 0x000000000079cda0 in ?? () 11 Thread 0x7f75b5438700 (LWP 27952) "bitcoin-net" 0x00007f75e7d93763 in select () from /lib/x86_64-linux-gnu/libc.so.6 10 Thread 0x7f75b4c37700 (LWP 27953) "bitcoin-addcon" 0x00007f75e88840fe in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 9 Thread 0x7f759ffff700 (LWP 27954) "bitcoin-opencon" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 8 Thread 0x7f759f7fe700 (LWP 27955) "bitcoin-msghand" 0x00000000007ac93c in ?? () 7 Thread 0x7f759effd700 (LWP 27956) "bitcoin-dumpadd" 0x00007f75e88840fe in pthread_cond_timedwait@@GLIBC_2.3---Type <return> to continue, or q <return> to quit--- .2 () from /lib/x86_64-linux-gnu/libpthread.so.0 6 Thread 0x7f759e7fc700 (LWP 27957) "bitcoind" 0x00007f75e7d9aa93 in epoll_wait () from /lib/x86_64-linux-gnu/libc.so.6 5 Thread 0x7f759dffb700 (LWP 27958) "bitcoind" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 4 Thread 0x7f759d7fa700 (LWP 27959) "bitcoind" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 3 Thread 0x7f759cff9700 (LWP 27960) "bitcoind" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0 2 Thread 0x7f757ffff700 (LWP 27961) "bitcoin-wallet" 0x00007f75e88840fe in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0

    • 1 Thread 0x7f75e90bf740 (LWP 27737) "bitcoind" 0x00007f75e8883d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
  4. cmingxu commented at 4:55 AM on April 14, 2014: none

    2014-04-14 04:55:14 received block 0000000000000000e02dc60c31549ba43aa7a4d0ab9eb8abda030b80e26264eb 2014-04-14 04:55:14 ERROR: ProcessBlock() : already have block 270572 0000000000000000e02dc60c31549ba43aa7a4d0ab9eb8abda030b80e26264eb 2014-04-14 04:55:14 received block 00000000000000019d2c06191a81d51027b2d738552ebf8566219301dc800621 2014-04-14 04:55:14 ERROR: ProcessBlock() : already have block 270559 00000000000000019d2c06191a81d51027b2d738552ebf8566219301dc800621 2014-04-14 04:55:14 received block 0000000000000002890e15edd582772649775bbe7618c7fb7c7930d590b307e6 2014-04-14 04:55:16 SetBestChain: new best=0000000000000002890e15edd582772649775bbe7618c7fb7c7930d590b307e6 height=270609 log2_work=74.061637 tx=27447111 date=2013-11-20 13:11:37 progress=0.541591 2014-04-14 04:55:16 ProcessBlock: ACCEPTED 2014-04-14 04:55:16 received block 0000000000000002890e15edd582772649775bbe7618c7fb7c7930d590b307e6 2014-04-14 04:55:16 ERROR: ProcessBlock() : already have block 270609 0000000000000002890e15edd582772649775bbe7618c7fb7c7930d590b307e6 2014-04-14 04:55:16 received block 0000000000000001bc303de18d5fc8f3516d6226241a21164c7523914bc0410f 2014-04-14 04:55:16 ERROR: ProcessBlock() : already have block 270567 0000000000000001bc303de18d5fc8f3516d6226241a21164c7523914bc0410f 2014-04-14 04:55:16 received block 00000000000000057f124916e87fee0c7c5158f6395dba4830806644d91bada7 2014-04-14 04:55:16 ERROR: ProcessBlock() : already have block 270573 00000000000000057f124916e87fee0c7c5158f6395dba4830806644d91bada7 2014-04-14 04:55:16 received block 0000000000000002e1ce99bab8a494cda6000dce4b89fc8f8e6515a23d166818 2014-04-14 04:55:19 SetBestChain: new best=0000000000000002e1ce99bab8a494cda6000dce4b89fc8f8e6515a23d166818 height=270610 log2_work=74.061829 tx=27447443 date=2013-11-20 13:16:48 progress=0.541605 2014-04-14 04:55:19 ProcessBlock: ACCEPTED 2014-04-14 04:55:19 received block 0000000000000002e17bc0a5590b0608fa72d0e3a336c2d68a90c5d955716e93 2014-04-14 04:55:19 ERROR: ProcessBlock() : already have block 270568 0000000000000002e17bc0a5590b0608fa72d0e3a336c2d68a90c5d955716e93 2014-04-14 04:55:19 received block 00000000000000058813ca25de2d2d8821c4ae39dcdced5f63609c48d59ad0ce 2014-04-14 04:55:19 ERROR: ProcessBlock() : already have block 270560 00000000000000058813ca25de2d2d8821c4ae39dcdced5f63609c48d59ad0ce ^C

  5. cmingxu commented at 4:57 AM on April 14, 2014: none

    Above is the output when i list thread in gdb and the debug.log. hope this can help, i am happy to provide more info, thanks.

  6. laanwj added the label Bug on May 2, 2014
  7. unknown cross-referenced this on Jul 13, 2014 from issue Stuck in futex(0xb71905fc, FUTEX_WAIT_PRIVATE, 1, NULL by ghost
  8. laanwj closed this on Oct 27, 2015

  9. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:55 UTC