Move sanitizer logs into regress for collection.

This commit is contained in:
Darren Tucker 2022-07-05 12:02:33 +10:00
parent 35ef2b3b6e
commit 55c60bdd39
2 changed files with 6 additions and 4 deletions

6
.github/configs vendored
View File

@ -43,6 +43,8 @@ case "$config" in
CONFIGFLAGS="--with-pam --with-Werror" CONFIGFLAGS="--with-pam --with-Werror"
;; ;;
clang-sanitize-*) clang-sanitize-*)
# Put Sanitizer logs in regress dir.
SANLOGS=`pwd`/regress
# - We replace chroot with chdir so that the sanitizer in the preauth # - We replace chroot with chdir so that the sanitizer in the preauth
# privsep process can read /proc. # privsep process can read /proc.
# - clang does not recognizes explicit_bzero so we use bzero # - clang does not recognizes explicit_bzero so we use bzero
@ -53,14 +55,14 @@ case "$config" in
clang-sanitize-address) clang-sanitize-address)
CFLAGS="-fsanitize=address -fno-omit-frame-pointer" CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
LDFLAGS="-fsanitize=address" LDFLAGS="-fsanitize=address"
CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DASAN_OPTIONS=\"detect_leaks=0:log_path=/tmp/asan.log\"' CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DASAN_OPTIONS=\"detect_leaks=0:log_path='$SANLOGS'/asan.log\"'
CONFIGFLAGS="--without-openssl --without-zlib --without-shadow" CONFIGFLAGS="--without-openssl --without-zlib --without-shadow"
TEST_TARGET="t-exec" TEST_TARGET="t-exec"
;; ;;
clang-sanitize-memory) clang-sanitize-memory)
CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins" CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins"
LDFLAGS="-fsanitize=memory" LDFLAGS="-fsanitize=memory"
CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DMSAN_OPTIONS=\"log_path=/tmp/msan.log\"' CPPFLAGS='-Dchroot=chdir -Dexplicit_bzero=bzero -DMSAN_OPTIONS=\"log_path='$SANLOGS'/msan.log\"'
CONFIGFLAGS="--without-openssl --without-zlib --without-shadow" CONFIGFLAGS="--without-openssl --without-zlib --without-shadow"
TEST_TARGET="t-exec" TEST_TARGET="t-exec"
;; ;;

View File

@ -109,5 +109,5 @@ jobs:
config.log config.log
regress/*.log regress/*.log
regress/valgrind-out/ regress/valgrind-out/
/tmp/asan.log.* regress/asan.log.*
/tnp/msan.log.* regress/msan.log.*