mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Merge branch '2458-run-asan-and-tsan-with-latest-stable-gcc' into 'main'
Use Fedora image for ASAN and TSAN CI jobs; drop TSan suppressions Closes #2458 See merge request isc-projects/bind9!4709
This commit is contained in:
@@ -21,7 +21,7 @@ variables:
|
|||||||
CFLAGS_COMMON: -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1 -g -Wall -Wextra
|
CFLAGS_COMMON: -fno-omit-frame-pointer -fno-optimize-sibling-calls -O1 -g -Wall -Wextra
|
||||||
|
|
||||||
# Pass run-time flags to AddressSanitizer to get core dumps on error.
|
# Pass run-time flags to AddressSanitizer to get core dumps on error.
|
||||||
ASAN_OPTIONS_COMMON: abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1
|
ASAN_OPTIONS: abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1
|
||||||
TSAN_OPTIONS_COMMON: "disable_coredump=0 second_deadlock_stack=1 history_size=7 log_exe_name=true log_path=tsan external_symbolizer_path=/usr/lib/llvm-12/bin/llvm-symbolizer"
|
TSAN_OPTIONS_COMMON: "disable_coredump=0 second_deadlock_stack=1 history_size=7 log_exe_name=true log_path=tsan external_symbolizer_path=/usr/lib/llvm-12/bin/llvm-symbolizer"
|
||||||
|
|
||||||
TARBALL_EXTENSION: xz
|
TARBALL_EXTENSION: xz
|
||||||
@@ -928,22 +928,18 @@ gcc:asan:
|
|||||||
CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined"
|
CFLAGS: "${CFLAGS_COMMON} -fsanitize=address,undefined"
|
||||||
LDFLAGS: "-fsanitize=address,undefined"
|
LDFLAGS: "-fsanitize=address,undefined"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --without-jemalloc"
|
EXTRA_CONFIGURE: "--with-libidn2 --without-jemalloc"
|
||||||
<<: *base_image
|
<<: *fedora_34_amd64_image
|
||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
system:gcc:asan:
|
system:gcc:asan:
|
||||||
variables:
|
<<: *fedora_34_amd64_image
|
||||||
ASAN_OPTIONS: ${ASAN_OPTIONS_COMMON}
|
|
||||||
<<: *base_image
|
|
||||||
<<: *system_test_job
|
<<: *system_test_job
|
||||||
needs:
|
needs:
|
||||||
- job: gcc:asan
|
- job: gcc:asan
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
||||||
unit:gcc:asan:
|
unit:gcc:asan:
|
||||||
variables:
|
<<: *fedora_34_amd64_image
|
||||||
ASAN_OPTIONS: ${ASAN_OPTIONS_COMMON}
|
|
||||||
<<: *base_image
|
|
||||||
<<: *unit_test_job
|
<<: *unit_test_job
|
||||||
needs:
|
needs:
|
||||||
- job: gcc:asan
|
- job: gcc:asan
|
||||||
@@ -959,8 +955,6 @@ clang:asan:
|
|||||||
<<: *build_job
|
<<: *build_job
|
||||||
|
|
||||||
system:clang:asan:
|
system:clang:asan:
|
||||||
variables:
|
|
||||||
ASAN_OPTIONS: ${ASAN_OPTIONS_COMMON}
|
|
||||||
<<: *base_image
|
<<: *base_image
|
||||||
<<: *system_test_job
|
<<: *system_test_job
|
||||||
needs:
|
needs:
|
||||||
@@ -968,8 +962,6 @@ system:clang:asan:
|
|||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
||||||
unit:clang:asan:
|
unit:clang:asan:
|
||||||
variables:
|
|
||||||
ASAN_OPTIONS: ${ASAN_OPTIONS_COMMON}
|
|
||||||
<<: *base_image
|
<<: *base_image
|
||||||
<<: *unit_test_job
|
<<: *unit_test_job
|
||||||
needs:
|
needs:
|
||||||
@@ -979,18 +971,18 @@ unit:clang:asan:
|
|||||||
# Jobs for TSAN builds on Debian 10 "buster" (amd64)
|
# Jobs for TSAN builds on Debian 10 "buster" (amd64)
|
||||||
|
|
||||||
gcc:tsan:
|
gcc:tsan:
|
||||||
<<: *base_image
|
|
||||||
<<: *build_job
|
|
||||||
variables:
|
variables:
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread"
|
CFLAGS: "${CFLAGS_COMMON} -fsanitize=thread"
|
||||||
LDFLAGS: "-fsanitize=thread"
|
LDFLAGS: "-fsanitize=thread"
|
||||||
EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock --without-jemalloc"
|
EXTRA_CONFIGURE: "--with-libidn2 --enable-pthread-rwlock --without-jemalloc"
|
||||||
|
<<: *fedora_34_amd64_image
|
||||||
|
<<: *build_job
|
||||||
|
|
||||||
system:gcc:tsan:
|
system:gcc:tsan:
|
||||||
variables:
|
variables:
|
||||||
TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON}
|
TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON}
|
||||||
<<: *base_image
|
<<: *fedora_34_amd64_image
|
||||||
<<: *system_test_tsan_job
|
<<: *system_test_tsan_job
|
||||||
needs:
|
needs:
|
||||||
- job: gcc:tsan
|
- job: gcc:tsan
|
||||||
@@ -998,8 +990,8 @@ system:gcc:tsan:
|
|||||||
|
|
||||||
unit:gcc:tsan:
|
unit:gcc:tsan:
|
||||||
variables:
|
variables:
|
||||||
TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON} suppressions=$CI_PROJECT_DIR/tsan-suppressions.txt
|
TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON}
|
||||||
<<: *base_image
|
<<: *fedora_34_amd64_image
|
||||||
<<: *unit_test_tsan_job
|
<<: *unit_test_tsan_job
|
||||||
needs:
|
needs:
|
||||||
- job: gcc:tsan
|
- job: gcc:tsan
|
||||||
|
Reference in New Issue
Block a user