From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4565 invoked by alias); 15 Oct 2013 06:55:55 -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 4514 invoked by uid 48); 15 Oct 2013 06:55:50 -0000 From: "markus at trippelsdorf dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/58733] New: [4.9 Regression] ICE in operator[], at vec.h:827 Date: Tue, 15 Oct 2013 06:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus at trippelsdorf dot de 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 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: 2013-10/txt/msg00856.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58733 Bug ID: 58733 Summary: [4.9 Regression] ICE in operator[], at vec.h:827 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: markus at trippelsdorf dot de testsuite/g++.dg/lto/20090302 ICE's on my machine: markus@x4 lto % g++ -fPIC -flto -flto-partition=1to1 -r -nostdlib 20090302_0.C 20090302_1.C lto1: internal compiler error: in operator[], at vec.h:827 0x524457 vec::operator[](unsigned int) ../../gcc/gcc/vec.h:827 0x524d5c vec::operator[](unsigned int) ../../gcc/gcc/lto/lto-partition.c:234 0x524d5c inline_summary ../../gcc/gcc/ipa-inline.h:242 0x524d5c add_symbol_to_partition_1 ../../gcc/gcc/lto/lto-partition.c:206 0x524c0a add_symbol_to_partition_1 ../../gcc/gcc/lto/lto-partition.c:226 0x524f7b lto_1_to_1_map() ../../gcc/gcc/lto/lto-partition.c:357 0x521670 do_whole_program_analysis ../../gcc/gcc/lto/lto.c:3078 0x521670 lto_main() ../../gcc/gcc/lto/lto.c:3222 Valgrind shows: ==13659== Invalid read of size 4 ==13659== at 0x509679: add_symbol_to_partition_1(ltrans_partition_def*, symtab_node_def*) (lto-partition.c:206) ==13659== by 0x5095EA: add_symbol_to_partition_1(ltrans_partition_def*, symtab_node_def*) (lto-partition.c:226) ==13659== by 0x5098CF: lto_1_to_1_map() (lto-partition.c:357) ==13659== by 0x506C41: lto_main() (lto.c:3078) ==13659== by 0x7B2545: compile_file() (toplev.c:546) ==13659== by 0x7B40C9: toplev_main(int, char**) (toplev.c:1893) ==13659== by 0x4ED5A6D: (below main) (in /lib64/libc-2.18.90.so) ==13659== Address 0x57a0ff0 is not stack'd, malloc'd or (recently) free'd ==13659==