You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Ubuntu 20.04.
Releases: Bitcoin Core V21 and V22.
The problem:
I have a lot of HD wallets, with the first transaction in Dic 2017, encrypted, not checked for 5 years.
It starts reescaning and segmentation fault error. Tried with bitcoin-qt, bitcoind, reindex the whole blockchain, and still segmentation fault.
After loading the GUI, load the wallet, again it closes with segmentation fault
V21 and V22 downloaded and checked for signatures and hashes.
The same wallets, if checked after mid-2018-2019 (a year or more) work.
The machine is a DELL inspiron with 16Gb of ram (dbcache=8000). Tried a lot of other things (-rescan, etc) that didn't work.
All other wallets work fine, no problems, but these ones fail with newer versions of bitcoin core. Run bitcoin-wallet info, the wallets are ok, (not corrupted or anything).
If I do the reindex while the wallet is loaded, it crashes the moment the reindex gets to Dic 2017-Jan 2018. Then I reestart without the wallet loaded and it finishes reindexing OK.
In the log says it loads the wallet OK (5s :)), starts reescaning and then nothing else (it crashes).
It crashes 4 or 5 seconds after reescaning (really fast) both bitcoin-qt and bitcoind.
To add some context, been using bitcoin core for a long time and it's great. Each version is faster and better. Big fan of descriptor wallets and really big fan of sqlite. Bitcoin core is really fast and stable considering scope and compatibility.
./bitcoin-qt -version
Bitcoin Core version v22.0.0
Copyright (C) 2009-2021 The Bitcoin Core developers
It's the release version
I'll try to build the source. I tried once but had problems installing the berkeley db.
Anyway, building from sources has been in my to-do list for some time :).
I'm glad this is going to be fixed in V23.
Many people may have wallets they didn't check from that time, may not find the workaround with V20.1, panic, etc.
I have 6 other wallets that crash with segmentation fault from that era (old copies) to check if this issue is solved.
Activity
laanwj commentedon Feb 14, 2022
We need a traceback to know where this segfault happens in the code. Can you run the binary in
gdband runbtafter the crash?GITErnesO commentedon Feb 14, 2022
OK. I'll run gdb and post results.
To add some context, been using bitcoin core for a long time and it's great. Each version is faster and better. Big fan of descriptor wallets and really big fan of sqlite. Bitcoin core is really fast and stable considering scope and compatibility.
GITErnesO commentedon Feb 14, 2022
This is bitcoind before the crash:
2022-02-14T12:32:41Z [default wallet] Wallet completed loading in 45ms
2022-02-14T12:32:41Z init message: Rescanning…
2022-02-14T12:32:41Z [default wallet] Rescanning last 291840 blocks (from block 406601)...
2022-02-14T12:32:41Z [default wallet] Rescan started from block 0000000000000000005ec2ccf319ce976a0804209a89650558b0e19e9edf0f54...
Segmentation fault (core dumped)
This is gdb with bt:
laanwj commentedon Feb 14, 2022
Thanks. I can look up the addresses in debug info with addr2line but would need to know what exact version it is.
Alternatively, if you build from source you'll have symbols yourself instead of bare addresses.
GITErnesO commentedon Feb 14, 2022
Version is 22.0.0.
./bitcoin-qt -version
Bitcoin Core version v22.0.0
Copyright (C) 2009-2021 The Bitcoin Core developers
It's the release version
I'll try to build the source. I tried once but had problems installing the berkeley db.
Anyway, building from sources has been in my to-do list for some time :).
lsilva01 commentedon Feb 14, 2022
Have you tried the command below?
There is more information at:
https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md
https://jonatack.github.io/articles/how-to-compile-bitcoin-core-and-run-the-tests
maflcko commentedon Feb 15, 2022
Aren't there debug symbols available for releases?
GITErnesO commentedon Feb 15, 2022
Tell me how to debug symbols and I do it.
It will take me some time to build the sources.
I have wallets to reproduce this bug that are empty, so I can give them to someone who can debug the source (I'm not sure it's the way to go).
GITErnesO commentedon Feb 16, 2022
V20.1 works fine. So you can load the wallet in 20.1 and then run V22 and problem solved. Once updated the wallet will load in V21 and V22.
achow101 commentedon Feb 17, 2022
Can you post the result when you do that? I'm having a hard time getting addr2line to output anything sensible.
If you are comfortable with doing that, you can upload them in a comment here, or send me an email at [email protected]
achow101 commentedon Feb 17, 2022
I think this may be the same issue as #21605
Edit: I was sent a wallet and have confirmed it is the same problem.
IvRRimum commentedon Feb 19, 2022
This happens to me too: #24388
laanwj commentedon Feb 24, 2022
Should be solved by #23304.
GITErnesO commentedon Feb 24, 2022
I'm glad this is going to be fixed in V23.
Many people may have wallets they didn't check from that time, may not find the workaround with V20.1, panic, etc.
I have 6 other wallets that crash with segmentation fault from that era (old copies) to check if this issue is solved.