From 0cab076b86a5dfdd380a772e1c2b7392eb91f354 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 15 Mar 2024 21:06:21 -0400 Subject: [PATCH] CI: Reenable address sanitizer and fix core dumps (#4983) --- ci/ci-install.bash | 2 ++ ci/ci-script.bash | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/ci-install.bash b/ci/ci-install.bash index 07a6141b3..92be51a80 100755 --- a/ci/ci-install.bash +++ b/ci/ci-install.bash @@ -120,6 +120,8 @@ elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then fi yes yes | sudo cpan -M $CI_CPAN_REPO -fi Parallel::Forker install-vcddiff + # Workaround -fsanitize=address crash + sudo sysctl -w vm.mmap_rnd_bits=28 else ############################################################################## # Unknown build stage diff --git a/ci/ci-script.bash b/ci/ci-script.bash index ba08f531d..17e707078 100755 --- a/ci/ci-script.bash +++ b/ci/ci-script.bash @@ -85,8 +85,7 @@ elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then fi # Run sanitize on Ubuntu 22.04 only - #[ "$CI_RUNS_ON" = 'ubuntu-22.04' ] && sanitize='--sanitize' || sanitize='' - sanitize='' + [ "$CI_RUNS_ON" = 'ubuntu-22.04' ] && sanitize='--sanitize' || sanitize='' TEST_REGRESS=test_regress if [ "$CI_RELOC" == 1 ]; then