mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
test: Set tsan enable_adaptive_delay=1 by default #36308
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36308
Loading…
Reference in a new issue
No description provided.
Delete branch "2609-tsan-test-adapt-delay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There are several small sanitizer option issues:
Fix both issues by adding a
with_sanitizer_env.py ...cmd...command wrapper that sets the default values.Also, enable https://clang.llvm.org/docs/ThreadSanitizer.html#adaptive-delay, which may help to find some kind of rare races more frequently.
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.
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:
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.
utACk
fa0d826eacForgot to mention how to test the new sanitizer env:
-DSANITIZERS=undefined,integer,float-divide-by-zero(integer sanitizer requires a lot of suppressions)E.g the functional ones:
Or a unit test (requires the env explicitly to pass):
tACK
fa0d826eacI tested the sanitizer-env wrapper (with_sanitizer_env.py) and its auto-load in functional tests and confirmed both work as described.
I did not test the thread sanitizer / enable_adaptive_delay=1 change.
Base:
65896ac58ea63e29ad19d41b492e37f8722ac715Head:
fa0d826eac336238642428a14db9d122aa6ecd4dNo verified findings are available from this partial review.
Review coverage was incomplete. The archaeology review had incomplete evidence. The design review had incomplete evidence.
Full review report
cc @Crypt-iQ
ACK
fa0d826eacTested on Ubuntu 24.04, Clang:
with_sanitizer_env.pysets the project defaults, and lets an existing variable replace the whole default string rather than merging keys:Integer/UBSan build (
-DSANITIZERS=undefined,integer,float-divide-by-zero):util_string_tests(without the runtime options)with_sanitizer_env.py:wallet_disable.pypicks up those options with no manual export, both directly and throughtest_runner.py:enable_adaptive_delay=1on tsantest-only change with three acks rfm?
utACK
fa0d826eac