From: Ondřej Surý Date: Fri, 9 Jul 2021 11:30:43 +0000 (+0200) Subject: Disable jemalloc for Address and Thread Sanitizers X-Git-Tag: v9.17.17~40^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca228ec3e5b4aeff1a097d375a988100583edf9b;p=thirdparty%2Fbind9.git Disable jemalloc for Address and Thread Sanitizers The Address and Thread Sanitizers both intercept the malloc calls and using the extended jemalloc API interferes with that. This commit disables the use of jemalloc for both ASAN and TSAN enabled builds to eliminate both false positives and false negatives. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea7bd423f2b..b107e9ff2cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -864,7 +864,7 @@ gcc:asan: CC: gcc CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined" LDFLAGS: "-fsanitize=address,undefined" - EXTRA_CONFIGURE: "--with-libidn2" + EXTRA_CONFIGURE: "--with-libidn2 --without-jemalloc" <<: *base_image <<: *build_job @@ -891,7 +891,7 @@ clang:asan: CC: ${CLANG} CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined" LDFLAGS: "-fsanitize=address,undefined" - EXTRA_CONFIGURE: "--with-libidn2" + EXTRA_CONFIGURE: "--with-libidn2 --without-jemalloc" <<: *base_image <<: *build_job @@ -922,7 +922,7 @@ gcc:tsan: CC: gcc CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread" LDFLAGS: "-fsanitize=thread" - EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock" + EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock --without-jemalloc" system:gcc:tsan: variables: @@ -949,7 +949,7 @@ clang:tsan: CC: "${CLANG}" CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread" LDFLAGS: "-fsanitize=thread" - EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock" + EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock --without-jemalloc" system:clang:tsan: variables: