Skip to content

[31.x] More Backports - #35969

Merged
sedited merged 18 commits into
bitcoin:31.xfrom
fanquake:even_more_31_x_backports
Sep 10, 2026
Merged

sedited merged 18 commits into
bitcoin:31.xfrom
fanquake:even_more_31_x_backports

Conversation

MarcoFalke and others added 12 commits August 10, 2026 14:23
…in-qt

The print_suppressions=0 is required to avoid a CI failure when the
suppressions were used. E.g:

```
$ LSAN_OPTIONS="suppressions=$(pwd)/test/sanitizer_suppressions/lsan:print_suppressions=1" ./bld-cmake/test/functional/interface_gui.py
2026-08-08T10:53:45.864160Z TestFramework (INFO): PRNG seed is: 8358096631255493262
2026-08-08T10:53:45.914748Z TestFramework (INFO): Initializing test directory /tmp/bitcoin_func_test_5zx5343v
2026-08-08T10:53:47.029997Z TestFramework (INFO): Test that bitcoin-gui starts up and can be stopped via RPC
2026-08-08T10:53:47.431761Z TestFramework (ERROR): Unexpected exception:
  File "./test/functional/test_framework/test_node.py", line 534, in is_node_stopped
    raise AssertionError("Unexpected stderr {} != {}".format(stderr, expected_stderr))
AssertionError: Unexpected stderr -----------------------------------------------------
Suppressions used:
  count      bytes template
      2        181 bitcoin-qt
----------------------------------------------------- !=
```

The general suppression of the qt executables is required to avoid CI
failures for i386 builds. E.g:

```
 test  2026-08-05T08:54:08.370427Z TestFramework (ERROR): Unexpected exception:
      Traceback (most recent call last):
        File "/ci_container_base/ci/scratch_ ₿🧪_/build-i686-pc-linux-gnu/test/functional/interface_gui.py", line 34, in run_test
          self.stop_node(0)
          ~~~~~~~~~~~~~~^^^
        File "/ci_container_base/test/functional/test_framework/test_node.py", line 525, in is_node_stopped
          assert return_code in expected_ret_code, self._node_msg(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AssertionError: [node 0] Node returned unexpected exit code (1) vs ((0,)) when stopping

 node0 stderr =================================================================
==73449==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 386 byte(s) in 17 object(s) allocated from:
    #0 0x5df28a2d in malloc (/ci_container_base/ci/scratch_ ₿🧪_/build-i686-pc-linux-gnu/bin/bitcoin-qt+0x1d0da2d) (BuildId: 496a5df531df278fe395724ae917f266331b3f81)
    #1 0xee03c1d1  (<unknown module>)

Indirect leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x5df28a2d in malloc (/ci_container_base/ci/scratch_ ₿🧪_/build-i686-pc-linux-gnu/bin/bitcoin-qt+0x1d0da2d) (BuildId: 496a5df531df278fe395724ae917f266331b3f81)
    #1 0xee03c1d1  (<unknown module>)

SUMMARY: AddressSanitizer: 398 byte(s) leaked in 18 allocation(s).
```

Github-Pull: bitcoin#35937
Rebased-From: fad9ab7
WITH_ZMQ defaults to OFF in CMakeLists.txt with no macOS exception.

Github-Pull: bitcoin#35928
Rebased-From: 222855e
NetBSD 11.0, the latest release, ships GCC 12.5.0 as the base
system compiler, which meets the minimum version requirement in
`doc/dependencies.md`.

Github-Pull: bitcoin#35908
Rebased-From: 9b85c98
These have been unused since the following commits:
 - c61d3f0
 - e12ff8a

Github-Pull: bitcoin#35914
Rebased-From: da58e55
This has been unused since 3333282.

Github-Pull: bitcoin#35914
Rebased-From: 3df0d06
…n.cpp`

This has been unused since 0de48fe.

Github-Pull: bitcoin#35914
Rebased-From: b7ae50e
These have been unused since the following commits:
 - c320cdd
 - e9c5aeb
 - 216e693

Github-Pull: bitcoin#35914
Rebased-From: e50f422
This has been unused since it was introduced in
938e86f.

Github-Pull: bitcoin#35914
Rebased-From: e550945
This has been unused since 3b98bf9.

Github-Pull: bitcoin#35914
Rebased-From: 3175d57
@DrahtBot

DrahtBot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

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

Code Coverage & Benchmarks

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

Reviews

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

Type Reviewers
ACK willcl-ark, sedited

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

@fanquake fanquake added this to the 31.2 milestone Aug 15, 2026
jpk68 and others added 2 commits August 25, 2026 10:13
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 bitcoin#36026

Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^[email protected]>

Github-Pull: bitcoin#36045
Rebased-From: 9eba3aa
@fanquake
fanquake force-pushed the even_more_31_x_backports branch from f836306 to 859ee11 Compare August 25, 2026 09:17
@fanquake
fanquake marked this pull request as ready for review September 9, 2026 12:34
@fanquake
fanquake requested a review from willcl-ark September 9, 2026 12:34
@willcl-ark

Copy link
Copy Markdown
Member

Did we consider backporting #35659, then we can fully backport #35908 (and then the instructions will be up-to-date for current NetBSD)?

@fanquake

Copy link
Copy Markdown
Member Author

Did we consider backporting #35659,

I don't think we should backport changes that drop support for systems that are currently supported by a branch.

@willcl-ark

Copy link
Copy Markdown
Member

OK that makes sense to me.

@willcl-ark willcl-ark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 859ee11

All backports are correct. 35908 is partial so as not to drop support for older BSDs on the old branch.

All are present in the release notes.

@fanquake
fanquake force-pushed the even_more_31_x_backports branch from 859ee11 to a3c4252 Compare September 10, 2026 10:16

@willcl-ark willcl-ark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reACK a3c4252

range-diff from previous ACK 859ee11...a3c4252 adds #36199 and #36201 correctly.

@sedited sedited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a3c4252

#35978 and #36045 are missing in the PR description.

@fanquake

Copy link
Copy Markdown
Member Author

Thanks, added.

@sedited
sedited merged commit 62b39a2 into bitcoin:31.x Sep 10, 2026
26 checks passed
@fanquake
fanquake deleted the even_more_31_x_backports branch September 10, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants