From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1328 invoked by alias); 15 Oct 2014 17:18: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 1293 invoked by uid 48); 15 Oct 2014 17:18:51 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/62026] [5 Regression] Crash in lto_get_decl_name_mapping Date: Wed, 15 Oct 2014 17:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: ice-on-valid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-10/txt/msg01180.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62026 --- Comment #19 from Markus Trippelsdorf --- Program received signal SIGSEGV, Segmentation fault. lto_get_decl_name_mapping (decl_data=0x0, name=0x3fffaf6d4580 "_ZZ3fn1vE1b") at ../../gcc/gcc/lto-section-in.c:340 340 ../../gcc/gcc/lto-section-in.c: No such file or directory. (gdb) bt #0 lto_get_decl_name_mapping (decl_data=0x0, name=0x3fffaf6d4580 "_ZZ3fn1vE1b") at ../../gcc/gcc/lto-section-in.c:340 #1 0x000000001098f448 in get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:280 #2 varpool_node::get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:264 #3 0x0000000010981c50 in get_variable_section (decl=0x3fffaf7003f0, prefer_noswitch_p=) at ../../gcc/gcc/varasm.c:1121 #4 0x0000000010983ae4 in get_block_for_decl (decl=decl@entry=0x3fffaf7003f0) at ../../gcc/gcc/varasm.c:1194 #5 0x000000001098663c in make_decl_rtl (decl=0x3fffaf7003f0) at ../../gcc/gcc/varasm.c:1419 #6 0x0000000010989f44 in make_decl_rtl_for_debug (decl=0x3fffaf7003f0) at ../../gcc/gcc/varasm.c:1467 #7 0x00000000102523f8 in rtl_for_decl_location (decl=decl@entry=0x3fffaf7003f0) at ../../gcc/gcc/dwarf2out.c:15760 #8 0x00000000102871e8 in loc_list_from_tree (loc=loc@entry=0x3fffaf7003f0, want_address=) at ../../gcc/gcc/dwarf2out.c:14391 #9 0x000000001028dc14 in add_location_or_const_value_attribute (attr=DW_AT_location, cache_p=, decl=0x3fffaf7003f0, die=0x3fffaf880230) at ../../gcc/gcc/dwarf2out.c:15892 #10 add_location_or_const_value_attribute (die=0x3fffaf880230, decl=0x3fffaf7003f0, cache_p=cache_p@entry=false, attr=DW_AT_location) at ../../gcc/gcc/dwarf2out.c:15836 #11 0x0000000010297708 in dwarf2out_finish (filename=0x112f2440 "/home/trippels/tmp/ccZV1IhN.ltrans0.o") at ../../gcc/gcc/dwarf2out.c:24243 #12 0x000000001063dd80 in compile_file () at ../../gcc/gcc/toplev.c:602 #13 0x0000000010640844 in do_compile () at ../../gcc/gcc/toplev.c:1973 #14 toplev_main (argc=22, argv=0x112f2860) at ../../gcc/gcc/toplev.c:2049 #15 0x0000000010101730 in main (argc=, argv=) at ../../gcc/gcc/main.c:36 (gdb) up #1 0x000000001098f448 in get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:280 280 ../../gcc/gcc/varpool.c: No such file or directory. (gdb) up #2 varpool_node::get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:264 264 in ../../gcc/gcc/varpool.c (gdb) up #3 0x0000000010981c50 in get_variable_section (decl=0x3fffaf7003f0, prefer_noswitch_p=) at ../../gcc/gcc/varasm.c:1121 1121 ../../gcc/gcc/varasm.c: No such file or directory. (gdb) p debug_tree(decl) unit size align 32 symtab 16383 alias set -1 canonical type 0x3fffaf6b07e0 precision 32 min max pointer_to_this > static SI file timezone.ii line 9 col 14 size unit size align 32 context initial > $1 = void