Description I expect to be able to create and load a wallet with Bitcoin CLI using the command "bitcoin-cli createwallet mywallet.dat" but it fails and Bitcoin Core crashes. The wallet appears to be partially created and the folder does exist.
I also have that wallet listed as one to load via the config. The crash then causes bitcoin to restart via the systemd service and when it restarts it exits with an error indicating the wallet cannot be read.
Expected Behavior I expected the wallet to be created. This works fine on Bitcoin Core 21.2, but fails on 22.0.
Actual Behavior Bitcoin crashes and a corrupt wallet is made. This causes Bitcoin to reboot, attempt to read the new wallet, and exit again leading to a cyclic restart.
Reliability I can reliably re-create it, but only on one device. On another very similar device, the issue is not present.
Version v22.0 from the website.
Device Info Debian, amd64.
Linux mynode 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
GUI Not GUI related.
CLI output when creating wallet
admin@mynode:~$ bitcoin-cli createwallet break2
error: timeout on transient error: Could not connect to the server 127.0.0.1:8332 (error code 1 - "EOF reached")
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
admin@mynode:~$
Log when creating wallet (read bottom to top)
...
2022-04-08T18:28:12Z Bitcoin Core version v22.0.0 (release build)
<crash>
2022-04-08T18:27:41Z BerkeleyEnvironment::Open: LogDir=/home/bitcoin/.bitcoin/break2/database ErrorFile=/home/bitcoin/.bitcoin/break2/db.log
2022-04-08T18:27:41Z Using wallet /home/bitcoin/.bitcoin/break2/wallet.dat
2022-04-08T18:27:41Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2022-04-08T18:27:41Z UpdateTip: new best=00000000000000000011ce88f1e73e85f7463f002b093b635e6fbdfb937937c5 height=552252 version=0x20000000 log2_work=90.084721 tx=361369223 date='2018-12-02T09:47:52Z' progress=0.507781 cache=622.6MiB(4620436txo)
2022-04-08T18:27:41Z UpdateTip: new best=00000000000000000026cd6e6d1ffad655908877051cc7b7b778d7236ae64e14 height=552251 version=0x20c00000 log2_work=90.084690 tx=361366404 date='2018-12-02T09:25:26Z' progress=0.507777 cache=622.4MiB(4618903txo)