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

            Bug ID: 62303
           Summary: g++ 4.9.1 lto1: internal compiler error: Segmentation
                    fault
           Product: gcc
           Version: lto
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: smf.linux at ntlworld dot com

Created attachment 33415
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33415&action=edit
Full details of failure with -wrapper valgind

While build Qt 4.8.6 as a lto build I found the following when building
libQtCLucene.so the rest of the build is ok. If the I swap the optimization
from O3 to O2 the problem goes away. The gcc version is 4.9.1, the binutils is
2.24 built using the instructions from LFS. I have also tried the latest gcc
from git and that behaves the same:

lto1: internal compiler error: Segmentation fault
0x840f5da crash_signal
    ../../gcc-4.9.1/gcc/toplev.c:337
0x8342b70 lto_get_decl_name_mapping(lto_file_decl_data*, char const*)
    ../../gcc-4.9.1/gcc/lto-section-in.c:346
0x8340b59 copy_function
    ../../gcc-4.9.1/gcc/lto-streamer-out.c:1989
0x8340b59 lto_output()
    ../../gcc-4.9.1/gcc/lto-streamer-out.c:2083
0x8373250 write_lto
    ../../gcc-4.9.1/gcc/passes.c:2298
0x8375ffa ipa_write_optimization_summaries(lto_symtab_encoder_d*)
    ../../gcc-4.9.1/gcc/passes.c:2495
0x813cb48 do_stream_out
    ../../gcc-4.9.1/gcc/lto/lto.c:2464
0x8140b00 stream_out
    ../../gcc-4.9.1/gcc/lto/lto.c:2506
0x8140b00 lto_wpa_write_files
    ../../gcc-4.9.1/gcc/lto/lto.c:2643
0x8140b00 do_whole_program_analysis
    ../../gcc-4.9.1/gcc/lto/lto.c:3302
0x8140b00 lto_main()
    ../../gcc-4.9.1/gcc/lto/lto.c:3422

Reply via email to