0SUMMARY: ThreadSanitizer: data race (/home/admin/actions-runner/_work/_temp/build/src/ipc/libmultiprocess/test/mptest+0x6ee095) (BuildId: 0a10180b43648715b83845ce52ff1702609db59d) in kj::Refcounted::disposeImpl(void*) const
ryanofsky
commented at 11:43 am on October 2, 2025:
contributor
maflcko
commented at 12:02 pm on October 2, 2025:
member
I think the nix config is not using an instrumented libcpp, which could be a reason for the difference? C.f. USE_INSTRUMENTED_LIBCPP="Thread".
ryanofsky
commented at 1:35 pm on October 2, 2025:
contributor
I think the nix config is not using an instrumented libcpp, which could be a reason for the difference?
Yes, that was the reason! Enabling “-DLLVM_USE_SANITIZER=Thread” for libcxx in nix lets me reproduce this. Will make a PR updating the CI job and fixing the bug, once I figure out what the bug is
EDIT: This turned out not to be true. Building libc++ with -DLLVM_USE_SANITIZER=Thread did trigger tsan errors related to use of stdout, but these are not the same errors happening here. The tsan errors happening here show up when building cap’n proto with -fsanitize=thread and are just caused by a test bug introduced in https://github.com/bitcoin-core/libmultiprocess/pull/214
ryanofsky referenced this in commit
7eb1da120a
on Oct 2, 2025
ryanofsky referenced this in commit
1cfe54149d
on Oct 2, 2025
ryanofsky referenced this in commit
73d22ba2e9
on Oct 2, 2025
fanquake marked this as a draft
on Oct 3, 2025
fanquake referenced this in commit
7240cdb35c
on Oct 3, 2025
fanquake referenced this in commit
6c7113cb07
on Oct 3, 2025
fanquake referenced this in commit
7189bd447a
on Oct 3, 2025
fanquake referenced this in commit
1434642b38
on Oct 3, 2025
ryanofsky
commented at 9:35 pm on October 3, 2025:
contributor
ryanofsky referenced this in commit
f4344ae87d
on Oct 7, 2025
ryanofsky force-pushed
on Oct 7, 2025
Squashed 'src/ipc/libmultiprocess/' changes from 47d79db8a552..a4f929696490
a4f929696490 Merge bitcoin-core/libmultiprocess#224: doc: fix typos
f4344ae87da0 Merge bitcoin-core/libmultiprocess#222: test, ci: Fix threadsanitizer errors in mptest
1434642b3804 doc: fix typos
73d22ba2e930 test: Fix tsan race in thread busy test
b74e1bba014d ci: Use tsan-instrumented cap'n proto in sanitizers job
c332774409ad test: Fix failing exception check in new thread busy test
ca3c05d56709 test: Use KJ_LOG instead of std::cout for logging
7eb1da120ab6 ci: Use tsan-instrumented libcxx in sanitizers job
ec86e4336e98 Merge bitcoin-core/libmultiprocess#220: Add log levels and advertise them to users via logging callback
515ce93ad349 Logging: Pass LogData struct to logging callback
213574ccc43d Logging: reclassify remaining log messages
e4de0412b430 Logging: Break out expensive log messages and classify them as Trace
408874a78fdc Logging: Use new logging macros
67b092d835cd Logging: Disable logging if messsage level is less than the requested level
d0a1ba7ebf21 Logging: add log levels to mirror Core's
463a8296d188 Logging: Disable moving or copying Logger
83a2e10c0b03 Logging: Add an EventLoop constructor to allow for user-specified log options
58cf47a7fc8c Merge bitcoin-core/libmultiprocess#221: test default PassField impl handles output parameters
db03a663f514 Merge bitcoin-core/libmultiprocess#214: Fix crash on simultaneous IPC calls using the same thread
afcc40b0f1e8 Merge bitcoin-core/libmultiprocess#213: util+doc: Clearer errors when attempting to run examples + polished docs
6db669628387 test In|Out parameter
29cf2ada75ea test default PassField impl handles output parameters
1238170f68e8 test: simultaneous IPC calls using same thread
eb069ab75d83 Fix crash on simultaneous IPC calls using the same thread
ec03a9639ab5 doc: Precision and typos
2b4348193551 doc: Where possible, remove links to ryanofsky/bitcoin/
286fe469c9c9 util: Add helpful error message when failing to execute file
git-subtree-dir: src/ipc/libmultiprocess
git-subtree-split: a4f92969649018ca70f949a09148bccfeaecd99a
0f01e1577f
Merge commit '0f01e1577f7c6734eb345139a12aba329ef22a5f' into pr/subtree-6eda91b07fd
ryanofsky referenced this in commit
a4f9296964
on Oct 7, 2025
ryanofsky force-pushed
on Oct 7, 2025
ryanofsky
commented at 2:20 pm on October 7, 2025:
contributor
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: 2025-10-10 21:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me