mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
Merge bitcoin/bitcoin#30665: test: Enable detect_leaks=1 in ASAN_OPTIONS explicitly
Some checks are pending
Some checks are pending
cccc5bfd35
test: Enable detect_leaks=1 in ASAN_OPTIONS explicitly (MarcoFalke) Pull request description: It should be enabled by default, but being explicit can't hurt. ACKs for top commit: fanquake: ACKcccc5bfd35
Tree-SHA512: ed284abd05c7a99c30b509844aa75785a5ccb506d8296a71347b4c328750a6a4ed1f87e7a3ec36ab17f27b467c033cc8ca5eb5e2b951f2ae7473327c5eb1ddae
This commit is contained in:
commit
c81c6bf65b
2 changed files with 5 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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`.
|
||||
|
|
Loading…
Reference in a new issue