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 ipa/65557] New: ICE: SIGSEGV in hash_table<>::find_slot_with_hash() with -fdevirtualize -fipa-cp -fipa-icf-functions


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

            Bug ID: 65557
           Summary: ICE: SIGSEGV in hash_table<>::find_slot_with_hash()
                    with -fdevirtualize -fipa-cp -fipa-icf-functions
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

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

Compiler output:
$ gcc -fdevirtualize -fipa-cp -fipa-icf-functions testcase.C 
testcase.C:16:6: internal compiler error: Segmentation fault
 S1 s1;
      ^
0xe0a5cf crash_signal
        /mnt/svn/gcc-trunk/gcc/toplev.c:383
0xc123e2 hash_table<hash_map<int, ipa_node_params*,
function_summary<ipa_node_params*>::summary_hashmap_traits>::hash_entry,
xcallocator, true>::find_slot_with_hash(int const&, unsigned int,
insert_option)
        /mnt/svn/gcc-trunk/gcc/hash-table.h:1542
0xc12591 hash_map<int, ipa_node_params*,
function_summary<ipa_node_params*>::summary_hashmap_traits>::get_or_insert(int
const&, bool*)
        /mnt/svn/gcc-trunk/gcc/hash-map.h:232
0xc12591 function_summary<ipa_node_params*>::get(int)
        /mnt/svn/gcc-trunk/gcc/symbol-summary.h:230
0x18605de function_summary<ipa_node_params*>::get(cgraph_node*)
        /mnt/svn/gcc-trunk/gcc/symbol-summary.h:112
0x18605de ipa_icf::sem_function::equals_wpa(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*, default_hashmap_traits>&)
        /mnt/svn/gcc-trunk/gcc/ipa-icf.c:518
0x18581ca ipa_icf::sem_item_optimizer::subdivide_classes_by_equality(bool)
        /mnt/svn/gcc-trunk/gcc/ipa-icf.c:2518
0x185fb7a ipa_icf::sem_item_optimizer::execute()
        /mnt/svn/gcc-trunk/gcc/ipa-icf.c:2296
0x18624a6 ipa_icf_driver
        /mnt/svn/gcc-trunk/gcc/ipa-icf.c:3172
0x18624a6 ipa_icf::pass_ipa_icf::execute(function*)
        /mnt/svn/gcc-trunk/gcc/ipa-icf.c:3219
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:
r221607 - ICE


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