summaryrefslogtreecommitdiffstats
path: root/test/test-functions
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2024-01-04 20:31:32 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2024-01-04 20:36:25 +0100
commit91da9458f8e10cee6e3ea43a4592bbe07c08f1b1 (patch)
tree6f7f6d63f6b906a23faf3b22b86b2142a6121170 /test/test-functions
parenttest: install correct kpartx udev rules on Ubuntu (diff)
downloadsystemd-91da9458f8e10cee6e3ea43a4592bbe07c08f1b1.tar.xz
systemd-91da9458f8e10cee6e3ea43a4592bbe07c08f1b1.zip
test: allow sanitized binaries to dump a core
If a binary built with ASan crashes for a reason unrelated to ASan stuff, we're left with pretty much nothing, as there is neither an ASan trace nor a coredump. Let's make this slightly more debug-able by allowing such binaries to dump a core, but without the huge shadow map (we should be actually fine by just setting disable_coredump=0, since use_madv_dontdump defaults to true, but let's play it safe and not potentially dump a 16+ TB core file).
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions
index c543100654..016cf15682 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -995,7 +995,7 @@ create_asan_wrapper() {
[[ -z "$ASAN_RT_PATH" ]] && dfatal "ASAN_RT_PATH is empty, but it shouldn't be"
- default_asan_options="${ASAN_OPTIONS:-strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1}"
+ default_asan_options="${ASAN_OPTIONS:-strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:disable_coredump=0:use_madv_dontdump=1}"
default_ubsan_options="${UBSAN_OPTIONS:-print_stacktrace=1:print_summary=1:halt_on_error=1}"
if [[ "$ASAN_COMPILER" == "clang" ]]; then