This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcj crash
- To: Gcc Bug List <bug-gcc at gnu dot org>
- Subject: gcj crash
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 26 Mar 2000 11:14:29 -0700
- Cc: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Reply-To: tromey at cygnus dot com
gcc finally builds again on my x86 Linux box.
However, now something has apparently changed and broken gcj.
When I compile HelloWorld, I get a crash.
jc1 stack trace, and HelloWorld.java, appended.
Tom
Program received signal SIGSEGV, Segmentation fault.
0x80b56a9 in size_binop (code=TRUNC_DIV_EXPR, arg0=0x0, arg1=0x0)
at ../../egcs/gcc/fold-const.c:1906
1906 tree type = TREE_TYPE (arg0);
(gdb) bt
#0 0x80b56a9 in size_binop (code=TRUNC_DIV_EXPR, arg0=0x0, arg1=0x0)
at ../../egcs/gcc/fold-const.c:1906
#1 0x80b12fb in finalize_record_size (rli=0x83957c0)
at ../../egcs/gcc/stor-layout.c:827
#2 0x80b19cc in finish_record_layout (rli=0x83957c0)
at ../../egcs/gcc/stor-layout.c:1098
#3 0x80b2189 in layout_type (type=0x83948b4)
at ../../egcs/gcc/stor-layout.c:1372
#4 0x807561b in init_decl_processing () at ../../../egcs/gcc/java/decl.c:594
#5 0x809cff8 in compile_file (name=0xbffffc52 "HelloWorld.java")
at ../../egcs/gcc/toplev.c:2110
#6 0x80a24f2 in main (argc=8, argv=0xbffffb24) at ../../egcs/gcc/toplev.c:4935
/*
* HelloWorld.java
*
* Expected Output: "Hello World!"
*/
public class HelloWorld {
public static void main (String[] args) {
System.out.println("Hello World!");
}
}