Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2131152 | 1.4-pool | Vaibhav Kulkarni | P4 | Closed | Won't Fix | |
JDK-2131153 | 1.3.1_20 | Vaibhav Kulkarni | P4 | Closed | Won't Fix |
Compiling and running the following example segfaults the default
VM in JDK 1.3.0rc1-S. With '-classic', the stack overflow is reported
properly. The simpler definition, commented out, works OK. Apparently,
it is important that the recursive call occur within a 'finally' clause.
public class Fault {
public static void main(String[] args) {
Fault x = new Fault();
x.foo();
}
/*
boolean foo() {
return foo();
}
*/
boolean foo() {
try {
}
finally {
return foo();
}
}
}
william.maddox@Eng 2000-01-21
VM in JDK 1.3.0rc1-S. With '-classic', the stack overflow is reported
properly. The simpler definition, commented out, works OK. Apparently,
it is important that the recursive call occur within a 'finally' clause.
public class Fault {
public static void main(String[] args) {
Fault x = new Fault();
x.foo();
}
/*
boolean foo() {
return foo();
}
*/
boolean foo() {
try {
}
finally {
return foo();
}
}
}
william.maddox@Eng 2000-01-21
- backported by
-
JDK-2131152 Infinite recursion from within finally clause (stack overflow) segfaults VM
-
- Closed
-
-
JDK-2131153 Infinite recursion from within finally clause (stack overflow) segfaults VM
-
- Closed
-