public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/19585] New: internal compiler error: Segmentation fault in gen_decl_die
@ 2005-01-23 10:36 aj at gcc dot gnu dot org
  2005-01-23 10:37 ` [Bug middle-end/19585] " aj at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: aj at gcc dot gnu dot org @ 2005-01-23 10:36 UTC (permalink / raw)
  To: gcc-bugs

Compiling glibc with -m32 I get the following ICE: 
 
/opt/gcc/4.0-devel/libexec/gcc/x86_64-suse-linux-gnu/4.0.0/cc1 -fpreprocessed 
inl-tester.i -quiet -dumpbase inl-tester.c -m32 -march=i686 
-mpreferred-stack-boundary=2 
-auxbase-strip /builds/glibc/4.0-linuxthreads-32bit/string/inl-tester.o -g -O2 
-Wall -Winline -Wno-sign-compare -Wstrict-prototypes -Wwrite-strings -std=gnu99 
-version -o inl-tester.s 
GNU C version 4.0.0 20050122 (experimental) (x86_64-suse-linux-gnu) 
        compiled by GNU C version 4.0.0 20050122 (experimental). 
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 
inl-tester.i: In function ?test_stpncpy?: 
inl-tester.i:10153: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
gdb reports: 
gdb --args /opt/gcc/4.0-devel/libexec/gcc/x86_64-suse-linux-gnu/4.0.0/cc1 
-fpreprocessed inl-tester.i -quiet -dumpbase inl-tester.c -m32 -march=i686 
-mpreferred-stack-boundary=2 
-auxbase-strip /builds/glibc/4.0-linuxthreads-32bit/string/inl-tester.o -g -O2 
-Wall -Winline -Wno-sign-compare -Wstrict-prototypes -Wwrite-strings -std=gnu99 
-version -o inl-tester.s 
GNU gdb 6.2.1 
Copyright 2004 Free Software Foundation, Inc. 
GDB is free software, covered by the GNU General Public License, and you are 
welcome to change it and/or distribute copies of it under certain conditions. 
Type "show copying" to see the conditions. 
There is absolutely no warranty for GDB.  Type "show warranty" for details. 
This GDB was configured as "x86_64-suse-linux"...Using host libthread_db 
library "/lib64/tls/libthread_db.so.1". 
 
(gdb) r 
GNU C version 4.0.0 20050122 (experimental) (x86_64-suse-linux-gnu) 
        compiled by GNU C version 4.0.0 20050122 (experimental). 
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 
 
Program received signal SIGSEGV, Segmentation fault. 
decl_function_context (decl=0x0) at /cvs/gcc/gcc/tree.c:5081 
5081      if (TREE_CODE (decl) == ERROR_MARK) 
(gdb) bt 
#0  decl_function_context (decl=0x0) at /cvs/gcc/gcc/tree.c:5081 
#1  0x0000000000580c8c in gen_decl_die (decl=Variable "decl" is not available. 
) at /cvs/gcc/gcc/dwarf2out.c:10501 
#2  0x0000000000586325 in decls_for_scope (stmt=0x2a96dcf310, 
context_die=0x2a96d74640, depth=2) at /cvs/gcc/gcc/dwarf2out.c:12403 
#3  0x0000000000586630 in gen_lexical_block_die (stmt=0x2a96dcf310, 
context_die=0x0, depth=2) at /cvs/gcc/gcc/dwarf2out.c:11646 
#4  0x0000000000585f25 in gen_block_die (stmt=0x2a96dcf310, 
context_die=0x2a96d74410, depth=2) at /cvs/gcc/gcc/dwarf2out.c:12364 
#5  0x00000000005863bd in decls_for_scope (stmt=Variable "stmt" is not 
available. 
) at /cvs/gcc/gcc/dwarf2out.c:12416 
#6  0x00000000005860d5 in gen_block_die (stmt=0x2a96dcf230, 
context_die=0x2a96d74370, depth=1) at /cvs/gcc/gcc/dwarf2out.c:11675 
#7  0x00000000005863bd in decls_for_scope (stmt=Variable "stmt" is not 
available. 
) at /cvs/gcc/gcc/dwarf2out.c:12416 
#8  0x000000000058456b in gen_subprogram_die (decl=0x2a96209dd0, 
context_die=Variable "context_die" is not available. 
) at /cvs/gcc/gcc/dwarf2out.c:11474 
#9  0x0000000000907c60 in rest_of_compilation () at /cvs/gcc/gcc/passes.c:330 
#10 0x000000000047c5ef in execute_pass_list (pass=0xccc240) 
at /cvs/gcc/gcc/tree-optimize.c:527 
#11 0x000000000047c919 in tree_rest_of_compilation (fndecl=0x2a96209dd0) 
at /cvs/gcc/gcc/tree-optimize.c:663 
#12 0x0000000000419dab in c_expand_body (fndecl=0x2a96209dd0) 
at /cvs/gcc/gcc/c-decl.c:6424 
#13 0x000000000093c460 in cgraph_expand_function (node=0x2a9615c000) 
at /cvs/gcc/gcc/cgraphunit.c:822 
#14 0x000000000093dab1 in cgraph_optimize () at /cvs/gcc/gcc/cgraphunit.c:1689 
#15 0x00000000008de5b5 in toplev_main (argc=Variable "argc" is not available. 
) at /cvs/gcc/gcc/toplev.c:1009 
#16 0x0000002a9568900d in __libc_start_main () from /lib64/tls/libc.so.6 
#17 0x00000000004025aa in _start () at start.S:113 
#18 0x0000007fbfffead8 in ?? ()

-- 
           Summary: internal compiler error: Segmentation fault in
                    gen_decl_die
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aj at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-linux-gnu
  GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19585


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/19585] internal compiler error: Segmentation fault in gen_decl_die
  2005-01-23 10:36 [Bug middle-end/19585] New: internal compiler error: Segmentation fault in gen_decl_die aj at gcc dot gnu dot org
@ 2005-01-23 10:37 ` aj at gcc dot gnu dot org
  2005-01-23 14:42 ` mueller at kde dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: aj at gcc dot gnu dot org @ 2005-01-23 10:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From aj at gcc dot gnu dot org  2005-01-23 10:37 -------
Created an attachment (id=8043)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8043&action=view)
Preprocessed source file


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19585


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/19585] internal compiler error: Segmentation fault in gen_decl_die
  2005-01-23 10:36 [Bug middle-end/19585] New: internal compiler error: Segmentation fault in gen_decl_die aj at gcc dot gnu dot org
  2005-01-23 10:37 ` [Bug middle-end/19585] " aj at gcc dot gnu dot org
@ 2005-01-23 14:42 ` mueller at kde dot org
  2005-01-23 15:51 ` [Bug debug/19585] " pinskia at gcc dot gnu dot org
  2005-01-23 16:02 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: mueller at kde dot org @ 2005-01-23 14:42 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mueller at kde dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19585


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debug/19585] internal compiler error: Segmentation fault in gen_decl_die
  2005-01-23 10:36 [Bug middle-end/19585] New: internal compiler error: Segmentation fault in gen_decl_die aj at gcc dot gnu dot org
  2005-01-23 10:37 ` [Bug middle-end/19585] " aj at gcc dot gnu dot org
  2005-01-23 14:42 ` mueller at kde dot org
@ 2005-01-23 15:51 ` pinskia at gcc dot gnu dot org
  2005-01-23 16:02 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 15:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |debug
           Keywords|                            |ice-on-valid-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19585


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debug/19585] internal compiler error: Segmentation fault in gen_decl_die
  2005-01-23 10:36 [Bug middle-end/19585] New: internal compiler error: Segmentation fault in gen_decl_die aj at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-01-23 15:51 ` [Bug debug/19585] " pinskia at gcc dot gnu dot org
@ 2005-01-23 16:02 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 16:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-23 16:02 -------
Reduces down to the testcase in PR 19345.

*** This bug has been marked as a duplicate of 19345 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19585


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-23 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-23 10:36 [Bug middle-end/19585] New: internal compiler error: Segmentation fault in gen_decl_die aj at gcc dot gnu dot org
2005-01-23 10:37 ` [Bug middle-end/19585] " aj at gcc dot gnu dot org
2005-01-23 14:42 ` mueller at kde dot org
2005-01-23 15:51 ` [Bug debug/19585] " pinskia at gcc dot gnu dot org
2005-01-23 16:02 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).