Command line: g++ -fwhopr -fcompare-debug testcase.cpp Tested revisions: r156745 - crash r154886 - crash
Output: $ /mnt/svn/gcc-trunk/binary-156745-lto/bin/g++ -fwhopr -fcompare-debug testcase.cpp In file included from :1:0: testcase.cpp: In function 'main': testcase.cpp:5:5: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. g++: during -fcompare-debug recompilation g++: /tmp/cchnAJao.wpa.o: -fcompare-debug failure (length) lto1: fatal error: /mnt/svn/gcc-trunk/binary-156745-lto/bin/g++ terminated with status 256 compilation terminated. lto-wrapper: /mnt/svn/gcc-trunk/binary-156745-lto/bin/g++ returned 1 exit status collect2: lto-wrapper returned 1 exit status Valgrind: several times, probably not related: ==23604== Conditional jump or move depends on uninitialised value(s) ==23604== at 0xDEA6E5: longest_match (deflate.c:1143) ==23604== by 0xDEACAA: deflate_slow (deflate.c:1595) ==23604== by 0xDEBC54: deflate (deflate.c:790) ==23604== by 0xD6759C: lto_end_compression (lto-compress.c:196) ==23604== by 0xD64644: lto_end_section (lto-section-out.c:192) ==23604== by 0xD64B3D: lto_destroy_simple_output_block (lto-section-out.c:556) ==23604== by 0xD63323: lto_output (lto-streamer-out.c:2112) ==23604== by 0x84F3A0: ipa_write_summaries_2 (passes.c:1645) ==23604== by 0x84F49E: ipa_write_summaries_1 (passes.c:1671) ==23604== by 0x851EDA: ipa_write_summaries (passes.c:1720) ==23604== by 0xACBF25: cgraph_optimize (cgraphunit.c:1790) ==23604== by 0xACC194: cgraph_finalize_compilation_unit (cgraphunit.c:1093) crash is at: ==24096== Invalid read of size 2 ==24096== at 0x54E732: gen_type_die_with_usage (dwarf2out.c:7687) ==24096== by 0x552708: gen_decl_die (dwarf2out.c:19553) ==24096== by 0x54AACF: decls_for_scope (dwarf2out.c:19188) ==24096== by 0x557B68: gen_block_die (dwarf2out.c:18436) ==24096== by 0x54AB3D: decls_for_scope (dwarf2out.c:19202) ==24096== by 0x54AF8B: gen_subprogram_die (dwarf2out.c:18045) ==24096== by 0x5527CC: gen_decl_die (dwarf2out.c:19507) ==24096== by 0x599CEC: rest_of_handle_final (final.c:4287) ==24096== by 0x6B395A: execute_one_pass (passes.c:1561) ==24096== by 0x6B3BE4: execute_pass_list (passes.c:1616) ==24096== by 0x6B3BF6: execute_pass_list (passes.c:1617) ==24096== by 0x6B3BF6: execute_pass_list (passes.c:1617) ==24096== Address 0x0 is not stack'd, malloc'd or (recently) free'd -- Summary: ICE: SIGSEGV with -fwhopr -fcompare-debug Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43071