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

            Bug ID: 65705
           Summary: ICE: SIGSEGV in contains_struct_check with
                    -fsanitize=null -fcheck-pointer-bounds
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 35264
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35264&action=edit
reduced testcase

Crashes even after PR65044 fix.

Compiler output:
$ gcc -fsanitize=null -fcheck-pointer-bounds -mmpx testcase.c 
testcase.c:5:1: internal compiler error: Segmentation fault
 }
 ^
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.

Tested revisions:
r221818 - ICE

Reply via email to