common: Skip environment locale check on illumos #36399

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:261001-illumos-locale changing 1 files +4 −1
  1. hebasto commented at 3:23 PM on October 1, 2026: member

    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:

    Closes https://github.com/hebasto/bitcoin-core-nightly/issues/315.

  2. common: Skip environment locale check on illumos
    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:
    - https://github.com/illumos/gcc/pull/56#issuecomment-5933176361
    - https://github.com/omniosorg/omnios-build/issues/4253
    - https://www.illumos.org/issues/18481
    ae15693011
  3. DrahtBot commented at 3:24 PM on October 1, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36399.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. maflcko commented at 3:54 PM on October 1, 2026: member

    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)

  5. maflcko commented at 4:05 PM on October 1, 2026: member

    to clarify: boost fs has long been removed (https://github.com/bitcoin/bitcoin/issues/4147#issuecomment-42491986)


github-metadata-mirror

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-10-02 07:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me