This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
gcj/102: crashes when compiling try block from java source
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/102: crashes when compiling try block from java source
- From: gback at cs dot utah dot edu
- Date: 16 Nov 1999 17:37:36 -0000
- Reply-To: gback at cs dot utah dot edu
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, gback@cs.utah.edu
>Number: 102
>Category: gcj
>Synopsis: crashes when compiling try block from java source
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 16 09:40:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: gback@cs.utah.edu
>Release: CVS around Oct 15
>Organization:
>Environment:
Linux RH 5.2, glibc 2.0.7, Kernel 2.2.12
>Description:
jc1 crashes on this input:
Program received signal SIGSEGV, Segmentation fault.
qualify_ambiguous_name (id=0x82990e0) at ./parse.y:7820
./parse.y:7820: No such file or directory.
(gdb) bt
#0 qualify_ambiguous_name (id=0x82990e0) at ./parse.y:7820
#1 0x8055df9 in resolve_expression_name (id=0x82990e0, orig=0x0)
at ./parse.y:6463
#2 0x805886e in java_complete_lhs (node=0x82990e0) at ./parse.y:8386
#3 0x8058083 in java_complete_tree (node=0x82990e0) at ./parse.y:8024
#4 0x80588bc in java_complete_lhs (node=0x8299120) at ./parse.y:8403
#5 0x8058083 in java_complete_tree (node=0x8299120) at ./parse.y:8024
#6 0x8058256 in java_complete_lhs (node=0x8298cf0) at ./parse.y:8148
#7 0x8058083 in java_complete_tree (node=0x8298cf0) at ./parse.y:8024
#8 0x805d28f in patch_try_statement (node=0x82997fc) at ./parse.y:11602
#9 0x80582fe in java_complete_lhs (node=0x82997fc) at ./parse.y:8174
#10 0x8058083 in java_complete_tree (node=0x82997fc) at ./parse.y:8024
#11 0x8058256 in java_complete_lhs (node=0x8298bcc) at ./parse.y:8148
#12 0x8058083 in java_complete_tree (node=0x8298bcc) at ./parse.y:8024
#13 0x8058256 in java_complete_lhs (node=0x8298620) at ./parse.y:8148
#14 0x8058083 in java_complete_tree (node=0x8298620) at ./parse.y:8024
#15 0x805571a in java_complete_expand_method (mdecl=0x82984e4)
at ./parse.y:6112
#16 0x80555b3 in java_complete_expand_methods () at ./parse.y:6047
#17 0x80559f4 in java_expand_classes () at ./parse.y:6273
#18 0x8072114 in yyparse () at ../../../egcs/gcc/java/jcf-parse.c:902
#19 0x807b61a in compile_file (name=0xbffffbb7 "C.java")
at ../../egcs/gcc/toplev.c:3200
#20 0x807eb87 in main (argc=8, argv=0xbffffa64) at ../../egcs/gcc/toplev.c:5555
>How-To-Repeat:
Try to compile this program:
import java.io.*;
public class C {
public static void main(String av[]) {
String x = null, y = null, z = null;
LineNumberReader r = new LineNumberReader(
new InputStreamReader(System.in));
try {
x = r.readLine();
y = r.readLine();
z = r.readLine();
((String)null).hashCode();
} catch (Exception e) {
System.out.println(x);
System.out.println(y);
System.out.println(z);
}
}
}
>Fix:
None
>Release-Note:
>Audit-Trail:
>Unformatted: