JVM crash in simple numerical computation

Bug #1023132 reported by jef g
6
This bug affects 1 person
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-0ubuntu1.11.10.2), OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode).

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.

Revision history for this message
jef g (jefg) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.