This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/65705] ICE: SIGSEGV in contains_struct_check with -fsanitize=null -fcheck-pointer-bounds


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65705

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> ---
Another testcase fails with -fsanitize=signed-integer-overflow :

$ cat flags-min 
-fsanitize=signed-integer-overflow
-fcheck-pointer-bounds
-mmpx

$ /mnt/svn/gcc-trunk/binary-latest/bin/gcc @flags-min testcase-min0.i
testcase-min0.i:5:1: internal compiler error: Segmentation fault
 extern __inline int __sigismember (const __sigset_t *__set, int __sig) {
unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 *
sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 *
sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; }
 ^
0xc4fc3f crash_signal
        /mnt/svn/gcc-trunk/gcc/toplev.c:383
0xcfa9d1 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
        /mnt/svn/gcc-trunk/gcc/tree.h:2959
0xcfa9d1 chkp_walk_pointer_assignments
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3594
0xcfc8d7 chkp_finish_file()
        /mnt/svn/gcc-trunk/gcc/tree-chkp.c:3704
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


The set of -fsanitize= flags incompatible with -fcheck-pointer-bounds might be
much larger.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]