g77-20000131 crash with -O2 -funroll-loops -mcpu=v8 on sparc

Dan Nicolaescu dann@ics.uci.edu
Tue Feb 1 18:27:00 GMT 2000


Richard Henderson <rth@cygnus.com> writes:

  > On Tue, Feb 01, 2000 at 11:04:01AM -0800, Dan Nicolaescu wrote:
  > > crashes when trying to compile swim.f from SPEC95 ...
  > 
  > I can't reproduce this on a solaris 2.5.1 host with today's cvs.

I updated from cvs at around 3pm PST
Bootstraped on a solaris 2.5.1 machine
It still crashes. (it also crashes if I compile on a solaris 2.7
machine)

I configured like this (nothing special)

configure --prefix=/home/dann/local/packages/gcc-CVS0102-2.5.1 --enable-languages="c,f77" --disable-nls


Please let me know if I can help more...

Here is a debug session:

 /opt/gcc-2.95.1/bin/gdb ~/local/packages/gcc-CVS0102-2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.96/f771                        GNU gdb 4.18
Copyright 1998 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 "sparc-sun-solaris2.5.1"...
(gdb) r  -O2 -funroll-loops -mcpu=v8 swim.f
Starting program: /home/dann/local/packages/gcc-CVS0102-2.5.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.96/f771 -O2 -funroll-loops -mcpu=v8 swim.f
 MAIN__ inital_ calc1_ calc2_
Program received signal SIGSEGV, Segmentation fault.
0xef6e0558 in memcpy () from /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
(gdb) bt
#0  0xef6e0558 in memcpy () from /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
#1  0x24a184 in fp_zero_operand (op=0xee831ff0)
    at ../../../local/local-build/gcc-CVS/egcs/gcc/config/sparc/sparc.c:405
#2  0x21a30c in recog_3 (x0=0xee810030, insn=0xee8202c0, 
    pnum_clobbers=0xefffeadc) at insn-recog.c:6108
#3  0x21fe18 in recog (x0=0xee810030, insn=0xee8202c0, 
    pnum_clobbers=0xefffeadc) at insn-recog.c:12404
#4  0x1c4d00 in recog_for_combine (pnewpat=0xefffeba8, insn=0xee8202c0, 
    pnotes=0xefffeba4)
    at ../../../local/local-build/gcc-CVS/egcs/gcc/combine.c:9438
#5  0x1b6cf0 in try_combine (i3=0xee8202c0, i2=0xee8202a0, i1=0x0)
    at ../../../local/local-build/gcc-CVS/egcs/gcc/combine.c:1983
#6  0x1b4d30 in combine_instructions (f=0x2bec00, nregs=2878464)
    at ../../../local/local-build/gcc-CVS/egcs/gcc/combine.c:619
#7  0xd9678 in rest_of_compilation (decl=0xeeeb0d80)
    at ../../../local/local-build/gcc-CVS/egcs/gcc/toplev.c:3248
#8  0x59874 in finish_function (nested=0)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/com.c:14223
#9  0x556e0 in ffecom_finish_progunit ()
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/com.c:11437
#10 0xb6c8c in ffestd_exec_end ()
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/std.c:1518
#11 0xac148 in ffestc_shriek_subroutine_ (ok=true)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/stc.c:4935
#12 0xb4bcc in ffestc_R1225 (name=0x0)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/stc.c:12375
#13 0xacc24 in ffestc_end ()
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/stc.c:5658
#14 0x90678 in ffestb_end3_ (t=0x33e0c0)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/stb.c:3307
#15 0x8ff94 in ffestb_end (t=0x33e0c0)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/stb.c:2985
#16 0x8c560 in ffesta_second_ (t=0x33e0c0)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/sta.c:1359
#17 0x864d8 in ffelex_send_token_ ()
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/lex.c:1696
#18 0x84f04 in ffelex_finish_statement_ ()
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/lex.c:974
#19 0x879cc in ffelex_file_fixed (wf=0x9, f=0x2caa08)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/lex.c:3058
#20 0xd40ac in ffe_file (wf=0xef641890, f=0x2caa08)
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/top.c:541
#21 0x8a628 in yyparse ()
    at ../../../../local/local-build/gcc-CVS/egcs/gcc/f/parse.c:79
#22 0xd7c18 in compile_file (name=0xef6c15c8 "swim.f")
    at ../../../local/local-build/gcc-CVS/egcs/gcc/toplev.c:2373
#23 0xdbe30 in main (argc=5, argv=0xeffff474)
    at ../../../local/local-build/gcc-CVS/egcs/gcc/toplev.c:4763


Here is the debuging session on solaris 2.7 



gdb ~/local/packages/gcc-CVS0102/lib/gcc-lib/sparc-sun-solaris2.7/2.96/f771
GNU gdb 4.18
Copyright 1998 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 "sparc-sun-solaris2.7"...
(gdb) r -O2 -funroll-loops -mcpu=v8 swim.f
Starting program: /home/dann/local/packages/gcc-CVS0102/lib/gcc-lib/sparc-sun-solaris2.7/2.96/f771 -O2 -funroll-loops -mcpu=v8 swim.f
 MAIN__ inital_ calc1_ calc2_
Program received signal SIGSEGV, Segmentation fault.
0xff3706bc in memcpy () from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
(gdb) bt
#0  0xff3706bc in memcpy () from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
#1  0x257b04 in fp_zero_operand (op=0xfe3f1ff0) at ../../gcc-CVS/egcs/gcc/config/sparc/sparc.c:405
#2  0x2264e8 in recog_3 (x0=0xfe3d0030, insn=0xfe3e02c0, pnum_clobbers=0xffbeea0c) at insn-recog.c:6108
#3  0x22c7e0 in recog (x0=0xfe3d0030, insn=0xfe3e02c0, pnum_clobbers=0xffbeea0c) at insn-recog.c:12404
#4  0x1cb4fc in recog_for_combine (pnewpat=0xffbeead8, insn=0xfe3e02c0, pnotes=0xffbeead4)
    at ../../gcc-CVS/egcs/gcc/combine.c:9438
#5  0x1bcbdc in try_combine (i3=0xfe3e02c0, i2=0xfe3e02a0, i1=0x0) at ../../gcc-CVS/egcs/gcc/combine.c:1983
#6  0x1baa78 in combine_instructions (f=0x2ce800, nregs=2942976) at ../../gcc-CVS/egcs/gcc/combine.c:619
#7  0xd93c0 in rest_of_compilation (decl=0xfea70d80) at ../../gcc-CVS/egcs/gcc/toplev.c:3248
#8  0x59914 in finish_function (nested=0) at ../../../gcc-CVS/egcs/gcc/f/com.c:14223
#9  0x55750 in ffecom_finish_progunit () at ../../../gcc-CVS/egcs/gcc/f/com.c:11437
#10 0xb69f0 in ffestd_exec_end () at ../../../gcc-CVS/egcs/gcc/f/std.c:1518
#11 0xabeac in ffestc_shriek_subroutine_ (ok=true) at ../../../gcc-CVS/egcs/gcc/f/stc.c:4935
#12 0xb4930 in ffestc_R1225 (name=0x0) at ../../../gcc-CVS/egcs/gcc/f/stc.c:12375
#13 0xac988 in ffestc_end () at ../../../gcc-CVS/egcs/gcc/f/stc.c:5658
#14 0x904ec in ffestb_end3_ (t=0x351568) at ../../../gcc-CVS/egcs/gcc/f/stb.c:3307
#15 0x8fe1c in ffestb_end (t=0x351568) at ../../../gcc-CVS/egcs/gcc/f/stb.c:2985
#16 0x8c400 in ffesta_second_ (t=0x351568) at ../../../gcc-CVS/egcs/gcc/f/sta.c:1359
#17 0x86518 in ffelex_send_token_ () at ../../../gcc-CVS/egcs/gcc/f/lex.c:1696
#18 0x84f44 in ffelex_finish_statement_ () at ../../../gcc-CVS/egcs/gcc/f/lex.c:974
#19 0x87a0c in ffelex_file_fixed (wf=0x9, f=0x2da498) at ../../../gcc-CVS/egcs/gcc/f/lex.c:3058
#20 0xd3dfc in ffe_file (wf=0xff201890, f=0x2da498) at ../../../gcc-CVS/egcs/gcc/f/top.c:541
#21 0x8a628 in yyparse () at ../../../gcc-CVS/egcs/gcc/f/parse.c:79
#22 0xd7960 in compile_file (name=0xff3515c8 "swim.f") at ../../gcc-CVS/egcs/gcc/toplev.c:2373
#23 0xdbb78 in main (argc=5, argv=0xffbef3a4) at ../../gcc-CVS/egcs/gcc/toplev.c:4763



More information about the Gcc-bugs mailing list