Repository navigation
Conversation
On illumos-based distributions whose GCC is built with the
`--enable-clocale=dragonfly` option (e.g. OmniOS, OpenIndiana), the
`std::ctype<char>::~ctype()` destructor passes an uninitialized value
to `freelocale()`.
Constructing and destroying `std::locale("")` in `SetupEnvironment()`
therefore intermittently crashes, e.g. with "libc thread failure:
lfree() called with a misaligned pointer".
Upstream reports:
- illumos/gcc#56 (comment)
- omniosorg/omnios-build#4253
- https://www.illumos.org/issues/18481
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. |
Member
|
Why is all of this code needed (#4174 (comment)) in the first place? At this point it may be better to delete it (possibly move it to the GUI, if it is needed there) |
Member
|
to clarify: boost fs has long been removed (#4147 (comment)) |
hebasto
marked this pull request as draft
October 11, 2026 06:24
Member
|
Let's close and move discussion to #36524 ? |
Member
Author
|
Closing in favour of #36524. |
sedited
added a commit
that referenced
this pull request
Oct 19, 2026
43bb5e3 doc: add release note for #36524 (fanquake) cbd2964 common: drop locale setting hack (fanquake) 1164c77 test: run GUI nodes in Dutch with -lang (stickies-v) Pull request description: This was added to work around `boost::filesystem` throwing when the environments locale was invalid. Boost.Filesystem has been removed, and `std::filesystem` doesn't use the locale on POSIX (and bitcoind never calls `setlocale`). Qt calls `setlocale(LC_ALL, "")` on startup, and falls back to `C.UTF-8` if the locale isn't `UTF-8`. Alternative to #36399, which extends the hack further. ACKs for top commit: maflcko: review ACK 43bb5e3 🚂 stickies-v: ACK 43bb5e3 sedited: ACK 43bb5e3 Tree-SHA512: f67d0ba67f57333906970b32f607c859c6bc9fc1462a62cf4687817acb922e72f9ac8f2cfc828fbb1d60f91d90152b28a738f37439c5c7fdd1f38e70eb2feb74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

On illumos-based distributions whose GCC is built with the
--enable-clocale=dragonflyoption (e.g. OmniOS, OpenIndiana), thestd::ctype<char>::~ctype()destructor passes an uninitialized value tofreelocale().Constructing and destroying
std::locale("")inSetupEnvironment()therefore intermittently crashes, e.g. with "libc thread failure: lfree() called with a misaligned pointer".Upstream reports:
std::locale("")crashes infreelocale()omniosorg/omnios-build#4253Closes hebasto/bitcoin-core-nightly#315.