laanwj
commented at 3:02 PM on August 18, 2016:
member
The pickDataDirectory() function was calling exit(0) to quit the application when the user closes the dialog without choosing a data directory.
This is a bad idea because a background thread is created (to check free space on the drive of the currently selected datadir). The thread is not stopped and unwound properly, resulting in a potential
race condition somewhere deep in Qt (while running exit-triggered destructors).
So replace the exit() by a boolean return value, and let the stack unwind normally.
qt: Fix random segfault when closing "Choose data directory" dialog
The `pickDataDirectory()` function was calling `exit(0)` to quit
the application when the user closes the dialog without choosing
a data directory.
This is a bad idea because a background thread is created (to
check free space on the drive of the currently selected datadir).
The thread is not stopped and unwound properly, resulting in a potential
race condition somewhere deep in Qt.
So replace the `exit()` by a boolean return value, and let the
stack unwind normally.
b4a9aa511c
laanwj added the label Bug on Aug 18, 2016
laanwj added the label GUI on Aug 18, 2016
MarcoFalke
commented at 4:01 PM on August 18, 2016:
member
Concept ACKb4a9aa511c95a1bd0da8ae363b3b9c0b3b7afe4e. Is this something for 13.1?
laanwj added this to the milestone 0.13.1 on Aug 18, 2016
laanwj added the label Needs backport on Aug 18, 2016
laanwj
commented at 4:03 PM on August 18, 2016:
member
Concept ACKb4a9aa5. Is this something for 13.1?
yes, probably
laanwj merged this on Aug 19, 2016
laanwj closed this on Aug 19, 2016
laanwj referenced this in commit 36404aeec8 on Aug 19, 2016
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC