Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Running bitcoin-qt -testnet
results in it eventually deadlocking due to a double lock in the warnings code.
Expected behaviour
Should not double lock.
Steps to reproduce
- Build with
--enable-debug
(or defineDEBUG_LOCKORDER
- Run
bitcoin-qt -testnet
, and either sync or reindex - It will assert and crash on its own (without
DEBUG_LOCKORDER
, it will eventually hang)
Relevant log output
02024-07-05T23:22:12.212000Z [scheduler] [../../../src/qt/bitcoin.cpp:215] [DebugMessageHandler] [qt] GUI: ClientModel: NotifyAlertChanged
12024-07-05T23:22:12.212029Z [scheduler] [../../../src/sync.cpp:129] [double_lock_detected] DOUBLE LOCK DETECTED
22024-07-05T23:22:12.212052Z [scheduler] [../../../src/sync.cpp:130] [double_lock_detected] Lock order:
32024-07-05T23:22:12.212072Z [scheduler] [../../../src/sync.cpp:136] [double_lock_detected] (*) 'm_mutex' in ../../../src/node/warnings.cpp:31 (in thread 'scheduler')
42024-07-05T23:22:12.212092Z [scheduler] [../../../src/sync.cpp:136] [double_lock_detected] (*) 'm_mutex' in ../../../src/node/warnings.cpp:46 (in thread 'scheduler')
5Assertion failed: detected double lock for 'm_mutex' in ../../../src/node/warnings.cpp:46 (in thread 'scheduler'), details in debug log.
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
bd5d1688b4311e21c0e0ff89a3ae02ef7d0543b8
Operating system and version
Arch
Machine specifications
No response