This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
java/1437: Another code sequence that causes jc1 to segfault
- To: java-gnats at sourceware dot cygnus dot com
- Subject: java/1437: Another code sequence that causes jc1 to segfault
- From: ashe at qms dot com
- Date: 1 Oct 1999 18:40:17 -0000
- Reply-To: ashe at qms dot com
>Number: 1437
>Category: java
>Synopsis: Another code sequence that causes jc1 to segfault
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: apbianco
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:51 PST 2000
>Closed-Date: Mon Oct 04 11:52:27 PDT 1999
>Last-Modified: Mon Oct 04 11:52:27 PDT 1999
>Originator: Steven Ashe
>Release: gcj-2.95.1
>Organization:
>Environment:
linux rh6 + gcc-2.95-1 et. al.
>Description:
This is a very short .java file that when compiled with gcj
causes jc1 to dump core:
public class Foo {
Object o1;
int type;
public Foo foo(Foo[] argv) {
if (argv.length == 2 && ((String)argv[0].o1).equals("Arg0") &&
argv[1].type == Foo.BAR) {
}
}
}
>How-To-Repeat:
see "Description"
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR gcj/58
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Fri Oct 1 17:28:32 1999
State-Changed-Why:
I tried this with the latest egcs gcj and libgcj,
and I didn't get a segv. Instead I got correct
error messages about the program (which has errors).
Can you try this? If so, please do so and get back to me.
If not, tell me and I will just close this PR.
Thanks.
State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Mon Oct 4 11:52:27 1999
State-Changed-Why:
The submitter reports that this is fixed.
>Unformatted: