Strange error - bitcoind terminated #8196

issue p3yot3 opened this issue on June 12, 2016
  1. p3yot3 commented at 9:07 PM on June 12, 2016: none

    Hi all,

    I just had this error - new to me:

    *** stack smashing detected ***: bitcoind terminated

    ..this is the latest repo running on Ubuntu 64bit - any ideas?

  2. jonasschnelli commented at 7:02 AM on June 13, 2016: contributor

    Can you post the debug.log and maybe the time when the "stack smashing" was detected?

  3. p3yot3 commented at 10:24 AM on June 13, 2016: none

    The "stack smashing" error message was only in my console, there's nothing mentioned in my logs though. Here are the logs from when the client Bitcoin version v0.12.99.0-3e4cf8f terminated:


    2016-06-12 23:44:56 socket send error Connection timed out (110) 2016-06-12 23:45:00 socket send error Connection timed out (110) 2016-06-12 23:45:07 socket recv error Connection timed out (110) 2016-06-12 23:45:18 socket recv error Connection timed out (110) 2016-06-12 23:45:18 UpdateTip: new best=0000000000000000033927d833b8c8b037a643d904b4924c1bbb83149944e3af height=416033 version=0x20000001 log2_work=84.820649 tx=135389797 date='2016-06-12 23:44:51' progress=1.000000 cache=53.2MiB(7183tx) warning='4 of last 100 blocks have unexpected version' 2016-06-12 23:45:23 connect() to 216.155.129.35:8333 failed after select(): Connection refused (111) 2016-06-12 23:45:27 receive version message: /bitcoinj:0.14.1/: version 70001, blocks=0, us=127.0.0.1:8333, peer=98 2016-06-12 23:45:31 ProcessMessages: advertising address 92..__.114:8333 [redacted] 2016-06-12 23:45:31 receive version message: /Satoshi:0.12.1/: version 70012, blocks=416033, us=92.3.33.114:39254, peer=99 2016-06-12 23:45:31 AdvertiseLocal: advertising address 92...114:8333 [redacted] 2016-06-12 23:45:34 receive version message: /bitcoinj:0.14.1/: version 70001, blocks=0, us=127.0.0.1:8333, peer=100 2016-06-12 23:45:37 connect() to 198.46.152.2:8333 failed after select(): Connection refused (111) 2016-06-12 23:45:37 ProcessMessages: advertising address 92.*..114:8333 [redacted] 2016-06-12 23:45:37 receive version message: /Satoshi:0.12.1/: version 70012, blocks=416033, us=92.3.33.114:38186, peer=101 2016-06-12 23:45:37 AdvertiseLocal: advertising address 92..__.114:8333 [redacted] 2016-06-12 23:45:52 receive version message: /bitnodes.21.co:0.1/: version 70002, blocks=416030, us=92.3.33.114:8333, peer=102 2016-06-12 23:45:52 AdvertiseLocal: advertising address 92..**.114:8333 [redacted] 2016-06-12 23:46:01 tor: Thread interrupt 2016-06-12 23:46:01 torcontrol thread exit 2016-06-12 23:46:01 msghand thread interrupt 2016-06-12 23:46:01 opencon thread interrupt 2016-06-12 23:46:01 scheduler thread interrupt 2016-06-12 23:46:01 addcon thread interrupt 2016-06-12 23:46:01 net thread interrupt 2016-06-12 23:46:01 Shutdown: In progress... 2016-06-12 23:46:01 StopNode() 2016-06-12 23:46:01 Shutdown: done 2016-06-12 23:47:07


    No idea why part of the log is in bold - ignore it.

  4. laanwj commented at 10:38 AM on June 13, 2016: member

    Looks like it happens during shutdown, if you got that crash only after sending the stop command yourself. Is that the case?

  5. laanwj added the label Bug on Jun 13, 2016
  6. laanwj commented at 9:36 AM on June 14, 2016: member

    Can you reproduce this?

  7. p3yot3 commented at 10:02 AM on June 14, 2016: none

    I didn't issue any stop command, it terminated itself with the "stack" error in my screen console. I've since reverted back to the stable version I'm afraid, so am unable to reproduce.

  8. laanwj commented at 10:04 AM on June 14, 2016: member

    There's nothing in that log to indicate that something else than RPC stop triggered the shutdown (it looks like a normal shutdown, even the final message Shutdown: done). Are you sure you quoted the right log?

  9. p3yot3 commented at 10:55 AM on June 14, 2016: none

    Hmmmm. I done a search for "stack" in the debug log but it showed no results, so I posted the shutdown log closest to when I received the "*** stack smashing detected ***: bitcoind terminated" error.

    I just done another search for "stack", "smashing" & "terminated" in the debug log - but nothing turns up, it's very strange.

    Edit: What does "stack smashing" mean actually?

  10. sipa commented at 10:56 AM on June 14, 2016: member

    That "stack smashing detected" will not be written to debug.log, but printed to the console.

  11. p3yot3 commented at 11:00 AM on June 14, 2016: none

    Right, that's where I saw it. Never seen or heard of that message before, that's why I thought I should report it. Maybe if that message was reported in the log it would be easier to locate the cause?

  12. sipa commented at 11:02 AM on June 14, 2016: member

    It can't be. It's not bitcoind's code that is doing this detection, but the built-in stack smashing detector, added by the compiler.

  13. laanwj commented at 1:15 PM on August 4, 2016: member

    We're lacking information to troubleshoot this.

    If this is an intermittent problem that happens randomly, I'd suggest starting bitcoind in gdb, then generating a backtrace if this happens and posting it here.

    To run bitcoind in gdb transparently, as well as possibly get a mail when it crashes, see my scripts here: https://gist.github.com/laanwj/29bc141fb8d10608651c

  14. fanquake closed this on Mar 6, 2018

  15. MarcoFalke 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-03 00:15 UTC

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