Hi,

On Ubuntu 24.04, the unit test that was added in commit
d0a51c614def6cf4f39fafe8ca7dcef925c4a503 fails when clang with ASAN and UBSAN
is used: The file timeout.status is expected to contain the number 125,
but it contains the number 124.

How to reproduce:

1. Set the environment variables

CC="$CLANG_INST_DIR/bin/clang -Wl,-rpath,$CLANG_INST_DIR/lib"

CC="$CC 
-fsanitize=address,undefined,signed-integer-overflow,shift,integer-divide-by-zero
 -fno-sanitize-recover=undefined"; export CC
CFLAGS="-O0 -fno-omit-frame-pointer -ggdb"; export CFLAGS

ASAN_OPTIONS="detect_leaks=0 abort_on_error=1 allocator_may_return_null=1"
export ASAN_OPTIONS

2. Configure and build coreutils.

3.
$ cd src
$ { ./timeout -v .1 sleep 10 2>&1; echo $? >timeout.status; } | :
$ cat timeout.status
124

Bruno




Reply via email to