Advertisement
Guest User

bitcoind wallet load segfault after upgrade

a guest
Feb 15th, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.69 KB | None | 0 0
  1. GNU gdb (Debian 8.2.1-2+b3) 8.2.1
  2. Copyright (C) 2018 Free Software Foundation, Inc.
  3. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  4. This is free software: you are free to change and redistribute it.
  5. There is NO WARRANTY, to the extent permitted by law.
  6. Type "show copying" and "show warranty" for details.
  7. This GDB was configured as "x86_64-linux-gnu".
  8. Type "show configuration" for configuration details.
  9. For bug reporting instructions, please see:
  10. <http://www.gnu.org/software/gdb/bugs/>.
  11. Find the GDB manual and other documentation resources online at:
  12. <http://www.gnu.org/software/gdb/documentation/>.
  13.  
  14. For help, type "help".
  15. Type "apropos word" to search for commands related to "word"...
  16. Reading symbols from ./src/bitcoind...done.
  17. (gdb) run -datadir=/mnt/data/blockchains/btc/blockchain
  18. Starting program: /home/sid/projects/btc/bitcoind -datadir=/mnt/data/blockchains/btc/blockchain
  19. [Thread debugging using libthread_db enabled]
  20. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  21. 2021-02-15T18:21:06Z Bitcoin Core version v0.21.0.0-7d8a10a6f (release build)
  22. 2021-02-15T18:21:06Z Assuming ancestors of block 0000000000000000000b9d2ec5a352ecba0592946514a92f14319dc2b367fc72 have valid signatures.
  23. 2021-02-15T18:21:06Z Setting nMinimumChainWork=00000000000000000000000000000000000000001533efd8d716a517fe2c5008
  24. 2021-02-15T18:21:06Z Using the 'standard' SHA256 implementation
  25. 2021-02-15T18:21:06Z Default data directory [redacted]
  26. 2021-02-15T18:21:06Z Using data directory /mnt/data/blockchains/btc/blockchain
  27. 2021-02-15T18:21:06Z Config file: /mnt/data/blockchains/btc/blockchain/bitcoin.conf
  28. 2021-02-15T18:21:06Z Config file arg: rpcallowip="[redacted]"
  29. 2021-02-15T18:21:06Z Config file arg: rpcallowip="127.0.0.1"
  30. 2021-02-15T18:21:06Z Config file arg: rpcpassword=****
  31. 2021-02-15T18:21:06Z Config file arg: rpcport="8332"
  32. 2021-02-15T18:21:06Z Command-line arg: datadir="/mnt/data/blockchains/btc/blockchain"
  33. 2021-02-15T18:21:06Z Using at most 125 automatic connections (1024 file descriptors available)
  34. 2021-02-15T18:21:06Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
  35. 2021-02-15T18:21:06Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
  36. 2021-02-15T18:21:06Z Script verification uses 1 additional threads
  37. [New Thread 0x7ffff51e1700 (LWP 12543)]
  38. [New Thread 0x7ffff49e0700 (LWP 12544)]
  39. 2021-02-15T18:21:06Z scheduler thread start
  40. 2021-02-15T18:21:06Z WARNING: option -rpcallowip was specified without -rpcbind; this doesn't usually make sense
  41. 2021-02-15T18:21:06Z HTTP: creating work queue of depth 16
  42. 2021-02-15T18:21:06Z Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcauth for rpcauth auth generation.
  43. 2021-02-15T18:21:06Z HTTP: starting 4 worker threads
  44. [New Thread 0x7fffeffff700 (LWP 12545)]
  45. [New Thread 0x7fffef7fe700 (LWP 12546)]
  46. [New Thread 0x7fffeeffd700 (LWP 12547)]
  47. [New Thread 0x7fffee7fc700 (LWP 12548)]
  48. [New Thread 0x7fffedffb700 (LWP 12549)]
  49. 2021-02-15T18:21:06Z Using wallet directory /mnt/data/blockchains/btc/blockchain
  50. 2021-02-15T18:21:06Z init message: Verifying wallet(s)...
  51. 2021-02-15T18:21:06Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
  52. 2021-02-15T18:21:06Z Using wallet /mnt/data/blockchains/btc/blockchain/wallet.dat
  53. 2021-02-15T18:21:06Z BerkeleyEnvironment::Open: LogDir=/mnt/data/blockchains/btc/blockchain/database ErrorFile=/mnt/data/blockchains/btc/blockchain/db.log
  54. 2021-02-15T18:21:06Z init message: Loading banlist...
  55. 2021-02-15T18:21:06Z SetNetworkActive: true
  56. 2021-02-15T18:21:06Z Using /16 prefix for IP bucketing
  57. 2021-02-15T18:21:06Z Cache configuration:
  58. 2021-02-15T18:21:06Z * Using 2.0 MiB for block index database
  59. 2021-02-15T18:21:06Z * Using 8.0 MiB for chain state database
  60. 2021-02-15T18:21:06Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
  61. 2021-02-15T18:21:06Z init message: Loading block index...
  62. 2021-02-15T18:21:06Z Switching active chainstate to Chainstate [ibd] @ height -1 (null)
  63. 2021-02-15T18:21:06Z Opening LevelDB in /mnt/data/blockchains/btc/blockchain/blocks/index
  64. 2021-02-15T18:21:07Z Opened LevelDB successfully
  65. 2021-02-15T18:21:07Z Using obfuscation key for /mnt/data/blockchains/btc/blockchain/blocks/index: 0000000000000000
  66. 2021-02-15T18:21:13Z LoadBlockIndexDB: last block file = 1548
  67. [New Thread 0x7fffce8b0700 (LWP 12550)]
  68. 2021-02-15T18:21:13Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=102, size=110195747, heights=565199...565487, time=2019-03-01...2019-03-03)
  69. 2021-02-15T18:21:13Z Checking all blk files are present...
  70. 2021-02-15T18:21:13Z Opening LevelDB in /mnt/data/blockchains/btc/blockchain/chainstate
  71. 2021-02-15T18:21:13Z Opened LevelDB successfully
  72. 2021-02-15T18:21:13Z Using obfuscation key for /mnt/data/blockchains/btc/blockchain/chainstate: aedfad69a0bd6230
  73. 2021-02-15T18:21:13Z Loaded best chain: hashBestChain=0000000000000000001264dd8d41f4cfd26cf9930e90bad773b16dd82449b9fd height=565308 date=2019-03-02T06:50:19Z progress=0.631060
  74. 2021-02-15T18:21:13Z init message: Rewinding blocks...
  75. 2021-02-15T18:21:14Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) started
  76. 2021-02-15T18:21:14Z FlushStateToDisk: write coins cache to disk (0 coins, 0kB) completed (0.00s)
  77. 2021-02-15T18:21:14Z init message: Verifying blocks...
  78. 2021-02-15T18:21:14Z Verifying last 6 blocks at level 3
  79. 2021-02-15T18:21:14Z [0%]...[16%]...[33%]...[50%]...[66%]...[83%]...[99%]...[DONE].
  80. 2021-02-15T18:21:15Z No coin database inconsistencies in last 6 blocks (15138 transactions)
  81. 2021-02-15T18:21:15Z block index 9156ms
  82. 2021-02-15T18:21:15Z init message: Loading wallet...
  83. 2021-02-15T18:21:15Z BerkeleyEnvironment::Open: LogDir=/mnt/data/blockchains/btc/blockchain/database ErrorFile=/mnt/data/blockchains/btc/blockchain/db.log
  84. 2021-02-15T18:21:16Z [default wallet] Wallet File Version = 139900
  85. 2021-02-15T18:21:16Z [default wallet] Keys: 0 plaintext, 4024 encrypted, 4024 w/ metadata, 4024 total. Unknown wallet records: 2
  86. 2021-02-15T18:21:16Z [default wallet] Wallet completed loading in 219ms
  87. 2021-02-15T18:21:16Z init message: Rescanning...
  88. 2021-02-15T18:21:16Z [default wallet] Rescanning last 13167 blocks (from block 552141)...
  89. 2021-02-15T18:21:16Z [default wallet] Rescan started from block 00000000000000000015bdff45dbb8b100397cf9bf2acae6452c339c325637de...
  90.  
  91. Thread 1 "bitcoind" received signal SIGSEGV, Segmentation fault.
  92. LegacyScriptPubKeyMan::MarkUnusedAddresses (this=0x555555f81840, script=...) at wallet/scriptpubkeyman.cpp:363
  93. 363 if (!TopUpInactiveHDChain(meta.hd_seed_id, index, internal)) {
  94. (gdb) bt
  95. #0 LegacyScriptPubKeyMan::MarkUnusedAddresses (this=0x555555f81840, script=...) at wallet/scriptpubkeyman.cpp:363
  96. #1 0x000055555594ccb5 in CWallet::AddToWalletIfInvolvingMe (this=0x555560ea4610, ptx=..., confirm=..., fUpdate=<optimized out>) at /usr/include/c++/8/bits/unique_ptr.h:342
  97. #2 0x000055555594d4b1 in CWallet::SyncTransaction (this=this@entry=0x555560ea4610, ptx=std::shared_ptr<const CTransaction> (use count 1, weak count 0) = {...}, confirm=...,
  98. update_tx=<optimized out>) at wallet/wallet.cpp:1152
  99. #3 0x000055555594e7ba in CWallet::ScanForWalletTransactions (this=0x555560ea4610, start_block=..., start_height=<optimized out>, max_height=..., reserver=..., fUpdate=<optimized out>)
  100. at /usr/include/c++/8/bits/stl_vector.h:930
  101. #4 0x0000555555950f45 in CWallet::Create (chain=..., name="", database=std::unique_ptr<WalletDatabase> = {...}, wallet_creation_flags=<optimized out>, error=..., warnings=...)
  102. at /usr/include/boost/optional/detail/optional_trivially_copyable_base.hpp:25
  103. #5 0x00005555558b0493 in LoadWallets (chain=...) at /usr/include/c++/8/bits/move.h:74
  104. #6 0x000055555564bd06 in AppInitMain (context=..., node=..., tip_info=<optimized out>) at /usr/include/c++/8/bits/unique_ptr.h:342
  105. #7 0x000055555563308a in AppInit (argc=2, argv=<optimized out>) at /usr/include/c++/8/bits/basic_string.h:189
  106. #8 0x000055555562a993 in main (argc=2, argv=0x7fffffffe268) at bitcoind.cpp:172
  107. (gdb) list
  108. 358 CKeyMetadata meta = it->second;
  109. 359 if (!meta.hd_seed_id.IsNull() && meta.hd_seed_id != m_hd_chain.seed_id) {
  110. 360 bool internal = (meta.key_origin.path[1] & ~BIP32_HARDENED_KEY_LIMIT) != 0;
  111. 361 int64_t index = meta.key_origin.path[2] & ~BIP32_HARDENED_KEY_LIMIT;
  112. 362
  113. 363 if (!TopUpInactiveHDChain(meta.hd_seed_id, index, internal)) {
  114. 364 WalletLogPrintf("%s: Adding inactive seed keys failed\n", __func__);
  115. 365 }
  116. 366 }
  117. 367 }
  118. (
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement