This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Small testcase demonstrating template-free memory explosion problem.


> You're debugging the wrong program :-)  cc1plus is running out of memory, not
> the g++ driver :-)

Ah, fabulous.  OK, thanks.  Here is the new log:


% gdb /scratch/kosak/loco/lib/gcc-lib/alphaev56-dec-osf4.0c/egcs-2.91.03/cc1plus
GDB is free software and you are welcome to 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.
GDB 4.16 (alpha-dec-osf4.0), Copyright 1996 Free Software Foundation, Inc...
(gdb) break fatal
Breakpoint 1 at 0x1200c3ec8: file toplev.c, line 1576.
(gdb) r -O2 big.ii
Starting program: /scratch/kosak/loco/lib/gcc-lib/alphaev56-dec-osf4.0c/egcs-2.91.03/cc1plus -O2 big.ii
 class4_t::~class4_t() class3_t::~class3_t() class2_t::class2_t() class1_t::class1_t() class2_t::~class2_t() class0_t::class0_t() int main()
Breakpoint 1, fatal (s=0x140030df8 "virtual memory exhausted") at toplev.c:1576
toplev.c:1576: No such file or directory.
(gdb) where
#0  fatal (s=0x140030df8 "virtual memory exhausted") at toplev.c:1576
#1  0x1200c47f0 in xmalloc (size=1) at toplev.c:1947
#2  0x120212d44 in _obstack_newchunk (h=0x140076f98, length=4120)
    at obstack.c:293
#3  0x120131f68 in rtx_alloc (code=INSN_LIST) at rtl.c:239
#4  0x120137698 in gen_rtx (code=INSN_LIST, mode=VOIDmode) at emit-rtl.c:372
#5  0x1201cfb78 in sched_analyze_insn (x=0x0, insn=0x14a02a1b0,
    loop_notes=0x80) at haifa-sched.c:3847
#6  0x1201cfd20 in sched_analyze (head=0x140030df8, tail=0x1403f08a0)
    at haifa-sched.c:3905
#7  0x1201d839c in compute_block_backward_dependences (bb=0)
    at haifa-sched.c:7253
#8  0x1201d96c4 in schedule_region (rgn=1380) at haifa-sched.c:7557
#9  0x1201dbfd8 in schedule_insns (dump_file=0x140030df8) at haifa-sched.c:8696
#10 0x1200c8150 in rest_of_compilation (decl=0x1400da928) at toplev.c:3621
#11 0x120052cd8 in finish_function (lineno=59, call_poplevel=0, nested=0)
    at decl.c:12384
#12 0x120085f40 in yyparse () at /usr/share/bison.simple:552
#13 0x1200c5aa8 in compile_file (name=0x140068c40 "\200\003\b\003")
    at toplev.c:2544
#14 0x1200c97f8 in main (argc=3, argv=0x140002b10, envp=0x100000)
    at toplev.c:4465



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]