From f0ed2bd2331a59f0771f2a7e6969928c3aa04e31 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Thu, 12 Dec 2019 21:28:58 +0300 Subject: [PATCH] Suppress an msan false positive in exception handling. See https://github.com/google/sanitizers/issues/1155 --- cmake/sanitize.cmake | 2 +- dbms/tests/msan_suppressions.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 dbms/tests/msan_suppressions.txt diff --git a/cmake/sanitize.cmake b/cmake/sanitize.cmake index a5d1d0d3055..e72a1e52918 100644 --- a/cmake/sanitize.cmake +++ b/cmake/sanitize.cmake @@ -23,7 +23,7 @@ if (SANITIZE) # RelWithDebInfo, and downgrade optimizations to -O1 but not to -Og, to # keep the binary size down. # TODO: try compiling with -Og and with ld.gold. - set (MSAN_FLAGS "-fsanitize=memory -fsanitize-memory-track-origins -fno-optimize-sibling-calls") + set (MSAN_FLAGS "-fsanitize=memory -fsanitize-memory-track-origins -fno-optimize-sibling-calls -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/dbms/tests/msan_suppressions.txt") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} ${MSAN_FLAGS}") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} ${MSAN_FLAGS}") diff --git a/dbms/tests/msan_suppressions.txt b/dbms/tests/msan_suppressions.txt new file mode 100644 index 00000000000..24d77231c4b --- /dev/null +++ b/dbms/tests/msan_suppressions.txt @@ -0,0 +1,2 @@ +# https://github.com/google/oss-fuzz/issues/1099 +fun:__gxx_personality_*