test: avoid undersized Boost.Test signal stacks #36045

pull l0rinc wants to merge 1 commits into bitcoin:master from l0rinc:l0rinc/test-kernel-sigaltstack changing 2 files +4 −0
  1. l0rinc commented at 5:20 PM on August 20, 2026: contributor

    Problem: Boost.Test can fail while an Alpine CI test binary is starting, before any tests run. The required signal stack size depends on the runner's CPU features, while musl provides a fixed size.

    Fix: Use the regular process stack for Boost.Test signal handling in both unit-test binaries.

    Fixes #36026

  2. test: avoid undersized Boost.Test signal stacks
    Boost.Test registers a `SIGSTKSZ` alternate signal stack as each test binary starts, before any tests run.
    On musl, this can be smaller than Linux's hardware-dependent minimum, causing `sigaltstack()` to fail with `ENOMEM` during setup.
    
    Disable Boost.Test's alternate stack in both test entry points.
    Signal handlers continue to use the regular process stack. Boost.Test can no longer report stack overflows.
    
    Fixes #36026
    
    Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
    9eba3aafa6
  3. DrahtBot added the label Tests on Aug 20, 2026
  4. DrahtBot commented at 5:20 PM on August 20, 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/36045.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    ACK maflcko

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. maflcko commented at 5:23 PM on August 20, 2026: member

    lgtm ACK 9eba3aafa6c26994a301965ef8ddca0ada5f85c7


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-08-21 04:51 UTC

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