Update libmultiprocess subtree to add nonunix platform support and fix race conditions #36747

Manually merged
ryanofsky merged 4 commits from pr/subtree-15 into master 2026-11-05 14:21:09 +00:00 AGit
ryanofsky commented 2026-11-03 17:23:05 +00:00 (Migrated from github.com)

The changes can be verified by running test/lint/git-subtree-check.sh src/ipc/libmultiprocess as described in developer notes and lint instructions.

Changes since last subtree update (#35720):

  • Adds support for nonunix platforms, making API changes that are not backwards compatible (#274). Follow-ups add a CurrentThread() accessor matching compatibility code in bitcoin/bitcoin#35084 (#323) and remove code for Cap'n Proto versions before 0.9 (#331).
  • Fixes a data race between IPC calls running on worker threads and disconnects, found by Antithesis (#349).
  • Fixes a use-after-free when a socket disconnects before ConnectStream connects, and leaks and hangs when a client construct() call throws (#298).
  • Fixes a race where file descriptors from SpawnProcess could leak into processes forked at the same time by other threads, by clearing FD_CLOEXEC in the child after forking (#311).
  • Makes SpawnProcess report exec failures back to the parent and throw, reaping the child (#312).
  • Adds support for std::chrono::time_point fields (#303) and for serializing lists of interface objects that need to be moved from (#304), both needed by bitcoin/bitcoin#10102.
  • Accepts container fields and parameters with any comparator, hash, and allocator types, like Bitcoin Core's GCSFilter::ElementSet, needed by bitcoin/bitcoin#29409 (#379).
  • Finds the capnp tool in vcpkg and Windows builds, needed by bitcoin/bitcoin#32387 (#317).
  • Adds a destroy_connection option to ServeStream and ConnectStream, lets ServeStream take ownership of the init object and return the new server and its connection, and adds an EventLoop::incomingConnections() accessor, simplifying test setup in both repositories and needed by bitcoin/bitcoin#35932 (#365).
  • Replaces EventLoop::post() with sync() taking a kj::FunctionParam, avoiding a heap allocation per call (#347).
  • Names threads spawned by the event loop so they can be told apart in tools and logs (#324).
  • Fixes warnings that Bitcoin Core enables or plans to enable: adds [[noreturn]] attributes for -Wmissing-noreturn (#339, for bitcoin/bitcoin#35911), and fixes -Wunused (#362, for bitcoin/bitcoin#36167), -Wunused-const-variable and -Wundef (#370), and -Wmissing-prototypes (#386, for bitcoin/bitcoin#36743) warnings.
  • Fails at compile time with a suggested workaround when Cap'n Proto misdetects exception support (KJ_NO_EXCEPTIONS), as happens on NetBSD (#364).
  • Build improvements: fixes stale generated code when the mpgen binary changes (#316), fixes mpgen link order for static Cap'n Proto builds (#367), links mpgen against kj-async instead of capnp-rpc (#327), shows Cap'n Proto find_package diagnostics (#325), installs type-unordered-set.h and version.h (#350), and shows include-what-you-use errors instead of failing silently (#371).
  • Test, CI, documentation, and minor code improvements: fix for a startup race in the example program (#315), new test for immediate client disconnects in ListenConnections (#310), ReadList return value check (#338), connect test race fix (#343) and cleanups (#344), std::ranges::copy follow-ups (#307), trailing whitespace removal (#345), Cap'n Proto version documentation fix (#357), clang-tidy updates (#358, #360, #380, #389), new CI job testing newer cmake and Cap'n Proto versions (#212, #359), CI coverage for the minimum supported g++ (#330, #366), new CI warnings (#332, #341), CI parallelism (#334, #356), CI diagnostics (#351, #352), Nix and LLVM updates (#296, #363), NetBSD and OpenBSD CI fixes (#321, #340, #381), building Cap'n Proto with GCC in the 32-bit CI job to avoid an ABI mismatch (#383), and GitHub Actions updates (#387).

The second commit suppresses the clang -Wc++23-lambda-attributes warning, which the new [[noreturn]] lambda attribute in mp/proxy-types.h triggers in C++20 builds. Since #31507 the Windows build uses clang-cl, so the same flag covers it.

The third commit updates the minimum Cap'n Proto version in doc/dependencies.md to 0.9.2 (1.0 with Clang). This update raises libmultiprocess's own minimum from 0.7 to 0.9 (bitcoin-core/libmultiprocess#331), and libmultiprocess rejects 0.9.0 and 0.9.1 for CVE-2022-46149 and, with Clang 16 or newer, every version before 1.0.

The changes can be verified by running `test/lint/git-subtree-check.sh src/ipc/libmultiprocess` as described in [developer notes](https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#subtrees) and [lint instructions](https://github.com/bitcoin/bitcoin/tree/master/test/lint#git-subtree-checksh). Changes since last subtree update (#35720): - Adds support for nonunix platforms, making API changes that are not backwards compatible ([#274](https://github.com/bitcoin-core/libmultiprocess/pull/274)). Follow-ups add a `CurrentThread()` accessor matching compatibility code in [bitcoin/bitcoin#35084](https://github.com/bitcoin/bitcoin/pull/35084) ([#323](https://github.com/bitcoin-core/libmultiprocess/pull/323)) and remove code for Cap'n Proto versions before 0.9 ([#331](https://github.com/bitcoin-core/libmultiprocess/pull/331)). - Fixes a data race between IPC calls running on worker threads and disconnects, found by Antithesis ([#349](https://github.com/bitcoin-core/libmultiprocess/pull/349)). - Fixes a use-after-free when a socket disconnects before `ConnectStream` connects, and leaks and hangs when a client `construct()` call throws ([#298](https://github.com/bitcoin-core/libmultiprocess/pull/298)). - Fixes a race where file descriptors from `SpawnProcess` could leak into processes forked at the same time by other threads, by clearing `FD_CLOEXEC` in the child after forking ([#311](https://github.com/bitcoin-core/libmultiprocess/pull/311)). - Makes `SpawnProcess` report `exec` failures back to the parent and throw, reaping the child ([#312](https://github.com/bitcoin-core/libmultiprocess/pull/312)). - Adds support for `std::chrono::time_point` fields ([#303](https://github.com/bitcoin-core/libmultiprocess/pull/303)) and for serializing lists of interface objects that need to be moved from ([#304](https://github.com/bitcoin-core/libmultiprocess/pull/304)), both needed by [bitcoin/bitcoin#10102](https://github.com/bitcoin/bitcoin/pull/10102). - Accepts container fields and parameters with any comparator, hash, and allocator types, like Bitcoin Core's `GCSFilter::ElementSet`, needed by [bitcoin/bitcoin#29409](https://github.com/bitcoin/bitcoin/pull/29409) ([#379](https://github.com/bitcoin-core/libmultiprocess/pull/379)). - Finds the `capnp` tool in vcpkg and Windows builds, needed by [bitcoin/bitcoin#32387](https://github.com/bitcoin/bitcoin/pull/32387) ([#317](https://github.com/bitcoin-core/libmultiprocess/pull/317)). - Adds a `destroy_connection` option to `ServeStream` and `ConnectStream`, lets `ServeStream` take ownership of the init object and return the new server and its connection, and adds an `EventLoop::incomingConnections()` accessor, simplifying test setup in both repositories and needed by [bitcoin/bitcoin#35932](https://github.com/bitcoin/bitcoin/pull/35932) ([#365](https://github.com/bitcoin-core/libmultiprocess/pull/365)). - Replaces `EventLoop::post()` with `sync()` taking a `kj::FunctionParam`, avoiding a heap allocation per call ([#347](https://github.com/bitcoin-core/libmultiprocess/pull/347)). - Names threads spawned by the event loop so they can be told apart in tools and logs ([#324](https://github.com/bitcoin-core/libmultiprocess/pull/324)). - Fixes warnings that Bitcoin Core enables or plans to enable: adds `[[noreturn]]` attributes for `-Wmissing-noreturn` ([#339](https://github.com/bitcoin-core/libmultiprocess/pull/339), for [bitcoin/bitcoin#35911](https://github.com/bitcoin/bitcoin/pull/35911)), and fixes `-Wunused` ([#362](https://github.com/bitcoin-core/libmultiprocess/pull/362), for [bitcoin/bitcoin#36167](https://github.com/bitcoin/bitcoin/pull/36167)), `-Wunused-const-variable` and `-Wundef` ([#370](https://github.com/bitcoin-core/libmultiprocess/pull/370)), and `-Wmissing-prototypes` ([#386](https://github.com/bitcoin-core/libmultiprocess/pull/386), for [bitcoin/bitcoin#36743](https://github.com/bitcoin/bitcoin/pull/36743)) warnings. - Fails at compile time with a suggested workaround when Cap'n Proto misdetects exception support (`KJ_NO_EXCEPTIONS`), as happens on NetBSD ([#364](https://github.com/bitcoin-core/libmultiprocess/pull/364)). - Build improvements: fixes stale generated code when the `mpgen` binary changes ([#316](https://github.com/bitcoin-core/libmultiprocess/pull/316)), fixes `mpgen` link order for static Cap'n Proto builds ([#367](https://github.com/bitcoin-core/libmultiprocess/pull/367)), links `mpgen` against `kj-async` instead of `capnp-rpc` ([#327](https://github.com/bitcoin-core/libmultiprocess/pull/327)), shows Cap'n Proto `find_package` diagnostics ([#325](https://github.com/bitcoin-core/libmultiprocess/pull/325)), installs `type-unordered-set.h` and `version.h` ([#350](https://github.com/bitcoin-core/libmultiprocess/pull/350)), and shows include-what-you-use errors instead of failing silently ([#371](https://github.com/bitcoin-core/libmultiprocess/pull/371)). - Test, CI, documentation, and minor code improvements: fix for a startup race in the example program ([#315](https://github.com/bitcoin-core/libmultiprocess/pull/315)), new test for immediate client disconnects in `ListenConnections` ([#310](https://github.com/bitcoin-core/libmultiprocess/pull/310)), `ReadList` return value check ([#338](https://github.com/bitcoin-core/libmultiprocess/pull/338)), connect test race fix ([#343](https://github.com/bitcoin-core/libmultiprocess/pull/343)) and cleanups ([#344](https://github.com/bitcoin-core/libmultiprocess/pull/344)), `std::ranges::copy` follow-ups ([#307](https://github.com/bitcoin-core/libmultiprocess/pull/307)), trailing whitespace removal ([#345](https://github.com/bitcoin-core/libmultiprocess/pull/345)), Cap'n Proto version documentation fix ([#357](https://github.com/bitcoin-core/libmultiprocess/pull/357)), clang-tidy updates ([#358](https://github.com/bitcoin-core/libmultiprocess/pull/358), [#360](https://github.com/bitcoin-core/libmultiprocess/pull/360), [#380](https://github.com/bitcoin-core/libmultiprocess/pull/380), [#389](https://github.com/bitcoin-core/libmultiprocess/pull/389)), new CI job testing newer cmake and Cap'n Proto versions ([#212](https://github.com/bitcoin-core/libmultiprocess/pull/212), [#359](https://github.com/bitcoin-core/libmultiprocess/pull/359)), CI coverage for the minimum supported g++ ([#330](https://github.com/bitcoin-core/libmultiprocess/pull/330), [#366](https://github.com/bitcoin-core/libmultiprocess/pull/366)), new CI warnings ([#332](https://github.com/bitcoin-core/libmultiprocess/pull/332), [#341](https://github.com/bitcoin-core/libmultiprocess/pull/341)), CI parallelism ([#334](https://github.com/bitcoin-core/libmultiprocess/pull/334), [#356](https://github.com/bitcoin-core/libmultiprocess/pull/356)), CI diagnostics ([#351](https://github.com/bitcoin-core/libmultiprocess/pull/351), [#352](https://github.com/bitcoin-core/libmultiprocess/pull/352)), Nix and LLVM updates ([#296](https://github.com/bitcoin-core/libmultiprocess/pull/296), [#363](https://github.com/bitcoin-core/libmultiprocess/pull/363)), NetBSD and OpenBSD CI fixes ([#321](https://github.com/bitcoin-core/libmultiprocess/pull/321), [#340](https://github.com/bitcoin-core/libmultiprocess/pull/340), [#381](https://github.com/bitcoin-core/libmultiprocess/pull/381)), building Cap'n Proto with GCC in the 32-bit CI job to avoid an ABI mismatch ([#383](https://github.com/bitcoin-core/libmultiprocess/pull/383)), and GitHub Actions updates ([#387](https://github.com/bitcoin-core/libmultiprocess/pull/387)). The second commit suppresses the clang `-Wc++23-lambda-attributes` warning, which the new `[[noreturn]]` lambda attribute in `mp/proxy-types.h` triggers in C++20 builds. Since #31507 the Windows build uses clang-cl, so the same flag covers it. The third commit updates the minimum Cap'n Proto version in `doc/dependencies.md` to 0.9.2 (1.0 with Clang). This update raises libmultiprocess's own minimum from 0.7 to 0.9 (bitcoin-core/libmultiprocess#331), and libmultiprocess rejects 0.9.0 and 0.9.1 for CVE-2022-46149 and, with Clang 16 or newer, every version before 1.0.
DrahtBot commented 2026-11-03 17:23:18 +00:00 (Migrated from github.com)

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.

Type Reviewers
ACK fanquake, willcl-ark

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36167 ([RFC] Enable -Wunused by fanquake)
  • #36097 (mining: replace interrupt methods with cancellation arguments by xyzconstant)
  • #35911 (Warn on and add missing noreturn by fanquake)
  • #32387 (ipc: add windows support by ryanofsky)
  • #31507 (build: Use clang-cl to build on Windows natively by hebasto)
  • #29409 (ipc: Expose Chain interface to IPC clients by ryanofsky)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36747 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36747.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36747#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [fanquake](https://github.com/bitcoin/bitcoin/pull/36747#issuecomment-6659426262), [willcl-ark](https://github.com/bitcoin/bitcoin/pull/36747#pullrequestreview-5785920857) | 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. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36167](https://github.com/bitcoin/bitcoin/pull/36167) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36167.svg"></sub> ([RFC] Enable `-Wunused` by fanquake) * [#36097](https://github.com/bitcoin/bitcoin/pull/36097) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36097.svg"></sub> (mining: replace interrupt methods with cancellation arguments by xyzconstant) * [#35911](https://github.com/bitcoin/bitcoin/pull/35911) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35911.svg"></sub> (Warn on and add missing [[noreturn]] by fanquake) * [#32387](https://github.com/bitcoin/bitcoin/pull/32387) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/32387.svg"></sub> (ipc: add windows support by ryanofsky) * [#31507](https://github.com/bitcoin/bitcoin/pull/31507) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/31507.svg"></sub> (build: Use clang-cl to build on Windows natively by hebasto) * [#29409](https://github.com/bitcoin/bitcoin/pull/29409) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/29409.svg"></sub> (ipc: Expose Chain interface to IPC clients by ryanofsky) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3-->
maflcko (Migrated from github.com) reviewed 2026-11-03 17:47:35 +00:00
Lines 470-471
maflcko (Migrated from github.com) commented 2026-11-03 17:47:24 +00:00

could merge https://github.com/bitcoin/bitcoin/pull/31507 first and then rebase, to avoid a conflict and avoid having to add this line?

could merge https://github.com/bitcoin/bitcoin/pull/31507 first and then rebase, to avoid a conflict and avoid having to add this line?
Lines 525-529
maflcko (Migrated from github.com) commented 2026-11-03 17:46:14 +00:00
note to myself: Can be removed in https://github.com/bitcoin/bitcoin/pull/36036
First-time contributor

9 additional verified findings in the full report.

🟠 Minor · Spawn's EOF handshake can wait for an unrelated notify process

A concurrent notify launch can inherit the error-report socket before FD_CLOEXEC is set, leaving an authenticated, IPC-backed echoipc call waiting for the unrelated process to exit.

Location: src/ipc/libmultiprocess/src/mp/util.cpp:355 (head).

🟠 Minor · Error-channel allocation failure leaks the first socket pair

If the second SocketPair() fails under descriptor pressure, SpawnProcess leaks the two descriptors already allocated for IPC.

Location: src/ipc/libmultiprocess/src/mp/util.cpp:257 (head).

🟠 Minor · Malformed -ipcchild values pass descriptor parsing

Bundled v14 accepts numeric prefixes such as "3abc" as descriptors instead of reporting the previous Invalid -ipcchild value error.

Location: src/ipc/libmultiprocess/src/mp/util.cpp:345 (head).

🟠 Minor · Non-owning ConnectStream leaks its connection when construct() throws

A throwing construct() with destroy_connection=false leaves an unreachable Connection and its event-loop reference, preventing normal loop shutdown.

Location: src/ipc/libmultiprocess/include/mp/proxy-io.h:879 (head).

🟠 Minor · The race regression test can finish its RPC before disconnecting

The new TSan regression test can fail on correct code if the main thread is delayed beyond the worker's fixed 200 ms sleep.

Location: src/ipc/libmultiprocess/test/mp/test/test.cpp:441 (head).

🟠 Minor · Local dependency jobs reuse the first Cap'n Proto checkout

Successive local olddeps and newdeps runs share capnp/, so later runs can ignore the requested dependency revision even with CI_CLEAN=1.

Location: src/ipc/libmultiprocess/ci/scripts/ci.sh:28 (head).

Review coverage was incomplete.


Reviewed: d5f7524897dd · Full review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:4d44b6ffa09c54db24f8f0ab27ae388beae06a733efcae741ca64db76bb1c938:7efd3c3ba41667382004cfa7a7db56605da7d8f9b7ab69bc483f27117390ba48 --> <!-- ralph-base:42b28c8a231a21ed53dc7235c814613b3746622b --> <!-- ralph-head:d5f7524897dd5ec638cebf7d61607c561c3b9e2b --> <!-- ralph-case:64fe0a70e1898dbe55cb4551093bb240d8fde0ad0d3a24c34fa7faaad2283058 --> [9 additional verified findings in the full report](<https://review.fish.foo/traces/36747-d5f7524897dd5ec638cebf7d61607c561c3b9e2b-2231-3.html>). **🟠 Minor · Spawn's EOF handshake can wait for an unrelated notify process** A concurrent notify launch can inherit the error-report socket before FD_CLOEXEC is set, leaving an authenticated, IPC-backed echoipc call waiting for the unrelated process to exit. Location: [`src/ipc/libmultiprocess/src/mp/util.cpp:355`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d5f7524897dd5ec638cebf7d61607c561c3b9e2b/src/ipc/libmultiprocess/src/mp/util.cpp#L355>) (head). **🟠 Minor · Error-channel allocation failure leaks the first socket pair** If the second SocketPair() fails under descriptor pressure, SpawnProcess leaks the two descriptors already allocated for IPC. Location: [`src/ipc/libmultiprocess/src/mp/util.cpp:257`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d5f7524897dd5ec638cebf7d61607c561c3b9e2b/src/ipc/libmultiprocess/src/mp/util.cpp#L257>) (head). **🟠 Minor · Malformed -ipcchild values pass descriptor parsing** Bundled v14 accepts numeric prefixes such as "3abc" as descriptors instead of reporting the previous Invalid -ipcchild value error. Location: [`src/ipc/libmultiprocess/src/mp/util.cpp:345`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d5f7524897dd5ec638cebf7d61607c561c3b9e2b/src/ipc/libmultiprocess/src/mp/util.cpp#L345>) (head). **🟠 Minor · Non-owning ConnectStream leaks its connection when construct() throws** A throwing construct() with destroy_connection=false leaves an unreachable Connection and its event-loop reference, preventing normal loop shutdown. Location: [`src/ipc/libmultiprocess/include/mp/proxy-io.h:879`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d5f7524897dd5ec638cebf7d61607c561c3b9e2b/src/ipc/libmultiprocess/include/mp/proxy-io.h#L879>) (head). **🟠 Minor · The race regression test can finish its RPC before disconnecting** The new TSan regression test can fail on correct code if the main thread is delayed beyond the worker's fixed 200 ms sleep. Location: [`src/ipc/libmultiprocess/test/mp/test/test.cpp:441`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d5f7524897dd5ec638cebf7d61607c561c3b9e2b/src/ipc/libmultiprocess/test/mp/test/test.cpp#L441>) (head). **🟠 Minor · Local dependency jobs reuse the first Cap'n Proto checkout** Successive local olddeps and newdeps runs share capnp/, so later runs can ignore the requested dependency revision even with CI_CLEAN=1. Location: [`src/ipc/libmultiprocess/ci/scripts/ci.sh:28`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/d5f7524897dd5ec638cebf7d61607c561c3b9e2b/src/ipc/libmultiprocess/ci/scripts/ci.sh#L28>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`d5f7524897dd`](<https://git.fish.foo/bitcoin/bitcoin/commit/d5f7524897dd5ec638cebf7d61607c561c3b9e2b>) · [Full review report](<https://review.fish.foo/traces/36747-d5f7524897dd5ec638cebf7d61607c561c3b9e2b-2231-3.html>) · [Previous reports](<https://review.fish.foo/traces/36747/>) [permalink](<https://review.fish.foo/traces/36747-d5f7524897dd5ec638cebf7d61607c561c3b9e2b-2231-3.html>)
ValeraFinebits (Migrated from github.com) reviewed 2026-11-04 11:21:26 +00:00
ValeraFinebits (Migrated from github.com) commented 2026-11-04 11:21:27 +00:00

There appears to be a race here (FD_CLOEXEC is not set atomically with socket creation). It is unlikely to be triggered during normal Core operation today, but the risk could increase if SpawnProcess() is used more widely.

There appears to be a race here (`FD_CLOEXEC` is not set atomically with socket creation). It is unlikely to be triggered during normal Core operation today, but the risk could increase if `SpawnProcess()` is used more widely.
fanquake (Migrated from github.com) reviewed 2026-11-04 11:57:30 +00:00
Lines 470-471
fanquake (Migrated from github.com) commented 2026-11-04 11:57:30 +00:00

#31507 has been merged. So could rebase here?

#31507 has been merged. So could rebase here?
DrahtBot commented 2026-11-04 12:51:44 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
ryanofsky (Migrated from github.com) reviewed 2026-11-04 19:34:55 +00:00
ryanofsky (Migrated from github.com) left a comment

Rebased 13cf5d60ad -> 4898199d8f (pr/subtree-15.1 -> pr/subtree-15.2, compare) onto the latest master branches, adding bitcoin-core/libmultiprocess#365 and bitcoin-core/libmultiprocess#389 to the change list. Also drops the MSVC /wd5283 line after #31507, since the Windows build now uses clang-cl.

<!-- begin push-2 --> Rebased 13cf5d60ad38b841c867138ffbe7316e9831df80 -> 4898199d8f97cad75cfd54a9caed3ffd3ce2948c ([`pr/subtree-15.1`](https://github.com/ryanofsky/bitcoin/commits/pr/subtree-15.1) -> [`pr/subtree-15.2`](https://github.com/ryanofsky/bitcoin/commits/pr/subtree-15.2), [compare](https://github.com/ryanofsky/bitcoin/compare/pr/subtree-15.1-rebase..pr/subtree-15.2))<!-- end --> onto the latest master branches, adding bitcoin-core/libmultiprocess#365 and bitcoin-core/libmultiprocess#389 to the change list. Also drops the MSVC `/wd5283` line after #31507, since the Windows build now uses clang-cl.
Lines 470-471
ryanofsky (Migrated from github.com) commented 2026-11-04 19:27:13 +00:00

re: https://github.com/bitcoin/bitcoin/pull/36747#discussion_r4467127171

Thanks, rebased after #31507 and dropped the /wd5283 line, since the Windows build now uses clang-cl and the -Wno-c++23-lambda-attributes flag covers it.

re: https://github.com/bitcoin/bitcoin/pull/36747#discussion_r4467127171 Thanks, rebased after #31507 and dropped the `/wd5283` line, since the Windows build now uses clang-cl and the `-Wno-c++23-lambda-attributes` flag covers it.
ryanofsky (Migrated from github.com) commented 2026-11-04 19:27:17 +00:00

In commit "Merge commit '270f5dbe3d' into pr/subtree-15" (c4ffd4e69f)

Note for reviewers: This update includes bitcoin-core/libmultiprocess#365, which I merged without a current ACK, so post-merge review would be welcome here or on that PR. The only ACK was on an earlier push that differs by one IWYU comment.

In commit "Merge commit '270f5dbe3ddac5191ec6b21ceb17c3dddb79b12f' into pr/subtree-15" (c4ffd4e69fe216d360db6694d6b796fe407920d0) Note for reviewers: This update includes bitcoin-core/libmultiprocess#365, which I merged without a current ACK, so post-merge review would be welcome here or on that PR. The only ACK was on an earlier push that differs by one IWYU comment.
ryanofsky (Migrated from github.com) commented 2026-11-04 19:27:15 +00:00

re: https://github.com/bitcoin/bitcoin/pull/36747#discussion_r4466803696

Yes, this is a known race, noted in https://github.com/bitcoin-core/libmultiprocess/pull/311#pullrequestreview-4738358360 and https://github.com/bitcoin-core/libmultiprocess/pull/312#pullrequestreview-4818268394 as something follow-ups could improve. bitcoin-core/libmultiprocess#311 narrowed it, so now it only happens if an unrelated thread calls fork() between the socketpair() and fcntl() calls here. It is also not the only way descriptors can leak into child processes, since Bitcoin Core does not set FD_CLOEXEC on most of its own descriptors. As I recall there wasn't a cross-platform way to create the socket pair with FD_CLOEXEC set atomically, so the code sets the flag afterward to keep things simple.

This code is in the libmultiprocess subtree, so a change would need to go upstream in https://github.com/bitcoin-core/libmultiprocess, and I'd be happy to review a PR there improving it.

re: https://github.com/bitcoin/bitcoin/pull/36747#discussion_r4466803696 Yes, this is a known race, noted in https://github.com/bitcoin-core/libmultiprocess/pull/311#pullrequestreview-4738358360 and https://github.com/bitcoin-core/libmultiprocess/pull/312#pullrequestreview-4818268394 as something follow-ups could improve. bitcoin-core/libmultiprocess#311 narrowed it, so now it only happens if an unrelated thread calls `fork()` between the `socketpair()` and `fcntl()` calls here. It is also not the only way descriptors can leak into child processes, since Bitcoin Core does not set `FD_CLOEXEC` on most of its own descriptors. As I recall there wasn't a cross-platform way to create the socket pair with `FD_CLOEXEC` set atomically, so the code sets the flag afterward to keep things simple. This code is in the libmultiprocess subtree, so a change would need to go upstream in https://github.com/bitcoin-core/libmultiprocess, and I'd be happy to review a PR there improving it.
fanquake commented 2026-11-04 21:03:16 +00:00 (Migrated from github.com)

utACK 4898199d8f

utACK 4898199d8f97cad75cfd54a9caed3ffd3ce2948c
willcl-ark (Migrated from github.com) reviewed 2026-11-05 11:00:39 +00:00
willcl-ark (Migrated from github.com) left a comment

Do we need to bump doc/dependencies.md to v0.9.2 here? (and would it be 1.0+ for clang)

Do we need to bump doc/dependencies.md to v0.9.2 here? (and would it be 1.0+ for clang)
fanquake commented 2026-11-05 11:25:19 +00:00 (Migrated from github.com)

Guix Build:

aarch64
f1e9dde307a81897c2753742b8053c16617d720fef8289e5ad32401b12d911fb  guix-build-4898199d8f97/output/aarch64-linux-gnu/SHA256SUMS.part
8a9cca3b88af4bccffae5b1910d4d3658239744b5d14ba1453873321504e4b27  guix-build-4898199d8f97/output/aarch64-linux-gnu/bitcoin-4898199d8f97-aarch64-linux-gnu-debug.tar.gz
73888873889b5fb31fc39784aab267fcdbb0d85239f429e6ee9719e14cff0a8a  guix-build-4898199d8f97/output/aarch64-linux-gnu/bitcoin-4898199d8f97-aarch64-linux-gnu.tar.gz
f52975628ea19a871ea08ad8e25b611222c66da63fd60960729104704becee33  guix-build-4898199d8f97/output/arm-linux-gnueabihf/SHA256SUMS.part
f40a157c34863afd1cab9cd6b6681672e31166080dad84a006951a995d79b835  guix-build-4898199d8f97/output/arm-linux-gnueabihf/bitcoin-4898199d8f97-arm-linux-gnueabihf-debug.tar.gz
246e43e1ded43f39200ca876ea319dee184764f1094fb81893cead80ac887421  guix-build-4898199d8f97/output/arm-linux-gnueabihf/bitcoin-4898199d8f97-arm-linux-gnueabihf.tar.gz
2560ef4a6dbde4d8077288c84891abe4cc6336fb1f764ffb2a0ff4db4d7482ff  guix-build-4898199d8f97/output/arm64-apple-darwin/SHA256SUMS.part
32824aeb7626ec41a92c7215f40175fac54dcd11454ae4a7f95a6d27c39a378c  guix-build-4898199d8f97/output/arm64-apple-darwin/bitcoin-4898199d8f97-arm64-apple-darwin-codesigning.tar.gz
050712614a9805760a698efa459d3502f3402ef20f897cbffac9b74eca5f4299  guix-build-4898199d8f97/output/arm64-apple-darwin/bitcoin-4898199d8f97-arm64-apple-darwin-unsigned.tar.gz
38c961597c61202eaa71d211446352c678df26b9d1dbe7b9cbfbeee35ca6f489  guix-build-4898199d8f97/output/arm64-apple-darwin/bitcoin-4898199d8f97-arm64-apple-darwin-unsigned.zip
3ce59e8c681058aaf083c5205697c14f4d019c94e83940fda077fc3875a81a76  guix-build-4898199d8f97/output/dist-archive/bitcoin-4898199d8f97.tar.gz
4f907e0a5552a50ba5d9c76e4a0fb7ff8c7e11e7fb9ded1a599c04124b652111  guix-build-4898199d8f97/output/powerpc64-linux-gnu/SHA256SUMS.part
c8a4e00b79b390a3e832dfb779b104331035292df1780e759ba562f03e258e02  guix-build-4898199d8f97/output/powerpc64-linux-gnu/bitcoin-4898199d8f97-powerpc64-linux-gnu-debug.tar.gz
bdd2614fb4dcaa8774ed141c31d926892b2f1dc308c871c898de4e41d3a51d45  guix-build-4898199d8f97/output/powerpc64-linux-gnu/bitcoin-4898199d8f97-powerpc64-linux-gnu.tar.gz
a530d7e86a6267220133b6029f7e06c0911fa32c4fc31b972eb4926ee913d619  guix-build-4898199d8f97/output/riscv64-linux-gnu/SHA256SUMS.part
d5237e3223547327413e080822ca233a5edca309da24718725eefa833533468e  guix-build-4898199d8f97/output/riscv64-linux-gnu/bitcoin-4898199d8f97-riscv64-linux-gnu-debug.tar.gz
2e59f6dba02b3e92de3f49a0c473681aeb2c187771ef19dc71a5e73bbee38e3a  guix-build-4898199d8f97/output/riscv64-linux-gnu/bitcoin-4898199d8f97-riscv64-linux-gnu.tar.gz
c02547ef379dc2a2fdb56d3523fa7df3734b47eb10089af94b3990f977054de2  guix-build-4898199d8f97/output/x86_64-apple-darwin/SHA256SUMS.part
d310dcb7362ffbc5619de1e9bd84cfd937ba49e002a9254a392f8f8c1c2ad583  guix-build-4898199d8f97/output/x86_64-apple-darwin/bitcoin-4898199d8f97-x86_64-apple-darwin-codesigning.tar.gz
615e976b6af31e1c284a55ab75b431c10c9a07a4489769b8c775df8599cd27ca  guix-build-4898199d8f97/output/x86_64-apple-darwin/bitcoin-4898199d8f97-x86_64-apple-darwin-unsigned.tar.gz
b779b6857f7a4040df95e2c1eba03b00f7075b77ad11671a24071b7a09f6f517  guix-build-4898199d8f97/output/x86_64-apple-darwin/bitcoin-4898199d8f97-x86_64-apple-darwin-unsigned.zip
7fca139e6eff366dfe347ee340deb2238049c2f2085bd10de939e120a9f14abb  guix-build-4898199d8f97/output/x86_64-linux-gnu/SHA256SUMS.part
31b413524bed0f752a38e613aa3a3608245820ee224d01ff3d2fe018a26cdd49  guix-build-4898199d8f97/output/x86_64-linux-gnu/bitcoin-4898199d8f97-x86_64-linux-gnu-debug.tar.gz
ac3bf75ee424baecfcf218564d9e09dab2f3c0024f3cc24bc483eb8f38d3b474  guix-build-4898199d8f97/output/x86_64-linux-gnu/bitcoin-4898199d8f97-x86_64-linux-gnu.tar.gz
a3aeebe5ea43ce75103b1da71f7c722f88938f67d53c7810ebc56cf5c9a5d895  guix-build-4898199d8f97/output/x86_64-w64-mingw32/SHA256SUMS.part
39b4b2a110b78d166e023fa4bb17dd9358febb006b52b43d1824b209c186fe2f  guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-codesigning.tar.gz
93a33b682b74ae8eba90f282735fce6f941986f1d65d4390c26652683140ce33  guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-debug.zip
b778962f83d8092e0bebaf00c85eb6bef56aa45aed9510978d3ad79f82d3ce23  guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-setup-unsigned.exe
f1197de09d27b99d268749522300bac2afada345034383ceb7c2bd0c1486aade  guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-unsigned.zip
Guix Build: ```bash aarch64 f1e9dde307a81897c2753742b8053c16617d720fef8289e5ad32401b12d911fb guix-build-4898199d8f97/output/aarch64-linux-gnu/SHA256SUMS.part 8a9cca3b88af4bccffae5b1910d4d3658239744b5d14ba1453873321504e4b27 guix-build-4898199d8f97/output/aarch64-linux-gnu/bitcoin-4898199d8f97-aarch64-linux-gnu-debug.tar.gz 73888873889b5fb31fc39784aab267fcdbb0d85239f429e6ee9719e14cff0a8a guix-build-4898199d8f97/output/aarch64-linux-gnu/bitcoin-4898199d8f97-aarch64-linux-gnu.tar.gz f52975628ea19a871ea08ad8e25b611222c66da63fd60960729104704becee33 guix-build-4898199d8f97/output/arm-linux-gnueabihf/SHA256SUMS.part f40a157c34863afd1cab9cd6b6681672e31166080dad84a006951a995d79b835 guix-build-4898199d8f97/output/arm-linux-gnueabihf/bitcoin-4898199d8f97-arm-linux-gnueabihf-debug.tar.gz 246e43e1ded43f39200ca876ea319dee184764f1094fb81893cead80ac887421 guix-build-4898199d8f97/output/arm-linux-gnueabihf/bitcoin-4898199d8f97-arm-linux-gnueabihf.tar.gz 2560ef4a6dbde4d8077288c84891abe4cc6336fb1f764ffb2a0ff4db4d7482ff guix-build-4898199d8f97/output/arm64-apple-darwin/SHA256SUMS.part 32824aeb7626ec41a92c7215f40175fac54dcd11454ae4a7f95a6d27c39a378c guix-build-4898199d8f97/output/arm64-apple-darwin/bitcoin-4898199d8f97-arm64-apple-darwin-codesigning.tar.gz 050712614a9805760a698efa459d3502f3402ef20f897cbffac9b74eca5f4299 guix-build-4898199d8f97/output/arm64-apple-darwin/bitcoin-4898199d8f97-arm64-apple-darwin-unsigned.tar.gz 38c961597c61202eaa71d211446352c678df26b9d1dbe7b9cbfbeee35ca6f489 guix-build-4898199d8f97/output/arm64-apple-darwin/bitcoin-4898199d8f97-arm64-apple-darwin-unsigned.zip 3ce59e8c681058aaf083c5205697c14f4d019c94e83940fda077fc3875a81a76 guix-build-4898199d8f97/output/dist-archive/bitcoin-4898199d8f97.tar.gz 4f907e0a5552a50ba5d9c76e4a0fb7ff8c7e11e7fb9ded1a599c04124b652111 guix-build-4898199d8f97/output/powerpc64-linux-gnu/SHA256SUMS.part c8a4e00b79b390a3e832dfb779b104331035292df1780e759ba562f03e258e02 guix-build-4898199d8f97/output/powerpc64-linux-gnu/bitcoin-4898199d8f97-powerpc64-linux-gnu-debug.tar.gz bdd2614fb4dcaa8774ed141c31d926892b2f1dc308c871c898de4e41d3a51d45 guix-build-4898199d8f97/output/powerpc64-linux-gnu/bitcoin-4898199d8f97-powerpc64-linux-gnu.tar.gz a530d7e86a6267220133b6029f7e06c0911fa32c4fc31b972eb4926ee913d619 guix-build-4898199d8f97/output/riscv64-linux-gnu/SHA256SUMS.part d5237e3223547327413e080822ca233a5edca309da24718725eefa833533468e guix-build-4898199d8f97/output/riscv64-linux-gnu/bitcoin-4898199d8f97-riscv64-linux-gnu-debug.tar.gz 2e59f6dba02b3e92de3f49a0c473681aeb2c187771ef19dc71a5e73bbee38e3a guix-build-4898199d8f97/output/riscv64-linux-gnu/bitcoin-4898199d8f97-riscv64-linux-gnu.tar.gz c02547ef379dc2a2fdb56d3523fa7df3734b47eb10089af94b3990f977054de2 guix-build-4898199d8f97/output/x86_64-apple-darwin/SHA256SUMS.part d310dcb7362ffbc5619de1e9bd84cfd937ba49e002a9254a392f8f8c1c2ad583 guix-build-4898199d8f97/output/x86_64-apple-darwin/bitcoin-4898199d8f97-x86_64-apple-darwin-codesigning.tar.gz 615e976b6af31e1c284a55ab75b431c10c9a07a4489769b8c775df8599cd27ca guix-build-4898199d8f97/output/x86_64-apple-darwin/bitcoin-4898199d8f97-x86_64-apple-darwin-unsigned.tar.gz b779b6857f7a4040df95e2c1eba03b00f7075b77ad11671a24071b7a09f6f517 guix-build-4898199d8f97/output/x86_64-apple-darwin/bitcoin-4898199d8f97-x86_64-apple-darwin-unsigned.zip 7fca139e6eff366dfe347ee340deb2238049c2f2085bd10de939e120a9f14abb guix-build-4898199d8f97/output/x86_64-linux-gnu/SHA256SUMS.part 31b413524bed0f752a38e613aa3a3608245820ee224d01ff3d2fe018a26cdd49 guix-build-4898199d8f97/output/x86_64-linux-gnu/bitcoin-4898199d8f97-x86_64-linux-gnu-debug.tar.gz ac3bf75ee424baecfcf218564d9e09dab2f3c0024f3cc24bc483eb8f38d3b474 guix-build-4898199d8f97/output/x86_64-linux-gnu/bitcoin-4898199d8f97-x86_64-linux-gnu.tar.gz a3aeebe5ea43ce75103b1da71f7c722f88938f67d53c7810ebc56cf5c9a5d895 guix-build-4898199d8f97/output/x86_64-w64-mingw32/SHA256SUMS.part 39b4b2a110b78d166e023fa4bb17dd9358febb006b52b43d1824b209c186fe2f guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-codesigning.tar.gz 93a33b682b74ae8eba90f282735fce6f941986f1d65d4390c26652683140ce33 guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-debug.zip b778962f83d8092e0bebaf00c85eb6bef56aa45aed9510978d3ad79f82d3ce23 guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-setup-unsigned.exe f1197de09d27b99d268749522300bac2afada345034383ceb7c2bd0c1486aade guix-build-4898199d8f97/output/x86_64-w64-mingw32/bitcoin-4898199d8f97-win64-unsigned.zip ```
ryanofsky (Migrated from github.com) reviewed 2026-11-05 13:23:08 +00:00
ryanofsky (Migrated from github.com) left a comment

Added 1 commits 4898199d8f -> d5f7524897 (pr/subtree-15.2 -> pr/subtree-15.3, compare) adding a commit that updates the minimum Cap'n Proto version in doc/dependencies.md, as willcl-ark suggested

<!-- begin push-3 --> Added 1 commits 4898199d8f97cad75cfd54a9caed3ffd3ce2948c -> d5f7524897dd5ec638cebf7d61607c561c3b9e2b ([`pr/subtree-15.2`](https://github.com/ryanofsky/bitcoin/commits/pr/subtree-15.2) -> [`pr/subtree-15.3`](https://github.com/ryanofsky/bitcoin/commits/pr/subtree-15.3), [compare](https://github.com/ryanofsky/bitcoin/compare/pr/subtree-15.2...pr/subtree-15.3))<!-- end --> adding a commit that updates the minimum Cap'n Proto version in `doc/dependencies.md`, as willcl-ark suggested
ryanofsky (Migrated from github.com) commented 2026-11-05 13:20:41 +00:00

re: https://github.com/bitcoin/bitcoin/pull/36747#pullrequestreview-5783814463

In commit "doc: Bump minimum required Cap'n Proto version to 0.9.2" (d5f7524897)

Do we need to bump doc/dependencies.md to v0.9.2 here? (and would it be 1.0+ for clang)

Thanks, yes to both. This update raises libmultiprocess's minimum from 0.7 to 0.9 (bitcoin-core/libmultiprocess#331), and its CMakeLists.txt rejects 0.9.0 and 0.9.1 because of CVE-2022-46149, and rejects 0.9.x and 0.10.x when building with Clang 16 or newer in C++20 mode. With Bitcoin Core requiring Clang 17, that makes the Clang minimum 1.0, so I added a commit updating doc/dependencies.md to say 0.9.2 (1.0 with Clang).

re: https://github.com/bitcoin/bitcoin/pull/36747#pullrequestreview-5783814463 In commit "doc: Bump minimum required Cap'n Proto version to 0.9.2" (d5f7524897dd5ec638cebf7d61607c561c3b9e2b) > Do we need to bump doc/dependencies.md to v0.9.2 here? (and would it be 1.0+ for clang) Thanks, yes to both. This update raises libmultiprocess's minimum from 0.7 to 0.9 (bitcoin-core/libmultiprocess#331), and its [CMakeLists.txt](https://github.com/bitcoin-core/libmultiprocess/blob/acded1aafae12ce57d3d5a6ce3beb6870805f469/CMakeLists.txt#L38-L58) rejects 0.9.0 and 0.9.1 because of CVE-2022-46149, and rejects 0.9.x and 0.10.x when building with Clang 16 or newer in C++20 mode. With Bitcoin Core requiring Clang 17, that makes the Clang minimum 1.0, so I added a commit updating `doc/dependencies.md` to say 0.9.2 (1.0 with Clang).
fanquake commented 2026-11-05 13:38:49 +00:00 (Migrated from github.com)
ACK d5f7524897dd5ec638cebf7d61607c561c3b9e2b
willcl-ark (Migrated from github.com) approved these changes 2026-11-05 13:47:59 +00:00
willcl-ark (Migrated from github.com) left a comment

ACK d5f7524897

Checked the merge/integration more than the upstream changes themselves, although I did have an LLM whizz over them too. It surfaced one or two potential "upstream bugs", which we don't have a production use of, so I don't consider worthwhile mentioning here.

ACK d5f7524897dd5ec638cebf7d61607c561c3b9e2b Checked the merge/integration more than the upstream changes themselves, although I did have an LLM whizz over them too. It surfaced one or two potential "upstream bugs", which we don't have a production use of, so I don't consider worthwhile mentioning here.
willcl-ark commented 2026-11-05 14:02:25 +00:00 (Migrated from github.com)

Tangential to this PR, but we could also drop libmultiprocess from the dependency table while keeping WITH_EXTERNAL_LIBMULTIPROCESS documented in the IPC development instructions.

Normal builds use the bundled revision by default anyway, and the external option seems mainly useful for libmultiprocess development. Listing a minimum external version there makes it look like a dependency users need to install (and whose compatible version numbers we need to keep updated).

Tangential to this PR, but we could also drop libmultiprocess from the dependency table while keeping `WITH_EXTERNAL_LIBMULTIPROCESS` documented in the IPC development instructions. Normal builds use the bundled revision by default anyway, and the external option seems mainly useful for libmultiprocess development. Listing a minimum external version there makes it look like a dependency users need to install (and whose compatible version numbers we need to keep updated).
ryanofsky commented 2026-11-05 16:51:00 +00:00 (Migrated from github.com)

Thanks for reviews and merge!

Now that this is merged, https://github.com/bitcoin-core/libmultiprocess/pull/388 should be merged before other libmultiprocess changes, and needs review for the version.h change (trivial).

(https://github.com/bitcoin-core/libmultiprocess/pull/365 could use review as well since I merged it without an ack on the latest commit)

Thanks for reviews and merge! Now that this is merged, https://github.com/bitcoin-core/libmultiprocess/pull/388 should be merged before other libmultiprocess changes, and needs review for the `version.h` change (trivial). (https://github.com/bitcoin-core/libmultiprocess/pull/365 could use review as well since I merged it without an ack on the latest commit)
maflcko (Migrated from github.com) reviewed 2026-11-26 16:45:33 +00:00
maflcko (Migrated from github.com) commented 2026-11-26 16:45:33 +00:00
I don't think 0.9.2 is true for GCC either. It fails in G++13. See https://godbolt.org/z/z15x6d7bn , P2468R2 and https://github.com/bitcoin/bitcoin/pull/36033#discussion_r4694962976
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36747
No description provided.