Segmentation fault (core dumped) #11816

issue thunderchart openend this issue on December 2, 2017
  1. thunderchart commented at 11:29 am on December 2, 2017: none

    I’m trying to run ./bitcoind on Ubuntu 17

    0Error: Error: A fatal internal error occurred, see debug.log for details
    1Segmentation fault (core dumped)
    

    In debug.log

     02017-12-01 20:18:50 Bitcoin version v0.15.99.0-g9e38d357447
     12017-12-01 20:18:50 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
     22017-12-01 20:18:50 Assuming ancestors of block 0000000000000000003b9ce759c2a087d52abc4266f8f4ebd6d768b89defa50a have valid signatures.
     32017-12-01 20:18:50 Setting nMinimumChainWork=000000000000000000000000000000000000000000723d3581fe1bd55373540a
     42017-12-01 20:18:50 Using the 'sse4' SHA256 implementation
     52017-12-01 20:18:50 Using RdRand as an additional entropy source
     62017-12-01 20:18:50 Default data directory /home/home/.bitcoin
     72017-12-01 20:18:50 Using data directory /home/home/.bitcoin
     82017-12-01 20:18:50 Using config file /home/home/.bitcoin/bitcoin.conf
     92017-12-01 20:18:50 Using at most 125 automatic connections (1024 file descriptors available)
    102017-12-01 20:18:50 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
    112017-12-01 20:18:50 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
    122017-12-01 20:18:50 Using 2 threads for script verification
    132017-12-01 20:18:50 scheduler thread start
    142017-12-01 20:18:50 HTTP: creating work queue of depth 16
    152017-12-01 20:18:50 No rpcpassword set - using random cookie authentication
    162017-12-01 20:18:50 Generated RPC authentication cookie /home/home/.bitcoin/.cookie
    172017-12-01 20:18:50 HTTP: starting 4 worker threads
    182017-12-01 20:18:50 Using wallet directory /home/home/.bitcoin/wallets
    192017-12-01 20:18:50 init message: Verifying wallet(s)...
    202017-12-01 20:18:50 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
    212017-12-01 20:18:50 Using wallet wallet.dat
    222017-12-01 20:18:50 CDBEnv::Open: LogDir=/home/home/.bitcoin/wallets/database ErrorFile=/home/home/.bitcoin/wallets/db.log
    232017-12-01 20:18:50 Cache configuration:
    242017-12-01 20:18:50 * Using 2.0MiB for block index database
    252017-12-01 20:18:50 * Using 8.0MiB for chain state database
    262017-12-01 20:18:50 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
    272017-12-01 20:18:50 init message: Loading block index...
    282017-12-01 20:18:50 Opening LevelDB in /home/home/.bitcoin/blocks/index
    292017-12-01 20:18:50 Opened LevelDB successfully
    302017-12-01 20:18:50 Using obfuscation key for /home/home/.bitcoin/blocks/index: 0000000000000000
    312017-12-01 20:18:50 LoadBlockIndexDB: last block file = 0
    322017-12-01 20:18:50 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=0, size=0, heights=0...0, time=1970-01-01...1970-01-01)
    332017-12-01 20:18:50 Checking all blk files are present...
    342017-12-01 20:18:50 LoadBlockIndexDB: transaction index disabled
    352017-12-01 20:18:50 Initializing databases...
    362017-12-01 20:18:50 Pre-allocating up to position 0x1000000 in blk00000.dat
    372017-12-01 20:18:50 Opening LevelDB in /home/home/.bitcoin/chainstate
    382017-12-01 20:18:50 Opened LevelDB successfully
    392017-12-01 20:18:50 Wrote new obfuscate key for /home/home/.bitcoin/chainstate: f22764d2d2990e26
    402017-12-01 20:18:50 Using obfuscation key for /home/home/.bitcoin/chainstate: f22764d2d2990e26
    412017-12-01 20:18:50 init message: Rewinding blocks...
    422017-12-01 20:18:50  block index             118ms
    432017-12-01 20:18:50 init message: Loading wallet...
    442017-12-01 20:18:50 nFileVersion = 159900
    452017-12-01 20:18:50 Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total
    462017-12-01 20:18:50 Performing wallet upgrade to 60000
    472017-12-01 20:18:51 keypool added 2000 keys (1000 internal), size=2000 (1000 internal)
    482017-12-01 20:18:51  wallet                 1388ms
    49017-12-01 20:18:51 setKeyPool.size() = 2000
    502017-12-01 20:18:51 mapWallet.size() = 0
    512017-12-01 20:18:51 mapAddressBook.size() = 0
    522017-12-01 20:18:51 ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)
    532017-12-01 20:18:51 *** Failed to read block
    542017-12-01 20:18:51 Error: Error: A fatal internal error occurred, see debug.log for details
    552017-12-02 00:07:28
    

    I’ve tried ./bitcoind -reindex It’s starting now, but not working properly. See debug.log:

     02017-12-02 10:38:45 init message: Loading block index...
     12017-12-02 10:38:45 Wiping LevelDB in /home/home/.bitcoin/blocks/index
     22017-12-02 10:38:45 Opening LevelDB in /home/home/.bitcoin/blocks/index
     32017-12-02 10:38:45 Opened LevelDB successfully
     42017-12-02 10:38:45 Using obfuscation key for /home/home/.bitcoin/blocks/index: 0000000000000000
     52017-12-02 10:38:45 Initializing databases...
     62017-12-02 10:38:45 Wiping LevelDB in /home/home/.bitcoin/chainstate
     72017-12-02 10:38:45 Opening LevelDB in /home/home/.bitcoin/chainstate
     82017-12-02 10:38:45 Opened LevelDB successfully
     92017-12-02 10:38:45 Wrote new obfuscate key for /home/home/.bitcoin/chainstate: 5def55d4b4b2f334
    102017-12-02 10:38:45 Using obfuscation key for /home/home/.bitcoin/chainstate: 5def55d4b4b2f334
    112017-12-02 10:38:45  block index              96ms
    122017-12-02 10:38:45 init message: Loading wallet...
    132017-12-02 10:38:45 nFileVersion = 159900
    142017-12-02 10:38:45 Keys: 2001 plaintext, 0 encrypted, 2001 w/ metadata, 2001 total
    152017-12-02 10:38:45  wallet                   45ms
    162017-12-02 10:38:45 setKeyPool.size() = 2000
    172017-12-02 10:38:45 mapWallet.size() = 0
    182017-12-02 10:38:45 mapAddressBook.size() = 0
    192017-12-02 10:38:45 Reindexing block file blk00000.dat...
    202017-12-02 10:38:45 ERROR: AcceptBlock: high-hash, proof of work failed (code 16)
    212017-12-02 10:38:45 Reindexing finished
    222017-12-02 10:38:45 Failed to open mempool file from disk. Continuing anyway.
    
  2. fanquake added the label Linux/Unix on Dec 3, 2017
  3. TheBlueMatt commented at 9:26 pm on December 5, 2017: member
    It looks like your data on disk was corrupted. Thus, -reindex fails to find a valid block in blk00000.dat. What kind of hardware are you running on?
  4. tech-alchemist commented at 11:35 pm on December 8, 2017: none
    /home/home/.bitcoin/chainstate :no_mouth: , is it home user? & are you using network storage mount somewhere?
  5. lukepighetti commented at 3:52 pm on March 17, 2018: none

    I am running into this same problem when trying to generate genesis block in RavenProject/Ravencoin (bitcoin fork)

    I wish I had more to add but I am stumped.

  6. MarcoFalke added the label Data corruption on Mar 17, 2018
  7. MarcoFalke commented at 4:21 pm on March 17, 2018: member

    You might want to check your hardware for defects.

    • memtest86 to check your RAM
    • to check the CPU behaviour under load, use linpack or Prime95
    • to test your storage device use smartctl or CrystalDiskInfo

    Source: https://bitcoin.stackexchange.com/a/12206

  8. MarcoFalke commented at 4:22 pm on March 17, 2018: member
    Closing, since OP hasn’t responed at all in several months.
  9. MarcoFalke closed this on Mar 17, 2018

  10. lukepighetti commented at 4:24 pm on March 17, 2018: none
    I am doing this on a fresh install on a fresh Ubuntu 16.04.4 x64 droplet. Will check your suggestions, though.
  11. MarcoFalke commented at 4:29 pm on March 17, 2018: member

    RavenProject/Ravencoin (bitcoin fork) @lukepighetti Please, this is not an altcoin support channel.

  12. MarcoFalke locked this on Nov 9, 2019
  13. laanwj deleted a comment on Nov 10, 2019

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: 2024-09-29 01:12 UTC

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