New bootstrap failures on solaris2.7 and Irix6.2

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sun Sep 17 21:30:00 GMT 2000


When bootstrapping this evening's CVS on solaris2.7 or Irix6.2 (having
used cc for stage1) I'm getting a failure in stage2 compiling
print-rtl.c.  (Bootstrapping worked yesterday.)

 > xgcc: Internal error: Segmentation fault (program cc1)
 > Please submit a full bug report.
 > See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
 > make[2]: *** [print-rtl.o] Error 1

Here's the backtrace from dbx on Irix6.2:

(dbx) where
>  0 realfree(0x104a53a0, 0x0, 0x10543a68, 0x104a5398, 0x0, 0x2094a720, 0x104a5380, 0x2094a718) ["/xlv24/patches/3490/work/irix/lib/libc/libc_n32_M4/gen/malloc.c":528, 0xfa419d8]
   1 cleanfree(0x0, 0x0, 0x10543a68, 0x104a5398, 0x0, 0x2094a720, 0x104a5380, 0x2094a718) ["/xlv24/patches/3490/work/irix/lib/libc/libc_n32_M4/gen/malloc.c":944, 0xfa424a8]
   2 __malloc(0x10, 0x0, 0x10543a68, 0x104a5398, 0x0, 0x2094a720, 0x104a5380, 0x2094a718) ["/xlv24/patches/3490/work/irix/lib/libc/libc_n32_M4/gen/malloc.c":230, 0xfa410e8]
   3 _malloc(0x0, 0x0, 0x10543a68, 0x104a5398, 0x0, 0x2094a720, 0x104a5380, 0x2094a718) ["/xlv24/patches/3490/work/irix/lib/libc/libc_n32_M4/gen/malloc.c":186, 0xfa41038]
   4 xmalloc(size = 16) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/libiberty/xmalloc.c":75, 0x103c1c3c]
   5 start_sequence() ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/emit-rtl.c":3539, 0x1014cc18]
   6 iv_add_mult_cost(b = 0x400c300, m = 0x400c318, a = 0x437a110, reg = 0x437a110) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/loop.c":7876, 0x10354ed4]
   7 strength_reduce(loop = 0x104d68d0, insn_count = 76, flags = 0) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/loop.c":4382, 0x1034ae7c]
   8 scan_loop(loop = 0x104d68d0, flags = 0) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/loop.c":1073, 0x103407cc]
   9 loop_optimize(f = 0x42e4880, dumpfile = (nil), flags = 0) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/loop.c":460, 0x1033e458]
   10 rest_of_compilation(decl = 0x4269600) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/toplev.c":3107, 0x1006c01c]
   11 c_expand_body(fndecl = 0x4269600, nested_p = 0) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/c-decl.c":6761, 0x10042960]
   12 finish_function(nested = 0) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/c-decl.c":6685, 0x100427b8]
   13 yyparse() ["/caip/u99/ghazi/gcc-testing/build/gcc/c-parse.y":319, 0x100266fc]
   14 compile_file(name = 0x4020ad0 = "print-rtl.i") ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/toplev.c":2335, 0x1006a800]
   15 main(argc = 18, argv = 0x7fff2ee4) ["/caip/u99/ghazi/gcc-testing/egcs-CVS20000917/gcc/toplev.c":4826, 0x10070794]
   16 __start() ["/vince/6.2-mar09/work/irix/lib/libc/libc_n32_M3/csu/crt1text.s":166, 0x100258a0]

The crash on solaris also dies in xmalloc, but with a slightly
different backtrace

signal SEGV (no mapping at the fault address) in realfree at
0xff2c5b64
0xff2c5b64: realfree+0x0078:    ld      [%i1 + 0x8], %o2
Current function is xmalloc
   75     newmem = malloc (size);
(/opt/SUNWspro/bin/../WS5.0/bin/sparcv9/dbx) where
  [1] realfree(0x627928, 0xc4f218, 0xff338f50, 0xff332584, 0x627920, 0x6278f9), at 0xff2c5b64
  [2] cleanfree(0x0, 0xff332584, 0xff338ec4, 0xff338f44, 0xff338ec4, 0xfef985e1), at 0xff2c6420
  [3] _malloc_unlocked(0x627928, 0x10, 0x6455c0, 0x627920, 0x0, 0xff332584), at 0xff2c55e8
  [4] malloc(0x10, 0xff107580, 0x6455d0, 0x0, 0x0, 0xfef985c0), at 0xff2c5504
=>[5] xmalloc(size = 16U), line 75 in "xmalloc.c"
dbx: warning: can't find file "/teal/caip5/ghazi/gcc-testing/build/gcc/libbackend.a(splay-tree.o)"
  [6] splay_tree_insert(0x6455d0, 0xff107580, 0xfef985c0, 0x10, 0x65, 0xfef91d80), at 0x37e164
dbx: warning: can't find file "/teal/caip5/ghazi/gcc-testing/build/gcc/c-common.o"
  [7] c_add_case_label(0x6455d0, 0xfef97e40, 0xff107580, 0x0, 0x0, 0xff108800), at 0x8f5a8
dbx: warning: can't find file "/teal/caip5/ghazi/gcc-testing/build/gcc/c-typeck.o"
  [8] do_case(0xff107580, 0x0, 0xff358e60, 0xfef98460, 0xff262f00, 0xfef98580), at 0x80848
  [9] yyparse(0x5, 0xff3632c0, 0xffbef4b0, 0xffbef74e, 0x16c, 0x264), at 0x53c4c
  [10] compile_file(0xffbefb5b, 0x5895e8, 0xffffffff, 0x6102f0, 0x65, 0x0), at 0x93774
  [11] main(0x12, 0xffbef9d4, 0xffbefa20, 0x5d9c00, 0x0, 0x12), at 0x99974


More information about the Gcc-bugs mailing list