http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46138
Summary: ICE: SIGSEGV in htab_hash_string (hashtab.c:847) with -g -fenable-icf-debug for almost any fortran program Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz ---- testcase.f90 ---- PROGRAM main CONTAINS END PROGRAM main ---------------------- Compiler output: $ gcc -g -fenable-icf-debug testcase.f90 testcase.f90:1:0: 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. Related valgrind output: ==18307== Invalid read of size 1 ==18307== at 0x10A1D90: htab_hash_string (hashtab.c:847) ==18307== by 0x6487CE: lookup_filename (dwarf2out.c:21226) ==18307== by 0x659BD3: add_src_coords_attributes (dwarf2out.c:17594) ==18307== by 0x65B36A: add_name_and_src_coords_attributes (dwarf2out.c:17640) ==18307== by 0x670FA5: gen_subprogram_die (dwarf2out.c:18838) ==18307== by 0x665F88: force_decl_die (dwarf2out.c:20493) ==18307== by 0x66605F: dwarf2out_direct_call (dwarf2out.c:21355) ==18307== by 0x6CD8CC: final_scan_insn (final.c:2685) ==18307== by 0x6CDA9D: final (final.c:1719) ==18307== by 0x6CDED8: rest_of_handle_final (final.c:4231) ==18307== by 0x7F2B7E: execute_one_pass (passes.c:1560) ==18307== by 0x7F2E14: execute_pass_list (passes.c:1615) ==18307== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==18307== testcase.f90:1:0: 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. Tested revisions: r165822 - crash r158095 - crash 4.5 r165781 - crash