* Another problem with egcs-970924
@ 1997-09-26 11:34 Fred Richardson
0 siblings, 0 replies; only message in thread
From: Fred Richardson @ 1997-09-26 11:34 UTC (permalink / raw)
To: egcs
Hi-
I've found a case wherein cc1plus get's huge (over 100MB...) and
eventually runs out of memory.
I took two random stack traces given below. One taken when cc1plus
has grown to 74.880Meg and the other is at 103.376Meg. Sorry, but I
don't have time to isolate an example. Let me know if you need any
more info. (I couldn't help but notice that the two traces are almost
identical):
At 74.880Meg:
=============================================================================
(gdb) where
#0 0x188f34 in gen_rtx (code=CODE_LABEL, mode=VOIDmode) at emit-rtl.c:390
#1 0x18c860 in gen_label_rtx () at emit-rtl.c:1445
#2 0x1d0660 in save_for_inline_copying (fndecl=0xf90010) at integrate.c:527
#3 0xdd184 in rest_of_compilation (decl=0xf90010) at toplev.c:3103
#4 0x40dac in finish_function (lineno=511, call_poplevel=0, nested=1) at decl.c:12234
#5 0x509f8 in instantiate_decl (d=0xf90010) at pt.c:4006
#6 0x6e978 in mark_used (decl=0xf90010) at decl2.c:3815
#7 0x20eac in build_over_call (fn=0xf90010, convs=0xf87c98, args=0xf87c68, flags=3)
at call.c:5404
#8 0x1e300 in build_new_function_call (fn=0x6e0840, args=0xf87c68, obj=0x0) at call.c:4527
#9 0x9e9d4 in build_x_function_call (function=0x6e0840, params=0xf87c68, decl=0x0)
at typeck.c:2391
#10 0x6dde8 in build_expr_from_tree (t=0x3c9190) at decl2.c:3530
#11 0x4d464 in tsubst_expr (t=0x6e6760, args=0xf85ef0, nargs=1, in_decl=0x6e6580)
at pt.c:2886
#12 0x4c780 in tsubst_expr (t=0x6e67c8, args=0xf85ef0, nargs=1, in_decl=0x6e6580)
at pt.c:2614
#13 0x4cf28 in tsubst_expr (t=0x6e6698, args=0xf85ef0, nargs=1, in_decl=0x6e6580)
at pt.c:2774
#14 0x509e0 in instantiate_decl (d=0xf85d20) at pt.c:4004
#15 0x6e978 in mark_used (decl=0xf85d20) at decl2.c:3815
#16 0x20eac in build_over_call (fn=0xf85d20, convs=0xf83c50, args=0xf83bb0, flags=3)
at call.c:5404
#17 0x1e300 in build_new_function_call (fn=0x6e6ce8, args=0xf83bb0, obj=0x0) at call.c:4527
#18 0x9e9d4 in build_x_function_call (function=0x6e6ce8, params=0xf83bb0, decl=0xf85970)
at typeck.c:2391
#19 0x6dde8 in build_expr_from_tree (t=0x3c9050) at decl2.c:3530
#20 0x4d464 in tsubst_expr (t=0x95e278, args=0xe974d8, nargs=2, in_decl=0x951b50)
at pt.c:2886
#21 0x4c780 in tsubst_expr (t=0x95e2c8, args=0xe974d8, nargs=2, in_decl=0x951b50)
at pt.c:2614
#22 0x4cf28 in tsubst_expr (t=0x95e218, args=0xe974d8, nargs=2, in_decl=0x951b50)
at pt.c:2774
#23 0x509e0 in instantiate_decl (d=0xe97288) at pt.c:4004
#24 0x6e978 in mark_used (decl=0xe97288) at decl2.c:3815
#25 0x20eac in build_over_call (fn=0xe97288, convs=0xefdc00, args=0xefdbe8, flags=520)
at call.c:5404
#26 0x219d4 in build_new_method_call (instance=0xefdbb8, name=0x3d2340, args=0xefdbd0,
basetype_path=0xe8f6f8, flags=520) at call.c:5599
#27 0x155c8 in build_method_call (instance=0xefdbb8, name=0x3d2340, parms=0xefdbd0,
basetype_path=0x0, flags=520) at call.c:1824
#28 0xbcc18 in build_delete (type=0xe8f5f8, addr=0xefdb88, auto_delete=0x3d4fb0,
flags=520, use_global_delete=0) at init.c:3291
#29 0xb5874 in perform_member_init (member=0xe9d808, name=0xe8f9a0, init=0x0, explicit=0)
at init.c:240
#30 0xb6624 in emit_base_init (t=0xe2f780, immediately=0) at init.c:667
#31 0x69968 in setup_vtbl_ptr () at decl2.c:1994
#32 0x8a67c in yyparse () at parse.y:743
#33 0xdb654 in compile_file (name=0xeffff655 "WrdDict.ii") at toplev.c:2486
#34 0xe0c2c in main (argc=12, argv=0xeffff484, envp=0xeffff4b8) at toplev.c:4331
(gdb)
At 103.376Meg
=============================================================================
(gdb) where
#0 0x188d88 in gen_rtx (code=CODE_LABEL, mode=VOIDmode) at emit-rtl.c:376
#1 0x18c860 in gen_label_rtx () at emit-rtl.c:1445
#2 0x1d0660 in save_for_inline_copying (fndecl=0xf90010) at integrate.c:527
#3 0xdd184 in rest_of_compilation (decl=0xf90010) at toplev.c:3103
#4 0x40dac in finish_function (lineno=511, call_poplevel=0, nested=1) at decl.c:12234
#5 0x509f8 in instantiate_decl (d=0xf90010) at pt.c:4006
#6 0x6e978 in mark_used (decl=0xf90010) at decl2.c:3815
#7 0x20eac in build_over_call (fn=0xf90010, convs=0xf87c98, args=0xf87c68, flags=3)
at call.c:5404
#8 0x1e300 in build_new_function_call (fn=0x6e0840, args=0xf87c68, obj=0x0) at call.c:4527
#9 0x9e9d4 in build_x_function_call (function=0x6e0840, params=0xf87c68, decl=0x0)
at typeck.c:2391
#10 0x6dde8 in build_expr_from_tree (t=0x3c9190) at decl2.c:3530
#11 0x4d464 in tsubst_expr (t=0x6e6760, args=0xf85ef0, nargs=1, in_decl=0x6e6580)
at pt.c:2886
#12 0x4c780 in tsubst_expr (t=0x6e67c8, args=0xf85ef0, nargs=1, in_decl=0x6e6580)
at pt.c:2614
#13 0x4cf28 in tsubst_expr (t=0x6e6698, args=0xf85ef0, nargs=1, in_decl=0x6e6580)
at pt.c:2774
#14 0x509e0 in instantiate_decl (d=0xf85d20) at pt.c:4004
#15 0x6e978 in mark_used (decl=0xf85d20) at decl2.c:3815
#16 0x20eac in build_over_call (fn=0xf85d20, convs=0xf83c50, args=0xf83bb0, flags=3)
at call.c:5404
#17 0x1e300 in build_new_function_call (fn=0x6e6ce8, args=0xf83bb0, obj=0x0) at call.c:4527
#18 0x9e9d4 in build_x_function_call (function=0x6e6ce8, params=0xf83bb0, decl=0xf85970)
at typeck.c:2391
#19 0x6dde8 in build_expr_from_tree (t=0x3c9050) at decl2.c:3530
#20 0x4d464 in tsubst_expr (t=0x95e278, args=0xe974d8, nargs=2, in_decl=0x951b50)
at pt.c:2886
#21 0x4c780 in tsubst_expr (t=0x95e2c8, args=0xe974d8, nargs=2, in_decl=0x951b50)
at pt.c:2614
#22 0x4cf28 in tsubst_expr (t=0x95e218, args=0xe974d8, nargs=2, in_decl=0x951b50)
at pt.c:2774
#23 0x509e0 in instantiate_decl (d=0xe97288) at pt.c:4004
#24 0x6e978 in mark_used (decl=0xe97288) at decl2.c:3815
#25 0x20eac in build_over_call (fn=0xe97288, convs=0xefdc00, args=0xefdbe8, flags=520)
at call.c:5404
#26 0x219d4 in build_new_method_call (instance=0xefdbb8, name=0x3d2340, args=0xefdbd0,
basetype_path=0xe8f6f8, flags=520) at call.c:5599
#27 0x155c8 in build_method_call (instance=0xefdbb8, name=0x3d2340, parms=0xefdbd0,
basetype_path=0x0, flags=520) at call.c:1824
#28 0xbcc18 in build_delete (type=0xe8f5f8, addr=0xefdb88, auto_delete=0x3d4fb0,
flags=520, use_global_delete=0) at init.c:3291
#29 0xb5874 in perform_member_init (member=0xe9d808, name=0xe8f9a0, init=0x0, explicit=0)
at init.c:240
#30 0xb6624 in emit_base_init (t=0xe2f780, immediately=0) at init.c:667
#31 0x69968 in setup_vtbl_ptr () at decl2.c:1994
#32 0x8a67c in yyparse () at parse.y:743
#33 0xdb654 in compile_file (name=0xeffff655 "WrdDict.ii") at toplev.c:2486
#34 0xe0c2c in main (argc=12, argv=0xeffff484, envp=0xeffff4b8) at toplev.c:4331
(gdb)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-09-26 11:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-26 11:34 Another problem with egcs-970924 Fred Richardson
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).