[wallet] data corruption opening blank regtest wallet in v0.18.1 #16640

issue Sjors opened this issue on August 17, 2019
  1. Sjors commented at 1:51 PM on August 17, 2019: member

    I don't know how reproducible this is, e.g. it doesn't happen when I run the same test on macOS.

    One of the Travis builds for backwards compatibility testing #12134 failed (log). And failed again.

    This happens in w3 in v0.18.1 in the following test.

    # w3: blank wallet, created on master: update this
    #     test when default blank wallets can no longer be opened by older versions.
    node_master.createwallet(wallet_name="w3", blank=True)
    ...
    node_v18.loadwallet("w3")
    

    node_master refers to commit 1124be6111d6ef0f0324bccd0642b17b86bcd213, node_v18 is a binary v0.18.1.

    It fails as follows:

    node2 2019-08-17T13:16:11.352727Z Using wallet /tmp/test_runner_₿_🏃_20190817_130647/feature_backwards_compatibility_53/node2/regtest/wallets/w3 
    7406 node2 2019-08-17T13:16:11.352777Z BerkeleyEnvironment::Open: LogDir=/tmp/test_runner_₿_🏃_20190817_130647/feature_backwards_compatibility_53/node2/regtest/wallets/w3/database ErrorFile=/tmp/test_runner_₿_🏃_20190817_130647/feature_backwards_compatibility_53/node2/regtest/wallets/w3/db.log 
    7914 node2 2019-08-17T13:16:11.356992Z BerkeleyEnvironment::Open: Error -30974 opening database environment: DB_RUNRECOVERY: Fatal error, run database recovery 
    7915 node2 2019-08-17T13:16:11.357051Z Moved old /tmp/test_runner_₿_🏃_20190817_130647/feature_backwards_compatibility_53/node2/regtest/wallets/w3/database to /tmp/test_runner_₿_🏃_20190817_130647/feature_backwards_compatibility_53/node2/regtest/wallets/w3/database.1566047771.bak. Retrying. 
    7916 node2 2019-08-17T13:16:11.357124Z BerkeleyEnvironment::Open: LogDir=/tmp/test_runner_₿_🏃_20190817_130647/feature_backwards_compatibility_53/node2/regtest/wallets/w3/database ErrorFile=/tmp/test_runner_₿_🏃_20190817_130647/feature_backwards_compatibility_53/node2/regtest/wallets/w3/db.log 
    7917 node2 2019-08-17T13:16:11.438198Z Renamed wallet.dat to wallet.dat.1566047771.bak 
    7918 node2 2019-08-17T13:16:11.438366Z BerkeleyEnvironment::Salvage: Database salvage found errors, all data may not be recoverable. 
    7919 node2 2019-08-17T13:16:11.438376Z BerkeleyEnvironment::Salvage: WARNING: Unexpected end of file while reading salvage output. 
    7920 node2 2019-08-17T13:16:11.438384Z Salvage(aggressive) found no records in wallet.dat.1566047771.bak. 
    7921 test  2019-08-17T13:16:11.460000Z TestFramework (ERROR): JSONRPC error 
    ...
    7657                                   test_framework.authproxy.JSONRPCException: Wallet file verification failed: wallet.dat corrupt, salvage failed (-4)
    
  2. Sjors commented at 2:51 PM on August 17, 2019: member

    This Travis machine builds with --with-incompatible-bdb...

  3. Sjors closed this on Aug 17, 2019

  4. DrahtBot 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-14 09:14 UTC

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