Crash: BerkeleyEnvironment::VerifyResult upon `loadwallet` #15030

issue bitcoinhodler opened this issue on December 23, 2018
  1. bitcoinhodler commented at 6:03 AM on December 23, 2018: contributor

    <!-- Describe the issue -->

    Problem

    After creating a new wallet and running a series of operations concluding with unloadwallet, the next time that wallet is loaded with loadwallet, bitcoin-qt crashes after the following assertion fires:

    bitcoin-qt: wallet/db.cpp:236: BerkeleyEnvironment::VerifyResult BerkeleyEnvironment::Verify(const string&, BerkeleyEnvironment::recoverFunc_type, std::__cxx11::string&): Assertion `mapFileUseCount.count(strFile) == 0' failed.

    Recreating

    See gist: loadwallet-crash.sh

    This fails reliably for me on v0.17.0.1 release binaries, and also on my local build of v0.17.1rc1, on 32-bit Whonix 13.

    Possibly related

    #14572, #14850

  2. fanquake added the label Wallet on Dec 27, 2018
  3. etscrivner commented at 1:35 AM on January 10, 2019: contributor

    Was not able to reproduce this on v0.17.1 on 64-bit Ubuntu. May be isolated to 32-bit Linux?

  4. promag commented at 1:24 AM on February 5, 2019: member

    #11911, #14941 #15297 are some of the changes related to unloading wallets, unfortunately these weren't released yet.

  5. promag commented at 9:44 PM on June 2, 2019: member

    @fanquake this is also fixed, the gist in the OP no longer causes the crash.

  6. fanquake closed this on Jun 2, 2019

  7. MarcoFalke locked this on Dec 16, 2021

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: 2026-04-21 15:14 UTC

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