bug introduced in 0.3.23, crash when no network interfaces up. #340

issue nanotube opened this issue on June 24, 2011
  1. nanotube commented at 3:12 AM on June 24, 2011: none

    using the 32bit official linux binary build of bitcoin, on ubuntu lucid 32bit. when there are no network interfaces up (i.e., network cable disconnected), bitcoin client fails to start with a segfault. no such issue when a network cable is connected and an interface is up. no such issue when an interface is up, but firewall blocks all incoming and outgoing packets. if bitcoin is started, then network cable is unplugged, bitcoin hard crashes. issue does not occur with previous release, 0.3.22.

    gdb traceback of the segfault included below:

    $ gdb bitcoind
    GNU gdb (GDB) 7.1-ubuntu
    Copyright (C) 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "i486-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /home/dfolkins/bin/bitcoind...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /home/dfolkins/bin/bitcoind 
    [Thread debugging using libthread_db enabled]
    [New Thread 0xb7abbb70 (LWP 2010)]
    [New Thread 0xb72bab70 (LWP 2011)]
    [New Thread 0xb6ab9b70 (LWP 2012)]
    [New Thread 0xb62b8b70 (LWP 2013)]
    [New Thread 0xb5ab7b70 (LWP 2014)]
    [New Thread 0xb52b6b70 (LWP 2015)]
    [New Thread 0xb4aa7b70 (LWP 2016)]
    [New Thread 0xb42a6b70 (LWP 2017)]
    [Thread 0xb72bab70 (LWP 2011) exited]
    
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xb5ab7b70 (LWP 2014)]
    0x002e150b in vfprintf () from /lib/tls/i686/cmov/libc.so.6
    (gdb) bt
    [#0](/bitcoin-bitcoin/0/)  0x002e150b in vfprintf () from /lib/tls/i686/cmov/libc.so.6
    [#1](/bitcoin-bitcoin/1/)  0x002e2ec2 in ?? () from /lib/tls/i686/cmov/libc.so.6
    [#2](/bitcoin-bitcoin/2/)  0x002dde13 in vfprintf () from /lib/tls/i686/cmov/libc.so.6
    [#3](/bitcoin-bitcoin/3/)  0x0038203d in __vfprintf_chk () from /lib/tls/i686/cmov/libc.so.6
    [#4](/bitcoin-bitcoin/4/)  0x08056458 in ?? ()
    [#5](/bitcoin-bitcoin/5/)  0x080847d9 in ?? ()
    [#6](/bitcoin-bitcoin/6/)  0x08091c7a in ?? ()
    [#7](/bitcoin-bitcoin/7/)  0x08092853 in ?? ()
    [#8](/bitcoin-bitcoin/8/)  0x0015296e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
    [#9](/bitcoin-bitcoin/9/)  0x0036ea4e in clone () from /lib/tls/i686/cmov/libc.so.6
    (gdb)
    

    if you need further information, please ask. but otherwise, should be able to confirm this with (i think) any 32bit linux. or if not, then least, 32bit ubuntu lucid. :)

  2. sipa commented at 8:55 PM on June 28, 2011: member

    My fault, and discovered/fixed by ius in pull req #362.

  3. sipa closed this on Jun 28, 2011

  4. sipa referenced this in commit 6557a8cd46 on Oct 26, 2015
  5. sipa referenced this in commit ea06490d14 on Oct 27, 2015
  6. sipa referenced this in commit 003bb87153 on Nov 5, 2015
  7. sipa referenced this in commit bfd83199c3 on Nov 11, 2015
  8. sipa referenced this in commit b437ea7ec9 on Nov 12, 2015
  9. sipa referenced this in commit 1d84107924 on Nov 12, 2015
  10. jtimon referenced this in commit 91ee21c024 on Mar 11, 2016
  11. rebroad referenced this in commit 40ead34fbe on Dec 7, 2016
  12. deadalnix referenced this in commit 1a3e03a348 on Jan 19, 2017
  13. hanchon referenced this in commit 6c433835a8 on Aug 17, 2017
  14. classesjack referenced this in commit 40eb79d44a on Jan 2, 2018
  15. lateminer referenced this in commit b536f9ba0c on Oct 16, 2019
  16. rajarshimaitra referenced this in commit cee0dfe142 on Aug 5, 2021
  17. rajarshimaitra referenced this in commit 06b8a2f38e on Aug 5, 2021
  18. rajarshimaitra referenced this in commit 8c853ee92c on Aug 5, 2021
  19. DrahtBot 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-04-13 18:16 UTC

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