JVM crash in simple numerical computation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
A simple numerical calculation reliably leads to a JVM crash. This is on Kubuntu 11.10 and java version "1.6.0_23", OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-
Changing various, seemingly superficial aspects of the test case makes the crash go away so it appears to be due to just the right combination of factors . For example, changing the ternary operator in the test case "denom != 0 ? num / denom : 0" to just "num / denom" eliminates the crash.
I have attached a self-contained test case - to run, pass the "crash"file to Java's standard input. This bug occurs every time I run the test case. I have also attached a crash report. Please let me know if there's any other information I should provide.