https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115762
Bug ID: 115762
Summary: [14 Regression] ASAN FPE on unknown address check
missing
Product: gcc
Version: 14.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: bic60176 at gmail dot com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
Created attachment 58575
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58575&action=edit
testcase
OS: Ubuntu 22.04.3 LTS
We found that ASAN failed to catch FPE errors when compiling with gcc-14.1.0.
$ ../compiler-builds/gcc-14.1.0_build/bin/gcc -fsanitize=undefined
-fsanitize=address -g -lgcc_s -I/home/csmith/include/csmith-2.3.0 -O0
testcase.c -o exec
$ timeout 1s ./exec 2>exec.err
1
$ cat exec.err
testcase.c:13:15: runtime error: division by zero
$ ../compiler-builds/gcc-13.2.0_build/bin/gcc -fsanitize=undefined
-fsanitize=address -g -lgcc_s -I/home/csmith/include/csmith-2.3.0 -O0
testcase.c -o exec
$ timeout 1s ./exec 2>exec.err
$ cat exec.err
testcase.c:13:15: runtime error: division by zero AddressSanitizer:DEADLYSIGNAL
=================================================================
==1645165==ERROR: AddressSanitizer: FPE on unknown address 0x000000401205 (pc
0x000000401205 bp 0x7fff6aa63d70 sp 0x7fff6aa63d50 T0) #0 0x401205 in c
testcase.c:13 #1 0x401232 in main testcase.c:16 #2 0x739e5ce29d8f in
__libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #3
0x739e5ce29e3f in __libc_start_main_impl ../csu/libc-start.c:392 #4 0x4010b4 in
_start (./exec6+0x4010b4) AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE testcase.c:13 in c ==1645165==ABORTING