tools/ci.sh: Disable "stack use after return" in ASan build.

This check, runtime-enabled by default in gcc 13 (and existing at least
since gcc 12, but runtime-disabled) changes the stack layout in ways that
are not compatible with assumptions spread across the core code (nlr, gc,
and stack checking).

Signed-off-by: Jeff Epler <jepler@gmail.com>
This commit is contained in:
Jeff Epler
2025-06-16 17:04:16 +02:00
committed by Damien George
parent 9a5cf0e3db
commit 07c3bf21f2

View File

@@ -514,8 +514,8 @@ CI_UNIX_OPTS_QEMU_RISCV64=(
CI_UNIX_OPTS_SANITIZE_ADDRESS=(
VARIANT=coverage
CFLAGS_EXTRA="-fsanitize=address"
LDFLAGS_EXTRA="-fsanitize=address"
CFLAGS_EXTRA="-fsanitize=address --param asan-use-after-return=0"
LDFLAGS_EXTRA="-fsanitize=address --param asan-use-after-return=0"
)
CI_UNIX_OPTS_SANITIZE_UNDEFINED=(