From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28807 invoked by alias); 15 Apr 2012 22:15:20 -0000 Received: (qmail 28789 invoked by uid 22791); 15 Apr 2012 22:15:19 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW,TW_BJ X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Apr 2012 22:15:06 +0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/52999] New: [4.7, 4.8 Regression] ICE, segmentation fault in c_tree_printer Date: Sun, 15 Apr 2012 22:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2012-04/txt/msg01215.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52999 Bug #: 52999 Summary: [4.7, 4.8 Regression] ICE, segmentation fault in c_tree_printer Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned@gcc.gnu.org ReportedBy: danglin@gcc.gnu.org Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu Created attachment 27162 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D27162 Compressed rtld.i file (gdb) r Starting program: /home/dave/gnu/gcc/objdir/gcc/cc1 -fpreprocessed rtld.i -quiet -dumpbase rtld.i -auxbase rtld -O2 -Wall -Winline -Wwrite-strings -Wstrict-prototypes -std=3Dgnu99 -version -fgnu89-inline -fmerge-all-consta= nts -fno-stack-protector -fPIC -o xx.s GNU C (GCC) version 4.8.0 20120412 (experimental) [trunk revision 186378] (hppa-linux-gnu) compiled by GNU C version 4.8.0 20120412 (experimental) [trunk revision 186378], GMP version 5.0.4, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 GNU C (GCC) version 4.8.0 20120412 (experimental) [trunk revision 186378] (hppa-linux-gnu) compiled by GNU C version 4.8.0 20120412 (experimental) [trunk revision 186378], GMP version 5.0.4, MPFR version 3.1.0-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 Compiler executable checksum: d431a91d532955514383649751f02954 rtld.c: In function =E2=80=98dl_main=E2=80=99: rtld.c:937:3: warning: implicit declaration of function =E2=80=98__canonicalize_funcptr_for_compare=E2=80=99 [-Wimplicit-function-d= eclaration] Program received signal SIGSEGV, Segmentation fault. c_tree_printer (hash=3Dfalse, set_locus=3Dfalse, spec=3D0xa919b0 "D",=20 text=3D0xfdf02608, pp=3D0xab7228, precision=3D,=20 wide=3D) at ../../gcc/gcc/c-objc-common.c:116 116 if (DECL_DEBUG_EXPR_IS_FROM (t) && DECL_DEBUG_EXPR (t)) (gdb) bt #0 c_tree_printer (hash=3Dfalse, set_locus=3Dfalse, spec=3D0xa919b0 "D",=20 text=3D0xfdf02608, pp=3D0xab7228, precision=3D,=20 wide=3D) at ../../gcc/gcc/c-objc-common.c:116 #1 c_tree_printer (pp=3D0xab7228, text=3D0xfdf02608, spec=3D0xa919b0 "D",= =20 precision=3D0, wide=3Dfalse, set_locus=3Dfalse, hash=3Dfalse) at ../../gcc/gcc/c-objc-common.c:89 #2 0x0089b42c in pp_base_format (pp=3D0xab7228, text=3D0xfdf02608) at ../../gcc/gcc/pretty-print.c:509 #3 0x00899730 in diagnostic_report_diagnostic (context=3D0xa917b4,=20 diagnostic=3D0xfdf02708) at ../../gcc/gcc/diagnostic.c:644 #4 0x00899ba0 in error (gmsgid=3D) at ../../gcc/gcc/diagnostic.c:857 #5 0x0075b994 in get_section (name=3D0xa919b0 "D", flags=3D= ,=20 decl=3D) at ../../gcc/gcc/varasm.c:318 #6 0x0076fbf4 in varpool_assemble_pending_decls () at ../../gcc/gcc/varpool.c:653 #7 varpool_assemble_pending_decls () at ../../gcc/gcc/varpool.c:638 #8 0x001e6464 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:2637 #9 0x001e6b20 in cgraph_finalize_compilation_unit () at ../../gcc/gcc/cgraphunit.c:2720 #10 0x000be150 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:10053 #11 0x0050fdec in compile_file () at ../../gcc/gcc/toplev.c:572 (gdb) p t $1 =3D (tree) 0x0 4.6 successfully generates section conflict error message.