Skip to content

Bitcoind 0.14.0rc1: OOM -> block marked invalid #9854

@sipa

Description

@sipa

Describe the issue

My bitcoind v0.14.0rc1 running on a Raspberry Pi 3, OOMed while processing a block, but didn't shutdown. Instead, it simply marked the block as invalid, and continued running.

What version of bitcoin-core are you using?

2017-02-22 17:08:06 Bitcoin version v0.14.0.0-7d75a5a

Any extra information that might be useful in the debugging process.

bitcoin.conf:

dbcache=500
blocksonly=1
debug=bench

debug.log:

017-02-24 10:39:06 UpdateTip: new best=00000000000000002c54efc91a9c88f030ac8be8b07ccce1fd743769fcee0d7b height=316694 version=0x00000002 log2_work=80.285579 tx=44994328 date='2014-08-20 21:49:12' progress=0.226366 cache=494.0MiB(428034tx)
2017-02-24 10:39:06   - Connect postprocess: 1.04ms [364.74s]
2017-02-24 10:39:06 - Connect block: 28.42ms [31745.07s]
2017-02-24 10:39:06 Pre-allocating up to position 0x8000000 in blk00167.dat
2017-02-24 10:39:08 Prune: UnlinkPrunedFiles deleted blk/rev (00161)
2017-02-24 10:39:15

************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessages()

2017-02-24 10:39:15 ProcessMessages(block, 300905 bytes) FAILED peer=345
2017-02-24 10:39:40   - Load block from disk: 0.01ms [3425.64s]
2017-02-24 10:39:40     - Sanity checks: 0.27ms [554.49s]
2017-02-24 10:39:40     - Fork checks: 0.45ms [1527.74s]
2017-02-24 10:39:40 ERROR: ConnectBlock(): inputs missing/spent
2017-02-24 10:39:40 Misbehaving: 92.27.214.6:8333 peer=377 (0 -> 100) BAN THRESHOLD EXCEEDED
2017-02-24 10:39:40 InvalidChainFound: invalid block=0000000000000000105e43d3721802e8799ae33a2f940123a1f500de53fc0a53  height=316695 log2_work=80.285679  date=2014-08-20 22:31:56
2017-02-24 10:39:40 InvalidChainFound:  current best=00000000000000002c54efc91a9c88f030ac8be8b07ccce1fd743769fcee0d7b  height=316694 log2_work=80.285579  date=2014-08-20 21:49:12
2017-02-24 10:39:40 ERROR: ConnectTip(): ConnectBlock 0000000000000000105e43d3721802e8799ae33a2f940123a1f500de53fc0a53 failed
2017-02-24 10:39:40 InvalidChainFound: invalid block=0000000000000000105e43d3721802e8799ae33a2f940123a1f500de53fc0a53  height=316695  log2_work=80.285679  date=2014-08-20 22:31:56
2017-02-24 10:39:40 InvalidChainFound:  current best=00000000000000002c54efc91a9c88f030ac8be8b07ccce1fd743769fcee0d7b  height=316694 log2_work=80.285579  date=2014-08-20 21:49:12
2017-02-24 10:39:40 connect() to [2a02:810c:83c0:20c0:eb1f:a96b:1b81:813a]:8333 failed: Network is unreachable (101)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions