Skip to content

Commit 02dc376

Browse files
committed
Added tsan_suppressions file to suppress TSAN warnings from zeromq
1 parent 3fb427c commit 02dc376

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/cmake_ubuntu_sanitizers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
GTEST_COLOR: "On"
6464
ASAN_OPTIONS: "color=always"
6565
UBSAN_OPTIONS: "halt_on_error=1:print_stacktrace=1:color=always"
66-
TSAN_OPTIONS: "color=always"
66+
TSAN_OPTIONS: "suppressions=${GITHUB_WORKSPACE}/BehaviorTree.CPP/tests/tsan_suppressions.txt:color=always"
6767
# There is a known issue with TSAN on recent kernel versions. Without the vm.mmap_rnd_bits=28
6868
# workaround all binaries with TSan enabled crash with "FATAL: ThreadSanitizer: unexpected memory mapping"
6969
run: sudo sysctl vm.mmap_rnd_bits=28 && ctest --test-dir build/${{env.BUILD_TYPE}} --output-on-failure

tests/tsan_suppressions.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# ThreadSanitizer suppressions file for behaviortree_cpp_test
2+
3+
# ZeroMQ false positives
4+
race:zmq::epoll_t::add_fd

0 commit comments

Comments
 (0)