diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-08-16 15:32:43 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-08-16 15:31:54 +0200 |
commit | cccc5bfd35a008adf08d99ed463fe00d6a6f29c0 (patch) | |
tree | bc0ac6f002c670e9c79df74d8f0707f2d303af9b | |
parent | 1a41e63575986887ae34993b4433ec711ae0ffbc (diff) |
test: Enable detect_leaks=1 in ASAN_OPTIONS explicitly
-rwxr-xr-x | ci/test/03_test_script.sh | 2 | ||||
-rwxr-xr-x | test/fuzz/test_runner.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ci/test/03_test_script.sh b/ci/test/03_test_script.sh index 71d9ad7f72..1d7a9d76db 100755 --- a/ci/test/03_test_script.sh +++ b/ci/test/03_test_script.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 set -ex -export ASAN_OPTIONS="detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1" +export ASAN_OPTIONS="detect_leaks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1" export LSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/lsan" export TSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/tsan:halt_on_error=1" export UBSAN_OPTIONS="suppressions=${BASE_ROOT_DIR}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1" diff --git a/test/fuzz/test_runner.py b/test/fuzz/test_runner.py index c74246ef45..9917eca75a 100755 --- a/test/fuzz/test_runner.py +++ b/test/fuzz/test_runner.py @@ -23,10 +23,10 @@ def get_fuzz_env(*, target, source_dir): 'FUZZ': target, 'UBSAN_OPTIONS': f'suppressions={source_dir}/test/sanitizer_suppressions/ubsan:print_stacktrace=1:halt_on_error=1:report_error_type=1', - 'UBSAN_SYMBOLIZER_PATH':symbolizer, - "ASAN_OPTIONS": "detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1", - 'ASAN_SYMBOLIZER_PATH':symbolizer, - 'MSAN_SYMBOLIZER_PATH':symbolizer, + 'UBSAN_SYMBOLIZER_PATH': symbolizer, + "ASAN_OPTIONS": "detect_leaks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1", + 'ASAN_SYMBOLIZER_PATH': symbolizer, + 'MSAN_SYMBOLIZER_PATH': symbolizer, } if platform.system() == "Windows": # On Windows, `env` option must include valid `SystemRoot`. |