Skip to content

Commit 1c0e2d9

Browse files
facontidavideclaude
andcommitted
Add TSAN suppressions for FileLogger2 false positives
TSAN doesn't properly track happens-before relationship between mutex creation in make_unique and first cross-thread access, even though std::thread::thread provides the synchronization guarantee. The mutex is properly protected: base class constructor acquires/releases it before StatusChangeLogger subscribes to callbacks, and writer thread acquires it before setting the ready flag. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8c607f9 commit 1c0e2d9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎tests/tsan_suppressions.txt‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22

33
# ZeroMQ false positives
44
race:zmq::epoll_t::add_fd
5+
6+
# FileLogger2 false positive: TSAN doesn't properly track happens-before
7+
# relationship between mutex creation in make_unique and first cross-thread
8+
# access, even though std::thread::thread provides the synchronization.
9+
# The mutex is properly protected: base class constructor acquires/releases it
10+
# before StatusChangeLogger subscribes to callbacks, and writer thread acquires
11+
# it before setting ready flag.
12+
mutex:BT::FileLogger2
13+
race:BT::FileLogger2::callback
14+
race:BT::FileLogger2::writerLoop

0 commit comments

Comments
 (0)