diff --git a/.github/configs b/.github/configs index d0ed73953..7ebb832ee 100755 --- a/.github/configs +++ b/.github/configs @@ -43,6 +43,8 @@ case "$config" in CONFIGFLAGS="--with-pam --with-Werror" ;; clang-sanitize-*) + # Put Sanitizer logs in regress dir. + SANLOGS=`pwd`/regress # - We replace chroot with chdir so that the sanitizer in the preauth # privsep process can read /proc. # - clang does not recognizes explicit_bzero so we use bzero @@ -53,14 +55,14 @@ case "$config" in clang-sanitize-address) CFLAGS="-fsanitize=address -fno-omit-frame-pointer" 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" TEST_TARGET="t-exec" ;; clang-sanitize-memory) CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins" 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" TEST_TARGET="t-exec" ;; diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c8b8dbcd6..a190a9d0b 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -109,5 +109,5 @@ jobs: config.log regress/*.log regress/valgrind-out/ - /tmp/asan.log.* - /tnp/msan.log.* + regress/asan.log.* + regress/msan.log.*