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

pull ryanofsky wants to merge 4 commits into bitcoin:master from ryanofsky:pr/subtree-15 changing 68 files +1713 −581
  1. ryanofsky commented at 5:23 PM on November 3, 2026: contributor

    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.

  2. DrahtBot commented at 5:23 PM on November 3, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    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 <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 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36167.svg"></sub> ([RFC] Enable -Wunused by fanquake)
    • #36097 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36097.svg"></sub> (mining: replace interrupt methods with cancellation arguments by xyzconstant)
    • #35911 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35911.svg"></sub> (Warn on and add missing [[noreturn]] by fanquake)
    • #32387 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/32387.svg"></sub> (ipc: add windows support by ryanofsky)
    • #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 <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-->

  3. in CMakeLists.txt:525 in 13cf5d60ad
     520 | +  )
     521 | +  # Older clang versions (e.g. clang-17) do not recognize -Wc++23-lambda-attributes
     522 | +  # but emit the same diagnostic under the broader -Wc++23-extensions flag instead.
     523 | +  try_append_cxx_flags("-Wc++23-extensions" TARGET warn_interface SKIP_LINK
     524 | +    IF_CHECK_PASSED "-Wno-c++23-extensions"
     525 | +  )
    


    maflcko commented at 5:46 PM on November 3, 2026:

    note to myself: Can be removed in https://github.com/bitcoin/bitcoin/pull/36036

  4. in CMakeLists.txt:470 in 13cf5d60ad
     465 | @@ -466,6 +466,8 @@ if(MSVC)
     466 |    try_append_cxx_flags("/wd4267" TARGET warn_interface SKIP_LINK)
     467 |    try_append_cxx_flags("/wd4715" TARGET warn_interface SKIP_LINK)
     468 |    try_append_cxx_flags("/wd4805" TARGET warn_interface SKIP_LINK)
     469 | +  # C5283: lambda [[noreturn]] attribute before parameter list requires /std:c++23preview.
     470 | +  try_append_cxx_flags("/wd5283" TARGET warn_interface SKIP_LINK)
    


    maflcko commented at 5:47 PM on November 3, 2026:

    could merge #31507 first and then rebase, to avoid a conflict and avoid having to add this line?


    fanquake commented at 11:57 AM on November 4, 2026:

    #31507 has been merged. So could rebase here?


    ryanofsky commented at 7:27 PM on November 4, 2026:

    re: #36747 (review)

    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.

  5. in src/ipc/libmultiprocess/src/mp/util.cpp:357 in 13cf5d60ad outdated
     372 | +std::array<SocketId, 2> SocketPair()
     373 | +{
     374 | +    int pair[2];
     375 | +    KJ_SYSCALL(socketpair(AF_UNIX, SOCK_STREAM, 0, pair));
     376 | +    KJ_SYSCALL(fcntl(pair[0], F_SETFD, FD_CLOEXEC));
     377 | +    KJ_SYSCALL(fcntl(pair[1], F_SETFD, FD_CLOEXEC));
    


    ValeraFinebits commented at 11:21 AM on November 4, 2026:

    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.


    ryanofsky commented at 7:27 PM on November 4, 2026:

    re: #36747 (review)

    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.

  6. DrahtBot added the label Needs rebase on Nov 4, 2026
  7. Squashed 'src/ipc/libmultiprocess/' changes from e8de5c7b68e..acded1aafae
    acded1aafae Merge bitcoin-core/libmultiprocess#365: proxy-io: Generalize ConnectStream / ServeStream for use in tests
    98f609ac50f Merge bitcoin-core/libmultiprocess#389: refactor: Enable modernize-use-scoped-lock
    ee06487d861 refactor: Enable modernize-use-scoped-lock
    263139f41dd Merge bitcoin-core/libmultiprocess#387: ci: use newer `actions/*` versions
    388e37c5bc7 Merge bitcoin-core/libmultiprocess#386: gen: make `AccessorType` static
    81e55578047 Merge bitcoin-core/libmultiprocess#383: ci: Compile capnproto with GCC in gnu32 job
    c8ca0c0f6f1 ci: add -Wmissing-declarations to default.bash
    3edd64840d0 Merge bitcoin-core/libmultiprocess#379: type: Accept any comparator, hash, and allocator in container fields
    641c78ecacb ci: add -Wmissing-prototypes to LLVM config
    52a028c8b78 gen: make AccessorType static
    796dd742414 Merge bitcoin-core/libmultiprocess#380: .clang-tidy: Enable additional checks
    b1816a8d02a Merge bitcoin-core/libmultiprocess#362: Enable `-Wunused`
    cf2164ba0e2 ci: make curl fail more loudly
    0bce5ed7a41 ci: use newer actions/ versions
    ee8e64b87bc ci: add -Wunused to CI configs
    fd75dc66964 refactor: use requires clauses instead of SFINAE enable parameters
    0e6fffa8117 refactor: remove unused code
    fabc4901269 .clang-tidy: Enable additional modernize checks
    89bccd849ee Merge bitcoin-core/libmultiprocess#381: ci: Fix OpenBSD job
    04a0465d67a ci: Compile capnproto with GCC in gnu32 job
    1b742cfbbd7 ci: Fix OpenBSD job
    a4fa10754c7 .clang-tidy: Enable additional checks not in upstream Bitcoin Core
    7460e35896b .clang-tidy: Enable checks from upstream Bitcoin Core
    9a42d0065d9 type: Accept any comparator, hash, and allocator in container fields
    2e7812a5a1e Merge bitcoin-core/libmultiprocess#370: Fix Bitcoin Core build errors from libmultiprocess headers
    686bccf766f Merge bitcoin-core/libmultiprocess#371: cmake: Fix silent include-what-you-use failures
    f0a14754ef4 cmake: Show include-what-you-use diagnostics when it fails
    92127a984a4 cmake: Pass -w to include-what-you-use
    3577d23f616 ci: Enable -Wundef in default and llvm jobs
    debd42955ea proxy-types: Avoid -Wundef error when KJ_NO_EXCEPTIONS is not defined
    326ccfc2f87 test: simplify TestSetup using ServeStream/ConnectStream
    6fd2a9c90e1 Merge bitcoin-core/libmultiprocess#367: mpgen: Change Cap'n Proto link order to fix undefined references in static builds
    a8c64c7faa5 ci: Enable -Wunused-const-variable in GCC jobs
    e46876545b4 proxy-io: add destroy_connection parameter to ServeStream and ConnectStream
    701449c1657 util: Make SocketError inline constexpr
    01808baa188 proxy-io: let ServeStream take ownership of init object
    034e0d21b51 proxy-io: add EventLoop::incomingConnections()
    f1042b1a60e Merge bitcoin-core/libmultiprocess#366: ci: Compile with minimum supported g++-10 in olddeps
    a6ecdc113ff Merge bitcoin-core/libmultiprocess#364: util: Error out at compile time if KJ_NO_EXCEPTIONS is set
    56cfdaa884e Change CapnProto library linkage for mpgen
    fa5633467af ci: Compile with minimum supported g++-10 in olddeps
    4a1f400f8b7 util: Error out at compile time if KJ_NO_EXCEPTIONS is set
    2dba130478a Merge bitcoin-core/libmultiprocess#363: ci: use LLVM 23 in Bitcoin Core CI
    161197a5c7b Merge bitcoin-core/libmultiprocess#352: ci: add cmake debug output
    fb4ac7eb8c8 ci: use LLVM 23 in Bitcoin Core CI
    7bac69de1fc Merge bitcoin-core/libmultiprocess#360: pull latest .clang-tidy from downstream
    79ddc44eb32 Merge bitcoin-core/libmultiprocess#359: ci: bump cmake version to 4.3.4 in newdeps job
    bf229bf82ae Merge bitcoin-core/libmultiprocess#351: ci: do not ignore NIXPKGS_CHANNEL in local ci runs
    073ac4f1972 Merge bitcoin-core/libmultiprocess#347: refactor: Replace EventLoop::post() with sync() taking kj::FunctionParam
    fa1db7a9e3e pull latest .clang-tidy from downstream
    5c49666a1d8 refactor: rename EventLoop::m_post_fn to m_sync_fn
    2330fbe81e2 refactor: replace EventLoop::post() with sync() taking kj::FunctionParam
    4d454a81da6 Merge bitcoin-core/libmultiprocess#358: refactor: Enable readability-container-contains
    dba99582b32 Merge bitcoin-core/libmultiprocess#357: doc: Update Cap'n Proto version to match minimum
    00923922ac3 Merge bitcoin-core/libmultiprocess#356: ci: Remove hard-coded -j4 from sanitize config
    766867fb326 ci: clarify CAPNP_CHECKOUT=master is the v1.x release branch
    cc3675280bf ci: bump cmake version to 4.3.4 in newdeps job
    fa101113b50 refactor: Enable readability-container-contains
    81f824b025f doc: Update Cap'n Proto version to match minimum
    fa30e2093c7 ci: Remove hard-coded -j4 from sanitize config
    a7ff9d5da22 ci: add cmake debug output
    f2e8df82ede Merge bitcoin-core/libmultiprocess#350: cmake: add type-unordered-set.h and version.h to public headers
    0e146c0468d Merge bitcoin-core/libmultiprocess#349: type-context: fix async disconnect race condition found by antithesis
    49f95e26326 Merge bitcoin-core/libmultiprocess#212: ci: add newdeps job testing newer versions of cmake and capnproto
    7c73cceda9b ci: rename CI-internal variables to use CI_ prefix
    fe1b8339f00 ci: do not ignore NIXPKGS_CHANNEL in local ci runs
    914dc839f27 proxy: fix data race between server request threads and disconnect handling
    275c8eefdfb Merge bitcoin-core/libmultiprocess#345: Remove trailing whitespace and Add -Wtrailing-whitespace to default ci config
    cd7162fb832 Merge bitcoin-core/libmultiprocess#304: proxy: fix BuildList to use non-const iteration for interface types
    9b136782af1 ci: Add -Wtrailing-whitespace to default config
    2f4be9ec6ea refactor: Remove trailing whitespace
    2448d282ccd cmake: add type-unordered-set.h and version.h to public headers
    b3fc922ee4a ci: add newdeps job testing newest versions of cmake and capnproto
    390b5f901f1 Merge bitcoin-core/libmultiprocess#344: test: listen_tests and connect_tests follow-ups
    d6f8588d1ab proxy: fix BuildList to use non-const iteration for interface types
    e18ca520f45 Merge bitcoin-core/libmultiprocess#343: test: fix race in connect_tests disconnect-deferred-failure test
    c39c7850c66 doc: note construct() call in valid init interface test
    b9c36c61751 test: close sockets unconditionally and check errors with KJ_SYSCALL
    7eb741e6359 test: drop unnecessary KJ_EXPECT(true)
    113f1d4d287 test: join server thread unconditionally in connect tests
    44bc4630bc1 test: drop mp:: prefixes in connect tests
    038d33eb31e test: share DefaultLogHandler between test files
    b54a1633085 test: drop TestSetup socket members in connect tests
    70467c5a727 test: add m_ prefix to TestSetup members in connect tests
    cc260f2526f test: replace capnp fix link with upstream PR
    137a6e4e039 test: fix race in connect_tests disconnect-deferred-failure test
    8dab0d4bdeb Merge bitcoin-core/libmultiprocess#341: ci: add -Wextra-semi to llvm config
    b3b134eed8b ci: add -Wextra-semi to llvm config
    bdd0cd69418 Merge bitcoin-core/libmultiprocess#339: refactor: add `[[noreturn]]` attributes
    a779a09764c ci: add -Wmissing-noreturn
    636aaff576b refactor: add missing [[noreturn]] attributes
    cc11c2b1b41 Merge bitcoin-core/libmultiprocess#338: test: check ReadList return value
    2d6e863c77a Merge bitcoin-core/libmultiprocess#334: ci: Set CMAKE_BUILD_PARALLEL_LEVEL to enable parallelism by default
    d4d10ff98ab Merge bitcoin-core/libmultiprocess#332: ci: add -Wextra-semi to default config
    b540e70f25f Merge bitcoin-core/libmultiprocess#324: proxy: Name threads spawned by the event loop
    e5e367e785c Merge bitcoin-core/libmultiprocess#312: util: report back child errors to parent and throw
    2220df68c91 Merge bitcoin-core/libmultiprocess#298: Fix error handling when creating clients (`mp::ConnectStream`)
    51defb79ef7 Merge bitcoin-core/libmultiprocess#340: ci: Update `capnproto` prerequisites on NetBSD
    7e94790b08a ci: Update `capnproto` prerequisites on NetBSD
    9f25ffca5b0 test: Cover OS thread names for worker, pool, and async threads
    648a18589c4 proxy: Name threads spawned by the event loop
    49834b2609e ci: add -Wextra-semi to default config
    fae9a637e35 example: Remove unused kj/async.h include
    bb473690c97 Fix error handling when creating clients
    44d191420c6 Add test coverage for ConnectStream
    231361ae5af Correct stale UnixListener doc comment
    060c1a50d03 Extract `UnixListener` class to a dedicated file
    62f25af06c3 test: check ReadList return value
    ce51d737255 ci: Set CMAKE_BUILD_PARALLEL_LEVEL to enable parallism in build jobs by default
    67302cd132a Merge bitcoin-core/libmultiprocess#331: Remove code for Cap'n Proto versions before 0.9
    f13c64ab54e Merge bitcoin-core/libmultiprocess#330: ci: Compile with minimum supported g++ in olddeps
    8e026f66252 Merge bitcoin-core/libmultiprocess#327: build: avoid unnecessary capnp-rpc dependency for mpgen
    e5206e9eb5b Merge bitcoin-core/libmultiprocess#325: cmake: Remove `QUIET` option from `find_package(CapnProto ...)`
    879efea2bc7 Merge bitcoin-core/libmultiprocess#321: ci: Roll NetBSD releases to 11.0, drop 9.4
    abf127a3141 Merge bitcoin-core/libmultiprocess#317: ipc: Fix mpgen capnp tool path for vcpkg/Windows builds
    c437d7f107e Merge bitcoin-core/libmultiprocess#310: test: cover immediate client disconnects for `ListenConnections`
    31bff8a673f Merge bitcoin-core/libmultiprocess#307: refactor: memcpy -> std::ranges::copy
    f355108b0a0 Merge bitcoin-core/libmultiprocess#303: type-chrono: Add CustomBuildField/CustomReadField overloads for std::chrono::time_point
    2d678177c14 Merge bitcoin-core/libmultiprocess#296: ci: Bump channel to nixos-26.05
    3f05b11624c util: kill and reap child on SpawnProcess error
    4a56c1837a7 util: report back child error to parent and throw
    a9e70dbe775 ci: Add NetBSD release 11.0
    2d33b14fb0e ci: Switch to default compiler on NetBSD 9.4
    36f74002775 ci: Drop NetBSD release 9.4
    bd508311b56 refactor: Drop stray semicolons after function definitions
    788f17a8509 Remove code for Cap'n Proto versions before 0.9
    7402affd0ce ci: Pin oldeps config to older nixpkgs channel to compile older cmake with older gcc
    edf63435624 ci: Compile with minimum supported g++-11 in olddeps
    fa47449afe1 cmake: avoid unnecessary capnp-rpc dependency for mpgen
    a494b764de5 cmake: Remove `QUIET` option from `find_package(CapnProto ...)`
    26452e02d75 refactor: memcpy -> std::ranges::copy
    e1dcc6eb182 Merge bitcoin-core/libmultiprocess#316: cmake: Fix stale codegen when mpgen binary changes
    7a72df02e2d type-chrono: Add CustomBuildField/CustomReadField overloads for std::chrono::time_point
    45b685c3f58 type-number, type-chrono: Fix static assert signed/unsigned comparisons
    45f6255975d type-number: exclude bool from the integral overload
    8d6d4649482 Merge bitcoin-core/libmultiprocess#315: Fix startup race in example
    a6fc80d2547 Merge bitcoin-core/libmultiprocess#311: bugfix: clear FD_CLOEXEC in child instead of parent before fork
    496fb84e69f test: cover immediate client disconnects for `ListenConnections`
    36c6c63520e doc: Document reference-counted EventLoop lifetime
    3a997e113cf Fix startup race in mpexample
    f5c15ce33ff Merge bitcoin-core/libmultiprocess#323: refactor: access ThreadContext through CurrentThread(), ci: switch Bitcoin Core to master
    66298c737f4 ci: Switch back to Bitcoin Core's master branch
    86b48105018 refactor: access ThreadContext through CurrentThread()
    eea9c64f6e1 cmake: Fix stale codegen when mpgen binary changes
    a26a08496b8 cmake: Fix mpgen capnp tool path for vcpkg/Windows builds
    140d9ba6ff7 test: allow custom log handler in `ListenSetup`
    1e0c7ff9a51 util: Clear FD_CLOEXEC in child instead of parent before fork
    8550ee6a317 util, refactor: Add ChildFail helper for post-fork child errors
    17eab90b526 test: Fix typo in listen_tests.cpp
    ce865a9ba86 refactor: Directly use value in CustomBuildField
    3f221b5bfd7 Merge bitcoin-core/libmultiprocess#274: Add nonunix platform support
    1b0f6056062 doc: Remove trailing whitespace
    d8f8ca3119f ipc: Wrap mpgen main() in try-catch to print errors
    fbe5a14ad46 ci: Check out bitcoin/bitcoin PR #35084 instead of master
    39d3690d83d types: Replace SFINAE with requires clauses to avoid MSVC C2039 error
    ba68520203c proxy, refactor: Fix C4305 truncation warning in Accessor on MSVC
    1d81d47811e util, refactor: Fix PtrOrValue constructor for move-only types on MSVC
    b883fe1e527 proxy: Fix shutdownWrite() exception handling on macOS with dynamic libraries
    0012411ccc6 proxy: Call shutdownWrite() in Connection destructor
    38312ad1912 proxy, refactor: Change ConnectStream and ServeStream to accept stream objects
    e96d5d742ab proxy, refactor: Replace EventLoop wakeup fd integers with KJ stream objects
    db4f9a3d739 cmake: Bump minimum required Cap'n Proto version to 0.9
    652934fb793 util, refactor: Add SocketPair() and use it in SpawnProcess
    1c6ef7a26c0 util, refactor: Do not fork() and exec() separately
    1389cf3132f util, refactor: Add SpawnConnectInfo type alias and use it
    c7ca1f00b62 util, refactor: Add SocketId type alias and use it
    be46a35203c util, refactor: Add ProcessId type alias and use it
    91a78db7808 doc: Bump version 13 > 14
    fa2c56ec27f ci: Bump channel to nixos-26.05
    
    git-subtree-dir: src/ipc/libmultiprocess
    git-subtree-split: acded1aafae12ce57d3d5a6ce3beb6870805f469
    270f5dbe3d
  8. Merge commit '270f5dbe3ddac5191ec6b21ceb17c3dddb79b12f' into pr/subtree-15 c4ffd4e69f
  9. build: suppress -Wc++23-lambda-attributes in warn_interface
    Lambda [[noreturn]] attributes before the parameter list are a C++23
    extension intentionally used in C++20 builds (needed for compatibility
    with -Wmissing-noreturn). Suppress the extension warning rather than
    removing the attributes or working around them.
    
    Uses the existing IF_CHECK_PASSED idiom so GCC, which silently ignores
    unknown -Wno-* flags, is unaffected.
    
    This change was written with Claude Sonnet 4.6.
    4898199d8f
  10. doc: Bump minimum required Cap'n Proto version to 0.9.2
    The libmultiprocess update in the previous commit raises its minimum
    Cap'n Proto version from 0.7 to 0.9 (bitcoin-core/libmultiprocess#331).
    Its CMakeLists.txt also rejects versions 0.9.0 and 0.9.1, which are
    affected by CVE-2022-46149, so the oldest version that builds is 0.9.2.
    
    When building with Clang, the minimum is 1.0: libmultiprocess rejects
    Cap'n Proto 0.9.x and 0.10.x with Clang 16 and newer in C++20 mode
    (bitcoin-core/libmultiprocess#199), and Bitcoin Core requires Clang 17.
    
    This change was written with Claude Opus 5.5.
    d5f7524897
  11. in src/ipc/libmultiprocess/include/mp/proxy-io.h:977 in 13cf5d60ad outdated
     972 | +//! ThreadContext is thread_local and why its destructor is nontrivial.
     973 | +ThreadContext& CurrentThread();
     974 | +
     975 |  } // namespace mp
     976 |  
     977 |  #endif // MP_PROXY_IO_H
    


    ryanofsky commented at 7:27 PM on November 4, 2026:

    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.

  12. ryanofsky force-pushed on Nov 4, 2026
  13. ryanofsky commented at 7:34 PM on November 4, 2026: contributor

    <!-- begin push-2 -->

    Rebased 13cf5d60ad38b841c867138ffbe7316e9831df80 -> 4898199d8f97cad75cfd54a9caed3ffd3ce2948c (pr/subtree-15.1 -> pr/subtree-15.2, compare)<!-- 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.

  14. DrahtBot removed the label Needs rebase on Nov 4, 2026
  15. fanquake commented at 9:03 PM on November 4, 2026: member

    utACK 4898199d8f97cad75cfd54a9caed3ffd3ce2948c

  16. willcl-ark commented at 11:00 AM on November 5, 2026: member

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

  17. fanquake commented at 11:25 AM on November 5, 2026: member

    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
    
  18. in doc/dependencies.md:39 in d5f7524897
      35 | @@ -36,7 +36,7 @@ Bitcoin Core requires one of the following compilers.
      36 |  
      37 |  | Dependency | Releases | Minimum required |
      38 |  | --- | --- | --- |
      39 | -| [Cap'n Proto](../depends/packages/native_capnp.mk) ([IPC](multiprocess.md)) | [link](https://capnproto.org/) | [0.7.1](https://github.com/bitcoin/bitcoin/pull/33241) |
      40 | +| [Cap'n Proto](../depends/packages/native_capnp.mk) ([IPC](multiprocess.md)) | [link](https://capnproto.org/) | [0.9.2](https://github.com/bitcoin/bitcoin/pull/36747) (1.0 with Clang) |
    


    ryanofsky commented at 1:20 PM on November 5, 2026:

    re: #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 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).

  19. ryanofsky commented at 1:23 PM on November 5, 2026: contributor

    <!-- begin push-3 -->

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

  20. fanquake commented at 1:38 PM on November 5, 2026: member

    ACK d5f7524897dd5ec638cebf7d61607c561c3b9e2b

  21. willcl-ark approved
  22. willcl-ark commented at 1:47 PM on November 5, 2026: member

    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.

  23. willcl-ark commented at 2:02 PM on November 5, 2026: member

    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).

  24. fanquake merged this on Nov 5, 2026
  25. fanquake closed this on Nov 5, 2026

  26. ryanofsky commented at 4:51 PM on November 5, 2026: contributor

    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)

Linked (view graph)
#212 db.cpp:811: undefined reference to `fUseUPnP'#274 Fixed German translation#298 Lower transaction fee to allow micro-transactions#303 Demystify a few magic numbers.#304 Fix CPU Usage bug when using -nolisten and have no connections.#307 listreceivedbyaddress and getaddressesbyaccount return incorrect data#310 Updated Chinese Simp translation#311 Added Swedish translation#312 Remove unused variable#315 Consistent Bitcoin example address#316 DB_RUNRECOVERY: Fatal error#317 Validiating Block Versions and Hash_Types#321 wallet rescan doesn't work properly#323 Listtransactions bad transaction numbering#324 New RPC command - getrawtransaction#325 Build fails with gcc-4.6, glibc-2.13, boost-1.46.1#327 add GetTotalBlocksEstimate() function, move magic number to constant#330 Non-English Decimal Interpreted Incorrectly in util.cpp:ParseMoney#331 Update translations and remove obsolete translations.#332 Include missing Boost header#334 Bugfixes walletclass#338 renameable wallet.dat#339 official binary releases should be shipped with debugging symbols#340 bug introduced in 0.3.23, crash when no network interfaces up.#341 mlock() all private keys in memory#343 rpc server: send '403 Forbidden' to rejected clients#344 RPC - Massive amount of TIME_WAIT connections (Pool)#345 Polish translation#347 Fix segfault when creating new wallet#349 Fix OP_CHECKSIG bug with OP_PUSHDATA#350 CWallet: fix mapAddress book update#351 OS font size issues on GUI#352 Wallet Private Key Encryption (on CWallet)#356 Boost unit-testing framework.#357 Add OSX App bundle and correct build instructions to reflect reality.#358 Address Book related Fixes#359 wrong english wording "start bitcoin on window system startup"#360 Minor non-blocker updates to Crypto.#362 Fix connection failure debug output#363 Improvements to unit test setup#364 fix check for USE_UPNP in makefile.unix#365 Advertise "known block" count between peers and show in UI.#366 IRC connection command line arguments#367 Add new DNSSeed dnsseed.bluematt.me.#370 backup button in client for wallet.dat#371 Updated Visual C++ Makefile#379 Do not use comma as thousands separator#380 Added a couple minor things to match newer build process.#381 Add minversion to wallet.#383 Fix synchronization of default key#386 Support Dynamic Quicklists in Ubuntu Unity#387 Encapsulate wallet.dat in a folder alone #389 CKeyStore::AddKey must return a boolean#10102 Multiprocess bitcoin#29409 ipc: Expose Chain interface to IPC clients#31507 build: Use clang-cl to build on Windows natively#32387 ipc: add windows support#35084 ipc: Add nonunix platform support#35720 ipc: Update libmultiprocess subtree and drop fuzz test workaround#35911 Warn on and add missing [[noreturn]]#35932 ipc: make ipc::disconnectIncoming wait for in-progress calls to complete#36167 build: Enable `-Wunused`#36743 [RFC] build: build with -Wmissing-declarations/prototypes

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-11-07 15:51 UTC

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