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
WalletCreate{Encrypted/Plain} benchmark crash on Windows #29816
After modifying the guix build script for 27.0rc1 to produce the benchmark binary, when bench_bitcoin is run on Windows, it crashes on the WalletCreateEncrypted and WalletCreatePlain benchmarks with
terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
what(): filesystem error: cannot remove all: Broken pipe [C:\Users\ava\AppData\Local\Temp\test_common_Bitcoin Core\3429246d6bc3edb33b654eaa193f00685cbc45e5b8e31d04b784a4139314cbf9] [C:\Users\ava\AppData\Local\Temp\test_common_Bitcoin Core\3429246d6bc3edb33b654eaa193f00685cbc45e5b8e31d04b784a4139314cbf9\test_wallet_4003727542\wallet.dat]
only guessing but I've always found Windows fairly average at releasing file and socket handles. Maybe that's the cause of the test failure rather than anything code related.
In my other life I work with SIP (telecoms protocol) with lots of socket handles flying around. If it's only for testing then I generally just add a 5 second wait and try again for handle in use errors.
Activity
hebasto commentedon Apr 5, 2024
Does your Windows user have an OS permission to create symbolic links?
achow101 commentedon Apr 5, 2024
No, but even when run as admin which does, the error still occurs.
hebasto commentedon Apr 6, 2024
It seems the same issue as I noticed in #29773.
From @sipsorcery's comment:
hebasto commentedon Apr 6, 2024
I wonder if SQLite bothers to call
CloseHandle()on Windows?hebasto commentedon May 16, 2024
cc @furszy as an author of #28894.
furszy commentedon May 16, 2024
@hebasto, #30122
hebasto commentedon May 16, 2024
My research shows that
bitcoin/src/bench/wallet_create.cpp
Lines 43 to 44 in dd42a5d
shared_ptr<CWallet>deleter, which isReleaseWallet(), becausewallet.use_count() == 3.furszy commentedon May 16, 2024
Great 👍🏼 . #30122 releases the wallet too.
Merge #30122: bench: enable wallet creation benchmarks on all platforms
hebasto commentedon Jun 3, 2024
Can be closed as fixed by #30122.