Skip to content

Commit

Permalink
TSAN exclusion for libc++
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Oct 3, 2024
1 parent 8cf4bc3 commit c1b3c05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/thread_safety/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ local tests =

for test in $(tests)
{
# TSAN seems to raise a false positive with libc++ shared_ptr/weak_ptr, used in this test
local libcpp_exclusion ;
if $(test) = "connection_pool_cancel_get_connection" {
libcpp_exclusion = <stdlib>libc++:<build>no ;
}

# In OSX, tsan reports a race condition in Asio's kqueue reactor. Ignore this for now.
# Net TS executors use std::atomic_thread_fence, unsupported by TSAN, which yields false positives.
# gcc-5 seems to emit incorrect tsan instrumentation code for static initializations
Expand All @@ -36,6 +42,7 @@ for test in $(tests)
<target-os>darwin:<build>no
<boost.mysql.use-ts-executor>on:<build>no
<toolset>gcc-5:<build>no
$(libcpp_exclusion)
<thread-sanitizer>norecover
: target-name $(test)
;
Expand Down

0 comments on commit c1b3c05

Please sign in to comment.