https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115760
Bug ID: 115760 Summary: FPE on unknown address check missing Product: gcc Version: 13.2.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 58573 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58573&action=edit testcase OS: Ubuntu 22.04.3 LTS We found that ASAN failed to catch FPE errors when compiling with gcc-12.3.0, gcc-13.2.0. $ ../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 0 $ cat exec.err $ ../compiler-builds/gcc-11.4.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:4:29: runtime error: division by zero AddressSanitizer:DEADLYSIGNAL ================================================================= ==1406571==ERROR: AddressSanitizer: FPE on unknown address 0x0000004011b5 (pc 0x0000004011b5 bp 0x7ffe40121300 sp 0x7ffe401212e0 T0) #0 0x4011b5 in main testcase.c:4 #1 0x75fcf2e29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #2 0x75fcf2e29e3f in __libc_start_main_impl ../csu/libc-start.c:392 #3 0x4010b4 in _start (./exec1+0x4010b4) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: FPE testcase.c:4 in main ==1406571==ABORTING