]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Suppress TSAN errors from libfstrm.so
authorMichal Nowak <mnowak@isc.org>
Wed, 10 Feb 2021 13:21:08 +0000 (14:21 +0100)
committerMichal Nowak <mnowak@isc.org>
Thu, 29 Apr 2021 14:19:16 +0000 (16:19 +0200)
dnstap_test produces TSAN errors which originate in libfstrm.so. Unless
libfstrm is TSAN clean or a workaround is placed in libfstrm sources,
suppressing TSAN coming from libfstrm is necessary to test DNSTAP under
TSAN.

(cherry picked from commit c97c6fbfea2a58e95ef58c13b9aec07501496a9e)

.gitlab-ci.yml
tsan-suppressions.txt [new file with mode: 0644]

index f8c53ec8202827c38f058df4a09833c72e945e80..4347570ce1a231c9afa8346c4ddc5ad3c03923d5 100644 (file)
@@ -1023,7 +1023,7 @@ system:gcc:tsan:
 
 unit:gcc:tsan:
   variables:
-    TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON}
+    TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON} suppressions=$CI_PROJECT_DIR/tsan-suppressions.txt
   <<: *base_image
   <<: *unit_test_tsan_job
   needs:
@@ -1050,7 +1050,7 @@ system:clang:tsan:
 
 unit:clang:tsan:
   variables:
-    TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON}
+    TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON} suppressions=$CI_PROJECT_DIR/tsan-suppressions.txt
   <<: *base_image
   <<: *unit_test_tsan_job
   needs:
diff --git a/tsan-suppressions.txt b/tsan-suppressions.txt
new file mode 100644 (file)
index 0000000..b12e038
--- /dev/null
@@ -0,0 +1,2 @@
+# Uninstrumented library.
+called_from_lib:libfstrm.so