Repository navigation
Backlog
Description
After #8221 lands, src/ipc/libmultiprocess is a git subtree pinned at libmultiprocess 35944ffd23fa (bitcoin#31741). Two known bugs at that pin only affect the experimental MULTIPROCESS=1 / -DENABLE_IPC=ON build, which release builds don't ship:
- Node crash when an IPC client disconnects during worker startup.
ProxyServer<ThreadMap>::makeThread()publishes the worker's context before the worker locks its waiter. If disconnect cleanup runs in that gap, the worker dereferences a null waiter. Reachable withdash-node -ipcbind. Fixed upstream in Update libmultiprocess subtree to fix race conditions on disconnects bitcoin/bitcoin#34804 (see ipc: AddressSanitizer: SEGV nptl/pthread_mutex_lock.c:80:23 in __pthread_mutex_lock bitcoin/bitcoin#34756). mpgenhangs when built without depends using GCC < 14 and Cap'n Proto < 0.9 (for example Ubuntu 22.04's packages). Compiled as C++20 against old KJ headers, the firstkj::StringPtrcomparison inGenerate()recurses forever, so IPC schema generation never finishes. Builds that use depends get Cap'n Proto 1.3.0 and are unaffected. Fixed upstream in Update libmultiprocess subtree to fix build issues bitcoin/bitcoin#33241 (see build: indefinite mpgen hang on Ubuntu 22.04 bitcoin/bitcoin#33176).
Upstream ships libmultiprocess fixes only as subtree updates, and each one builds on the previous update. Getting from 35944ffd23fa to bitcoin#34804 takes these, in order:
- Update libmultiprocess subtree to fix clang-tidy errors bitcoin/bitcoin#32641: clang-tidy fixes
- ipc: Handle unclean shutdowns better bitcoin/bitcoin#32345: ipc: Handle unclean shutdowns better (also changes Core)
- Update libmultiprocess subtree to fix build issues bitcoin/bitcoin#33241: build fixes, including the GCC/Cap'n Proto hang
- Update libmultiprocess subtree to improve build and logs bitcoin/bitcoin#33322: build and log improvements
- Update libmultiprocess subtree to fix intermittent mptest hang bitcoin/bitcoin#33412: intermittent mptest hang
- Update libmultiprocess subtree to support reduced logging bitcoin/bitcoin#33518: reduced logging
- Update libmultiprocess subtree to avoid occasional rpc_misc.py timeout bitcoin/bitcoin#34363: occasional
rpc_misc.pytimeout - Update libmultiprocess subtree to be more stable with rust IPC client bitcoin/bitcoin#34422: Rust IPC client stability
- Update libmultiprocess subtree to fix race conditions on disconnects bitcoin/bitcoin#34804: disconnect races
Expected: backport these as a series. Don't patch the subtree in place, because it has to match upstream byte for byte.
Metadata
Metadata
Assignees
Labels
No labels
Activity