Skip to content

Commit 2a3dfcf

Browse files
committed
ci: fix TSAN false positives from FFI memory reuse
Run TSAN tests sequentially to avoid false positives caused by memory address reuse between parallel tests crossing FFI boundaries. The x11 C code is thread-safe (stack-allocated state only).
1 parent a39f946 commit 2a3dfcf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/sanitizer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ jobs:
6565
RUSTFLAGS: "-Zsanitizer=thread -Cdebuginfo=2"
6666
TSAN_OPTIONS: "second_deadlock_stack=1"
6767
run: |
68-
# Async/concurrent crates
68+
# Async/concurrent crates (single-threaded to avoid false positives from FFI memory reuse)
6969
cargo +nightly test -Zbuild-std --target x86_64-unknown-linux-gnu \
70-
-p dash-spv -p key-wallet --lib --tests
70+
-p dash-spv -p key-wallet --lib --tests -- --test-threads=1

0 commit comments

Comments
 (0)