Skip to content

Commit 07c3bf2

Browse files
jeplerdpgeorge
authored andcommitted
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 <[email protected]>
1 parent 9a5cf0e commit 07c3bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,8 @@ CI_UNIX_OPTS_QEMU_RISCV64=(
514514

515515
CI_UNIX_OPTS_SANITIZE_ADDRESS=(
516516
VARIANT=coverage
517-
CFLAGS_EXTRA="-fsanitize=address"
518-
LDFLAGS_EXTRA="-fsanitize=address"
517+
CFLAGS_EXTRA="-fsanitize=address --param asan-use-after-return=0"
518+
LDFLAGS_EXTRA="-fsanitize=address --param asan-use-after-return=0"
519519
)
520520

521521
CI_UNIX_OPTS_SANITIZE_UNDEFINED=(

0 commit comments

Comments
 (0)