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]

g++ ICE with --enable-checking at ggc-page.c:341


I have been following up --enable-checking=tree,misc,gc,gcac testsuite
failures on irix6.5.

The failure  g++.old-deja/g++.law/operators24.C:13: Internal error:
Segmentation fault.

seems to occur at in ggc_set_mark at ggc-page.c:341. The reduced test case

typedef int ptrdiff_t;
typedef unsigned int size_t;
struct Link {
  void* operator new(size_t, int);
  friend void* __builtin_new(size_t);
};
void f() { new(2) Link; }

gives

Starting program:
/exd4/billingd/obj/egcs-20000807-enable-checking/gcc/testsuite/../cc1plus
bug.ii  -ansi -Wno-long-long -pedantic-errors -ansi -version  -o
operators24.s
GNU C++ version 2.96 20000807 (experimental) (mips-sgi-irix6.5) compiled by
GNU C version 2.96 20000807 (experimental).
options passed:  -ansi -Wno-long-long -pedantic-errors -ansi
options enabled:  -fpeephole -ffunction-cse -fkeep-static-consts
 -freg-struct-return -fsched-interblock -fsched-spec -fbranch-count-reg
 -fpic -fexceptions -fnew-exceptions -fcommon -fgnu-linker -fargument-alias
 -fident -fmath-errno -mfp64 -mgp64 -mabicalls -meb -mcpu=4000
 {GC 112k -> 80k} {GC 81k -> 81k} {GC 88k -> 
Program received signal SIGSEGV, Segmentation fault.
0x10319a4c in ggc_set_mark (p=0xaa)
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-page.c:341
341       return base[L1][L2];
(gdb) where
#0  0x10319a4c in ggc_set_mark (p=0xaa)
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-page.c:341
#1  0x1007c974 in lang_mark_tree (t=0x4048580)
    at /exd4/billingd/src/egcs-20000807/gcc/cp/decl.c:14997
#2  0x103051c8 in ggc_mark_trees ()
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-common.c:420
#3  0x10303210 in ggc_mark_roots ()
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-common.c:195
#4  0x1031a254 in ggc_collect ()
    at /exd4/billingd/src/egcs-20000807/gcc/ggc-page.c:1124
#5  0x10106bf0 in yyparse ()
    at /exd4/billingd/src/egcs-20000807/gcc/cp/parse.y:451
#6  0x101a2f1c in compile_file (name=0x40292b8 "bug.ii")
    at /exd4/billingd/src/egcs-20000807/gcc/toplev.c:2296
#7  0x101a8c68 in main (argc=9, argv=0x7fff2f14)
    at /exd4/billingd/src/egcs-20000807/gcc/toplev.c:4774
(gdb) 


Can persue it, but will need step by step instructions.

+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone:	+61 3 9469 0642
FAX:	+61 3 9462 2700
Email:	David.Billinghurst@riotinto.com




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