This happened while running a prebuilt 0.10.0rc3 binary from bitcoin.org.
Error:
************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessages()
bitcoind: main.cpp:1647: bool ConnectBlock(const CBlock&, CValidationState&, CBlockIndex*, CCoinsViewCache&, bool): Assertion `hashPrevBlock == view.GetBestBlock()' failed.
Aborted (core dumped)
OS: Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64)
Startup info:
2015-01-15 21:38:58 Bitcoin version v0.10.0rc3 (2015-01-12 16:10:50 +0100)
2015-01-15 21:38:58 Using OpenSSL version OpenSSL 1.0.1k 8 Jan 2015
2015-01-15 21:38:58 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2015-01-15 21:38:58 Default data directory /home/mappum/.bitcoin
2015-01-15 21:38:58 Using data directory /home/mappum/.bitcoin
2015-01-15 21:38:58 Using config file /home/mappum/.bitcoin/bitcoin.conf
2015-01-15 21:38:58 Using at most 128 connections (1024 file descriptors available)
2015-01-15 21:38:58 Using 0 threads for script verification
2015-01-15 21:38:58 Binding RPC on address ::1 port 8332 (IPv4+IPv6 bind any: 0)
2015-01-15 21:38:58 Binding RPC on address 127.0.0.1 port 8332 (IPv4+IPv6 bind any: 0)
2015-01-15 21:38:58 Using wallet wallet.dat
2015-01-15 21:38:58 init message: Verifying wallet...
2015-01-15 21:38:58 CDBEnv::Open : LogDir=/home/mappum/.bitcoin/database ErrorFile=/home/mappum/.bitcoin/db.log
2015-01-15 21:38:58 Bound to [::]:8333
2015-01-15 21:38:58 Bound to 0.0.0.0:8333
2015-01-15 21:38:58 init message: Loading block index...
2015-01-15 21:38:58 Opening LevelDB in /home/mappum/.bitcoin/blocks/index
2015-01-15 21:38:58 Opened LevelDB successfully
2015-01-15 21:38:58 Opening LevelDB in /home/mappum/.bitcoin/chainstate
2015-01-15 21:38:59 Opened LevelDB successfully
2015-01-15 21:39:03 LoadBlockIndexDB: last block file = 52
2015-01-15 21:39:03 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=645, size=121795758, heights=229469...230337, time=2013-04-03...2013-04-08)
2015-01-15 21:39:03 Checking all blk files are present...
2015-01-15 21:39:03 LoadBlockIndexDB(): transaction index disabled
Last lines of debug.log:
2015-01-15 20:35:05 UpdateTip: new best=000000000000006de346b0acc44f6dcbeab1733086dd4dc4dd38ca0d8b29cd4e height=230030 log2_work=69.712313 tx=15653239 date=2013-04-06 23:09:42 progress=0.129548 cache=170595
2015-01-15 20:35:05 UpdateTip: new best=000000000000010cfeb52ac531922d500190e7a17a44ae858cdc3bd81be8cf56 height=230031 log2_work=69.712362 tx=15653807 date=2013-04-06 23:22:34 progress=0.129553 cache=170840
2015-01-15 20:35:06 UpdateTip: new best=00000000000000d89764a5b1614401d37128c1fd34a60606908b33caf83c3f34 height=230032 log2_work=69.712411 tx=15654194 date=2013-04-06 23:29:36 progress=0.129556 cache=171056
2015-01-15 20:35:06 UpdateTip: new best=00000000000001864679e980583a05cc96da89ec31923fbce37cf4582c627392 height=230033 log2_work=69.71246 tx=15654297 date=2013-04-06 23:31:28 progress=0.129557 cache=171095
2015-01-15 20:35:07
************************
EXCEPTION: St9bad_alloc
std::bad_alloc
bitcoin in ProcessMessages()
2015-01-15 20:35:07 ProcessMessage(block, 140344 bytes) FAILED peer=16