[Bug sanitizer/115812] New: [12/13 Regression] FPE on unknown address check missing
bic60176 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jul 7 00:52:57 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115812
Bug ID: 115812
Summary: [12/13 Regression] 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 58601
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58601&action=edit
testcase
OS: Ubuntu 22.04.3 LTS
We found a case that ASAN did not report 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
1
$ 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
$ cat exec.err
testcase.c:39:40: runtime error: division by zero AddressSanitizer:DEADLYSIGNAL
=================================================================
==3586145==ERROR: AddressSanitizer: FPE on unknown address 0x0000004012a7 (pc
0x0000004012a7 bp 0x7ffe93bcae50 sp 0x7ffe93bcada0 T0) #0 0x4012a7 in main
testcase.c:39 #1 0x72eb77e29d8f in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58 #2 0x72eb77e29e3f in
__libc_start_main_impl ../csu/libc-start.c:392 #3 0x4010c4 in _start
(./exec16+0x4010c4) AddressSanitizer can not provide additional info. SUMMARY:
AddressSanitizer: FPE testcase.c:39 in main ==3586145==ABORTING
More information about the Gcc-bugs
mailing list