This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc java crash
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc java crash
- From: Vladislav Malyshkin <mal at mail1 dot nai dot net>
- Date: Sun, 13 Aug 2000 18:19:28 -0400
The following program
cat Y.java
import a.b.c.d.F;
class Y {
final a.b.c.d.F x=new a.b.c.d.F();
}
crashes gcc
gcc --version
2.96
(RedHat 7.0 Public Beta)
gcj Y.java
Y.java:1: Class or interface `a.b.c.d.F' not found in import.
import a.b.c.d.F;
^
Y.java:3: Type `a.b.c.d.F' not found in declaration of field `x'.
final a.b.c.d.F x=new a.b.c.d.F();
^
gcj: Internal error: Segmentation fault (program jc1)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
gdb /usr/lib/gcc-lib/i386-redhat-linux/2.96/jc1
GNU gdb 5.0
Copyright 2000 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 "i386-redhat-linux"...
(no debugging symbols found)...
(gdb) run Y.java -fno-use-divide-subroutine -fasynchronous-exceptions -quiet -dumpbase Y.java -g1 -version -o /tmp/cctEUM
Starting program: /usr/lib/gcc-lib/i386-redhat-linux/2.96/jc1 Y.java -fno-use-divide-subroutine -fasynchronous-exceptions -quiet -dumpbase Y.java -g1 -version -o /tmp/cctEUM
GNU Java version 2.96 20000724 (experimental) (i386-redhat-linux) compiled by GNU C version 2.96 20000724 (experimental).
Y.java:1: Class or interface `a.b.c.d.F' not found in import.
import a.b.c.d.F;
^
Y.java:3: Type `a.b.c.d.F' not found in declaration of field `x'.
final a.b.c.d.F x=new a.b.c.d.F();
^
Program received signal SIGSEGV, Segmentation fault.
0x8054c0d in strcpy () at ../sysdeps/generic/strcpy.c:31
31 ../sysdeps/generic/strcpy.c: No such file or directory.
(gdb) bt
#0 0x8054c0d in strcpy () at ../sysdeps/generic/strcpy.c:31
#1 0x82b4c20 in stdin ()
#2 0x8054cc9 in strcpy () at ../sysdeps/generic/strcpy.c:31
#3 0x807900f in strcpy () at ../sysdeps/generic/strcpy.c:31
#4 0x8079409 in strcpy () at ../sysdeps/generic/strcpy.c:31
#5 0x808422c in error ()
#6 0x8087f0e in error ()
#7 0x4003b345 in __libc_start_main (main=0x80878a0 <error+18992>, argc=11,
ubp_av=0xbffff854, init=0x8049374, fini=0x824716c <__umoddi3+572>,
rtld_fini=0x4000de14 <_dl_fini>, stack_end=0xbffff84c)
at ../sysdeps/generic/libc-start.c:111
(gdb)