bitcoinknots / bitcoin

Bitcoin Knots enhanced Bitcoin node/wallet software
MIT License
200 stars 60 forks source link

bitcoind and bitcoin-qt crashes throwing exceptions #36

Closed ghost closed 2 years ago

ghost commented 2 years ago

Tried running Bitcoin Knots on Pop!_OS using https://bitcoinknots.org/files/0.21.x/0.21.1.knots20210629/bitcoin-0.21.1.knots20210629-x86_64-linux-gnu.tar.gz

Used the data directory for Bitcoin Core (testnet full synced) and got this error:

image

$ bitcoin-qt

************************
EXCEPTION: St12out_of_range       
map::at       
bitcoin in Runaway exception       

bitcoin-qt: /home/ubuntu/build/bitcoin/depends/x86_64-linux-gnu/share/../include/boost/thread/pthread/condition_variable_fwd.hpp:85: boost::condition_variable::~condition_variable(): Assertion `!ret' failed.
Aborted (core dumped)

$ bitcoind
2021-10-02T10:25:12Z Bitcoin Knots version v0.21.1.knots20210629 (release build)
2021-10-02T10:25:12Z Assuming ancestors of block 000000000000006433d1efec504c53ca332b64963c425395515b01977bd7b3b0 have valid signatures.
2021-10-02T10:25:12Z Setting nMinimumChainWork=0000000000000000000000000000000000000000000001db6ec4ac88cf2272c6
2021-10-02T10:25:12Z ParameterInteraction: parameter interaction: -walletimplicitsegwit=0 -> setting -addresstype=legacy
2021-10-02T10:25:12Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
2021-10-02T10:25:12Z Using RdRand as an additional entropy source
2021-10-02T10:25:12Z Default data directory /home/prayank/.bitcoin
2021-10-02T10:25:12Z Using data directory /mnt/hgfs/testnet/testnet3
2021-10-02T10:25:12Z Config file: /mnt/hgfs/testnet/bitcoin.conf
2021-10-02T10:25:12Z R/W Config file: /mnt/hgfs/testnet/testnet3/bitcoin_rw.conf (not found, skipping)
2021-10-02T10:25:12Z Config file arg: datadir="/mnt/hgfs/testnet"
2021-10-02T10:25:12Z Config file arg: testnet="1"
2021-10-02T10:25:12Z Config file arg: txindex="1"
2021-10-02T10:25:12Z Setting file arg: wallet = ["Wallet1","D1","taproot_t3","W1"]
2021-10-02T10:25:12Z Using at most 125 automatic connections (1024 file descriptors available)
2021-10-02T10:25:12Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2021-10-02T10:25:13Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2021-10-02T10:25:13Z Script verification uses 1 additional threads
2021-10-02T10:25:13Z scheduler thread start
2021-10-02T10:25:13Z HTTP: creating work queue of depth 16
2021-10-02T10:25:13Z Using random cookie authentication.
2021-10-02T10:25:13Z Generated RPC authentication cookie /mnt/hgfs/testnet/testnet3/.cookie
2021-10-02T10:25:13Z HTTP: starting 4 worker threads
2021-10-02T10:25:13Z Using wallet directory /mnt/hgfs/testnet/testnet3
2021-10-02T10:25:13Z init message: Verifying wallet(s)...
2021-10-02T10:25:13Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-10-02T10:25:13Z Using wallet /mnt/hgfs/testnet/testnet3/Wallet1/wallet.dat
2021-10-02T10:25:13Z BerkeleyEnvironment::Open: LogDir=/mnt/hgfs/testnet/testnet3/Wallet1/database ErrorFile=/mnt/hgfs/testnet/testnet3/Wallet1/db.log
2021-10-02T10:25:13Z Using SQLite Version 3.32.1
2021-10-02T10:25:13Z Using wallet /mnt/hgfs/testnet/testnet3/D1
2021-10-02T10:25:13Z Using SQLite Version 3.32.1
2021-10-02T10:25:13Z Using wallet /mnt/hgfs/testnet/testnet3/taproot_t3
2021-10-02T10:25:13Z Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2021-10-02T10:25:13Z Using wallet /mnt/hgfs/testnet/testnet3/W1/wallet.dat
2021-10-02T10:25:13Z BerkeleyEnvironment::Open: LogDir=/mnt/hgfs/testnet/testnet3/W1/database ErrorFile=/mnt/hgfs/testnet/testnet3/W1/db.log
2021-10-02T10:25:13Z init message: Loading banlist...
2021-10-02T10:25:13Z SetNetworkActive: true
2021-10-02T10:25:13Z Using /16 prefix for IP bucketing
2021-10-02T10:25:13Z Cache configuration:
2021-10-02T10:25:13Z * Using 2.0 MiB for block index database
2021-10-02T10:25:13Z * Using 56.0 MiB for transaction index database
2021-10-02T10:25:13Z * Using 8.0 MiB for chain state database
2021-10-02T10:25:13Z * Using 384.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2021-10-02T10:25:13Z * Flushing caches if available system memory drops below 10 MiB
2021-10-02T10:25:13Z init message: Loading block index...
2021-10-02T10:25:13Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
2021-10-02T10:25:13Z Opening LevelDB in /mnt/hgfs/testnet/testnet3/blocks/index
2021-10-02T10:25:13Z Opened LevelDB successfully
2021-10-02T10:25:13Z Using obfuscation key for /mnt/hgfs/testnet/testnet3/blocks/index: 0000000000000000
2021-10-02T10:25:26Z LoadBlockIndexDB: last block file = 200
2021-10-02T10:25:26Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=4517, size=72088768, heights=2092260...2096785, time=2021-09-07...2021-09-29)
2021-10-02T10:25:26Z Checking all blk files are present...
2021-10-02T10:25:26Z Opening LevelDB in /mnt/hgfs/testnet/testnet3/chainstate
2021-10-02T10:25:27Z Opened LevelDB successfully
2021-10-02T10:25:27Z Using obfuscation key for /mnt/hgfs/testnet/testnet3/chainstate: 7325790db96fb5db
2021-10-02T10:25:27Z Loaded best chain: hashBestChain=0000000000000013903ca23c65695229bc696a71439c4fc89a5de88894638dcf height=2096785 date=2021-09-29T06:14:32Z progress=0.999448
2021-10-02T10:25:27Z init message: Rewinding blocks...
2021-10-02T10:25:28Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
2021-10-02T10:25:28Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
2021-10-02T10:25:28Z init message: Verifying blocks...
2021-10-02T10:25:28Z Verifying last 6 blocks at level 3
2021-10-02T10:25:28Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
2021-10-02T10:25:29Z No coin database inconsistencies in last 6 blocks (523 transactions)
2021-10-02T10:25:29Z  block index           15723ms
2021-10-02T10:25:29Z Opening LevelDB in /mnt/hgfs/testnet/testnet3/indexes/txindex
2021-10-02T10:25:29Z Opened LevelDB successfully
2021-10-02T10:25:29Z Using obfuscation key for /mnt/hgfs/testnet/testnet3/indexes/txindex: 0000000000000000
2021-10-02T10:25:29Z txindex thread start
2021-10-02T10:25:29Z txindex is enabled at height 2096785
2021-10-02T10:25:29Z txindex thread exit
2021-10-02T10:25:29Z init message: Loading wallet...
2021-10-02T10:25:29Z BerkeleyEnvironment::Open: LogDir=/mnt/hgfs/testnet/testnet3/Wallet1/database ErrorFile=/mnt/hgfs/testnet/testnet3/Wallet1/db.log
2021-10-02T10:25:29Z [Wallet1] Wallet File Version = 169900
2021-10-02T10:25:29Z [Wallet1] Keys: 0 plaintext, 2001 encrypted, 2001 w/ metadata, 2001 total. Unknown wallet records: 0
2021-10-02T10:25:29Z [Wallet1] Wallet completed loading in             139ms
2021-10-02T10:25:29Z [Wallet1] setKeyPool.size() = 1995
2021-10-02T10:25:29Z [Wallet1] mapWallet.size() = 1
2021-10-02T10:25:29Z [Wallet1] m_address_book.size() = 5
2021-10-02T10:25:29Z Using SQLite Version 3.32.1
2021-10-02T10:25:29Z Using wallet /mnt/hgfs/testnet/testnet3/D1
2021-10-02T10:25:29Z init message: Loading wallet...
2021-10-02T10:25:29Z [D1] Setting spkMan to active: id = 5055a8b196e16eb26d8d24f86609f47db5cfc139e1d451276db09e97a2dd2452, type = 0, internal = 0
2021-10-02T10:25:29Z [D1] Setting spkMan to active: id = 36e5be6cc4ee65624f016b70da254b9c3906c40c2a2a03e36804d3e612df9eb7, type = 1, internal = 0
2021-10-02T10:25:29Z [D1] Setting spkMan to active: id = d2fdf01f5c80ec62d9d92c8e193a5551e45dd77cc0b737becd3f408039bcb6a2, type = 2, internal = 0
2021-10-02T10:25:29Z [D1] Setting spkMan to active: id = f3102a44c9677e5b801b0fb30bc0d88d97c96ac02aade7634623deae8af1fdf6, type = 0, internal = 1
2021-10-02T10:25:29Z [D1] Setting spkMan to active: id = 523b124d7297b9ace0f37a2a80f66bb7e8c3ee5644c875c79c7a194ecacd9614, type = 1, internal = 1
2021-10-02T10:25:29Z [D1] Setting spkMan to active: id = 145bed1086fb4901bc51a4d826fd52cb4fa10b954f82cdd635414ef90ebd6e1e, type = 2, internal = 1
2021-10-02T10:25:29Z [D1] Wallet File Version = 169900
2021-10-02T10:25:29Z [D1] Keys: 6 plaintext, 0 encrypted, 0 w/ metadata, 6 total. Unknown wallet records: 6
2021-10-02T10:25:29Z [D1] Wallet completed loading in             312ms
2021-10-02T10:25:29Z [D1] setKeyPool.size() = 6000
2021-10-02T10:25:29Z [D1] mapWallet.size() = 1
2021-10-02T10:25:29Z [D1] m_address_book.size() = 1
2021-10-02T10:25:29Z Using SQLite Version 3.32.1
2021-10-02T10:25:29Z Using wallet /mnt/hgfs/testnet/testnet3/taproot_t3
2021-10-02T10:25:29Z init message: Loading wallet...
2021-10-02T10:25:29Z [taproot_t3] Invalid descriptor: tr([8868ab13/86'/1'/0']tpubDC3pD7UZXnsgh3EBjbtBQiB1FnLask7UHBSunZ1DPK4dCFFZoFRkgxHB8gt42FvLzx1DpxfHWxAsYaY6b643RVcGjDxXxns7wKKYnnfEcbB/0/*) is not a valid descriptor function: iostream error
2021-10-02T10:25:29Z [taproot_t3] Setting spkMan to active: id = 5090551a752b4b4a04561684e385ed06b08b34f09e024834b35063a90467b2a3, type = 3, internal = 0
2021-10-02T10:25:29Z [taproot_t3] Releasing wallet
2021-10-02T10:25:29Z 

************************
EXCEPTION: St12out_of_range       
map::at       
bitcoin in AppInit()       

************************
EXCEPTION: St12out_of_range       
map::at       
bitcoin in AppInit()       

2021-10-02T10:25:29Z Shutdown: In progress...
2021-10-02T10:25:29Z scheduler thread exit
2021-10-02T10:25:29Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
2021-10-02T10:25:29Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
2021-10-02T10:25:29Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
2021-10-02T10:25:29Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
2021-10-02T10:25:30Z [D1] Releasing wallet
2021-10-02T10:25:30Z [Wallet1] Releasing wallet
2021-10-02T10:25:30Z Shutdown: done
ghost commented 2 years ago

Works fine if I delete the wallets. Maybe related to descriptors.