bitcoind crashes when logging time data #589

issue mndrix opened this issue on October 21, 2011
  1. mndrix commented at 2:44 AM on October 21, 2011: contributor

    I'm running version 0.4.0 (observed in 0.3.24 too) on a couple Linux servers.  Every 2-3 weeks, the daemon crashes and I have to restart it.  In every instance, the last entry in debug.log is one like the following:

    Added time data, samples 28503, offset +0 (+0 minutes)
    -747598944  -747551416  -747428248 ... -201976  -1940
    

    The daemon crashes while it's printing the list of time samples.  In the above example, the median offset was "+0" but "-1940" was the last sample printed.

    I haven't noticed any other patterns.  Is there any other information I can provide to help narrow down the problem?

    Original posted on the forum

  2. gavinandresen commented at 1:38 AM on October 25, 2011: contributor

    "The daemon crashes" -- does it crash with a segfault or does it stop responding to JSON-RPC requests?

    What is it busy doing-- responding to getwork requests? Handling users' wallets? Is it under heavy JSON-RPC load?

    Can you compile -g -ggdb and run under the gdb debugger?

    Can you compile -DDEBUG_LOCKORDER and then run? Previous hangs were due to deadlocks between threads...

    Oh, and what variation of Linux?

  3. mndrix commented at 2:29 PM on October 25, 2011: contributor

    does it crash with a segfault or does it stop responding to JSON-RPC requests?

    As far as I can tell, there's no segfault. The process simply exits. That made me think the OOM killer had killed the daemon, but kernel logs show no OOM killer activity in the last 2 years.

    What is it busy doing-- responding to getwork requests? Handling users' wallets? Is it under heavy JSON-RPC load?

    Other than activity required for staying connected as a peer, the daemon is completely idle. I manually execute an API request once every few days, but otherwise it receives no API activity.

    Can you compile -g -ggdb and run under the gdb debugger?

    Can you compile -DDEBUG_LOCKORDER and then run? Previous hangs were due to deadlocks between threads...

    So far I've been unable to compile Bitcoin from source. I'll try again now that QT is merged. I'll post back with further details.

    Oh, and what variation of Linux?

    Debian 6.0.3

  4. laanwj commented at 6:57 PM on April 2, 2012: member

    Any updates on this? Anyone been able to reproduce this?

  5. mndrix commented at 7:00 PM on April 2, 2012: contributor

    I haven't had this problem since 1c4aab926e0b25e0c896d4703d858eda1eb14ea5

  6. laanwj commented at 7:06 PM on April 2, 2012: member

    Ok, great to hear that!

    I'll close this issue then, you can post here or open a new one if you happen to have the problem again.

  7. laanwj closed this on Apr 2, 2012

  8. ptschip referenced this in commit be8a4dfe40 on May 19, 2017
  9. rajarshimaitra referenced this in commit 52d9ae0c91 on Aug 5, 2021
  10. MarcoFalke locked this on Sep 8, 2021
Labels

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-03 00:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me