https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91027
Bug ID: 91027 Summary: [10 regression] SEGV in hash_table<odr_name_hasher, false, xcallocator>::find_slot_with_hash Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Target: i386-pc-solaris2.11, sparc-sun-solaris2.11, arm-unknown-linux-gnueabihf, i686-pc-linux-gnu, x86_64-pc-linux-gnu Between 20190626 (r272695) and 20190627 (r272755), a D LTO test regressed on a couple of targets: +FAIL: gdc.dg/lto/ltotests d_lto_ltotests_0.o-d_lto_ltotests_1.o link, -O0 -flto (internal compiler error) +FAIL: gdc.dg/lto/ltotests d_lto_ltotests_0.o-d_lto_ltotests_1.o link, -O0 -flto -flto-partition=1to1 (internal compiler error) +FAIL: gdc.dg/lto/ltotests d_lto_ltotests_0.o-d_lto_ltotests_1.o link, -O0 -flto -flto-partition=none (internal compiler error) +FAIL: gdc.dg/lto/ltotests d_lto_ltotests_0.o-d_lto_ltotests_1.o link, -O2 -flto (internal compiler error) +FAIL: gdc.dg/lto/ltotests d_lto_ltotests_0.o-d_lto_ltotests_1.o link, -O2 -flto -flto-partition=1to1 (internal compiler error) +FAIL: gdc.dg/lto/ltotests d_lto_ltotests_0.o-d_lto_ltotests_1.o link, -O2 -flto -flto-partition=none (internal compiler error) I'm seeing it on 32 and 64-bit Solaris/SPARC and x86 alike, with Linux/i686 and Linux/x86_64 reports as well. lto1: internal compiler error: Segmentation Fault 0x8f1783c crash_signal /vol/gcc/src/hg/trunk/local/gcc/toplev.c:326 0x8ccfa03 hash_table<odr_name_hasher, false, xcallocator>::find_slot_with_hash(tree_node* const&, unsigned int, insert_option) /vol/gcc/src/hg/trunk/local/gcc/hash-table.h:949 0x8cbf446 get_odr_type(tree_node*, bool) /vol/gcc/src/hg/trunk/local/gcc/ipa-devirt.c:1911 0x8cc40bf odr_type_violation_reported_p(tree_node*) /vol/gcc/src/hg/trunk/local/gcc/ipa-devirt.c:2042 0x89c7440 gimple_register_canonical_type_1 /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:419 0x89c842f gimple_register_canonical_type /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:521 0x89c842f gimple_register_canonical_type /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:509 0x89c9649 lto_read_decls /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:1874 0x89cae0e lto_file_finalize /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:2191 0x89cae0e lto_create_files_from_ids /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:2201 0x89cae0e lto_file_read /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:2255 0x89cae0e read_cgraph_and_symbols(unsigned int, char const**) /vol/gcc/src/hg/trunk/local/gcc/lto/lto-common.c:2707 0x89b0ac5 lto_main() /vol/gcc/src/hg/trunk/local/gcc/lto/lto.c:616