From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8037 invoked by alias); 29 Aug 2014 08:31:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7989 invoked by uid 48); 29 Aug 2014 08:31:03 -0000 From: "smf.linux at ntlworld dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/62303] New: g++ 4.9.1 lto1: internal compiler error: Segmentation fault Date: Fri, 29 Aug 2014 08:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: smf.linux at ntlworld dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg01946.txt.bz2 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