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
{{ message }}
Repository navigation
bitcoind and bitcoin-qt crashes while creating PSBT #26185
bitcoind and bitcoin-qt crashes when creating a PSBT with walletcreatefundedpsbt
Expected behavior
bitcoind and bitcoin-qt should not crash and users should not see assertion errors on mainnet. Failing gracefully with some error message would be better. Although I was not able to reproduce this issue on Fedora so ideally this should be fixed.
Actual behavior
Error in bitcoind:
Assertion failed: selected_effective_value >= target, file wallet/coinselection.cpp, line 391
Create PSBT using bitcoin-qt, click on different options in the error message and you will notice it creates PSBT with no change by clicking 'ignore' 3 times else crashes with others:
ghost changed the title [-]`bitcoind` and `bitcoin-qt` crashes while creating PSBT for watch only address [windows][/-][+]`bitcoind` and `bitcoin-qt` crashes while creating PSBT [windows][/+]on Sep 26, 2022
Is your reproduction exactly what you did? Was that with a new blank wallet, or a wallet that has other addresses and existing coins? The descriptor and input in your example do not exist on neither mainnet nor testnet, so it's hard to say why these assertions were hit. It should have exited with insufficient funds and an earlier point in coin selection.
changed the title [-]`bitcoind` and `bitcoin-qt` crashes while creating PSBT [windows][/-][+]`bitcoind` and `bitcoin-qt` crashes while creating PSBT[/+]on Sep 27, 2022
Activity
[-]`bitcoind` and `bitcoin-qt` crashes while creating PSBT for watch only address [windows][/-][+]`bitcoind` and `bitcoin-qt` crashes while creating PSBT [windows][/+]achow101 commentedon Sep 26, 2022
Is your reproduction exactly what you did? Was that with a new blank wallet, or a wallet that has other addresses and existing coins? The descriptor and input in your example do not exist on neither mainnet nor testnet, so it's hard to say why these assertions were hit. It should have exited with insufficient funds and an earlier point in coin selection.
achow101 commentedon Sep 26, 2022
How did you do the windows build? Cross compiled? MSVC? Something else?
Do you observe the same issue with 24.0rc1?
aureleoules commentedon Sep 27, 2022
Could you provide a stacktrace to see which coin selection algorithm led to this assertion failure?
--enable-debugthenmake clean all -j8bitcoindbitcoindwithps aux | grep bitcoindbitcoindwithgdb -p [PID]set logging enabled onthen typecand enterbacktracein GDB then typecand enter./gdb.txtaureleoules commentedon Sep 27, 2022
I think you forgot to run
cafterset logging enabled onin GDBfanquake commentedon Sep 27, 2022
Here's a backtrace with a (debug) build of master (9fcdb9f):
[-]`bitcoind` and `bitcoin-qt` crashes while creating PSBT [windows][/-][+]`bitcoind` and `bitcoin-qt` crashes while creating PSBT[/+]aureleoules commentedon Sep 27, 2022
Yes I'm not sure you were using a debug build @1440000bytes, did you
make cleanafter reconfiguring with--enable-debug?It's fine anyway now.
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…
Merge bitcoin#26203: wallet: Use correct effective value when checkin…