mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 14:05:38 +00:00
WIP: common: Skip environment locale check on illumos #36399
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36399
Loading…
Reference in a new issue
No description provided.
Delete branch "261001-illumos-locale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Closes https://github.com/hebasto/bitcoin-core-nightly/issues/315.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.
Base:
7988380da987c0b860885853ace8149b84ac2ee8Head:
ae156930118c9fda1cece3dfcff41820afdb4875Design and approach
Confirm the locale-check exemption covers all illumos toolchains (src/common/system.cpp:75, head)
The condition skips the invalid-environment locale check for every illumos build, but the stated destructor crash concerns distributions using libstdc++'s dragonfly locale model. Previously, a failed
std::locale("")check setLC_ALLtoC.UTF-8, and Qt later callssetlocale(LC_ALL, "")during initialization (src/qt/bitcoin.cpp:203). An illumos build unaffected by the destructor bug may therefore lose this recovery for invalidLC_*settings. Please confirm that all supported illumos toolchains need the exemption, or restrict it to the affected runtime configuration if unaffected illumos toolchains are supported and still need the fallback.Full review report
Why is all of this code needed (https://github.com/bitcoin/bitcoin/pull/4174#issue-33259538) 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)
to clarify: boost fs has long been removed (https://github.com/bitcoin/bitcoin/issues/4147#issuecomment-42491986)
Let's close and move discussion to https://github.com/bitcoin/bitcoin/pull/36524 ?
Closing in favour of https://github.com/bitcoin/bitcoin/pull/36524.