Raspberry Pi 2 B Segmentation fault #11364

issue kyluke opened this issue on September 19, 2017
  1. kyluke commented at 5:12 AM on September 19, 2017: none

    Describe the issue

    tar -zxf bitcoin-0.15.0-arm-linux-gnueabihf.tar.gz
    install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.15.0/bin/*
    
    • Try to run bitcoind
    • Get hit with Segmentation Fault

    Can you reliably reproduce the issue?

    Yes, everytime I run anything bitcoin related

    bitcoind -testnet -daemon
    bitcoind -h
    

    Expected behaviour

    Bitcoind should run

    Actual behaviour

    just get hit with Segmentation fault. ~/.bitcoin exists as well as ~/.bitcoin/bitcoin.conf with rpcuser and rpcpassword defined. No log file exists in that directory and nothing is logged to /var/log/syslog/

    Machine specs:

    • OS: Raspbian GNU/Linux 8 (jessie)
    • CPU: ARMv6-compatible processor rev 7 (v6l)
    • RAM: 512MB
    • Disk size: 16GB
    • Disk Type (HD/SDD): SD Card class 10
  2. TheBlueMatt commented at 9:59 PM on September 19, 2017: member

    Can you install gdb and run "gdb which bitcoind", then type "run" and when the crash happens, "thread apply all bt" and provide the output which gdb prints?

  3. fanquake added the label Linux/Unix on Sep 20, 2017
  4. kyluke commented at 4:45 AM on September 20, 2017: none

    Sure thing, here it is.

    GNU gdb (Raspbian 7.7.1+dfsg-5) 7.7.1
    Copyright (C) 2014 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 "arm-linux-gnueabihf".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from /usr/local/bin/bitcoind...(no debugging symbols found)...done.
    (gdb) run
    Starting program: /usr/local/bin/bitcoind
    Cannot access memory at address 0x0
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
    
    Program received signal SIGSEGV, Segmentation fault.
    0x7f5dc010 in ?? ()
    (gdb) thread apply all bt
    
    Thread 1 (Thread 0xb6fef000 (LWP 16556)):
    Cannot access memory at address 0x0
    [#0](/bitcoin-bitcoin/0/)  0x7f5dc010 in ?? ()
    [#1](/bitcoin-bitcoin/1/)  0x7f5ff010 in ?? ()
    Cannot access memory at address 0x0
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    
  5. esotericnonsense commented at 4:06 PM on September 20, 2017: contributor

    I have an RPi2 here so thought I'd do a quick test to check if it was generalizable. Unfortunately running Arch not Raspbian, can't reboot it at the moment to test. Synced to height=4000 on testnet successfully.

  6. kyluke commented at 5:22 PM on September 20, 2017: none

    Thanks @esotericnonsense. Perhaps there are some dependencies I am missing? @esotericnonsense, did you compile from source?

  7. esotericnonsense commented at 11:50 PM on September 20, 2017: contributor

    I downloaded and verified the binary. There may be some dependencies that I have by 'accident' as the system is also used for other purposes. I doubt that I can assist here - just thought I would check if the ARM build was broken in general.

  8. kyluke renamed this:
    Raspberry Pi 2 B+ Segmentation fault
    Raspberry Pi 2 B Segmentation fault
    on Sep 22, 2017
  9. kyluke commented at 5:33 AM on September 25, 2017: none

    As a long shot I tried it with the 0.15.0.1 release but I get the same result.

  10. kyluke commented at 3:27 PM on September 26, 2017: none

    Compiling from source has fixed the problem.

  11. theuni commented at 9:27 PM on September 26, 2017: member

    CPU: ARMv6-compatible processor rev 7 (v6l) RAM: 512MB

    This doesn't look like an rpi2. Either it's running a really conservative/compatible kernel, or it's an earlier model or rpi zero. The 512mb ram tells me it's probably not a kernel issue.

    armv7 binaries won't work on v6 hardware without major surgery.

    Could you please run: cat /proc/cpuinfo and paste the result here?

  12. kyluke commented at 7:50 AM on September 27, 2017: none

    @theuni hmmm.. It seems I installed it on the wrong Pi at home :/.

    There most likely isn't anything wrong with the arm binary. Compiling solved my issue on the pi I was running this on. I'm going to close this issue for now. I'll test it on the Pi 2 when I get the chance and then just comment on this again.

    My bad.

  13. kyluke closed this on Sep 27, 2017

  14. theuni commented at 1:52 PM on September 27, 2017: member

    No worries, thanks for confirming.

  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-04-13 15:15 UTC

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