JDK-7157426 : JVM crash because of bad code generation
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6u27
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2012-03-28
  • Updated: 2012-04-05
  • Resolved: 2012-04-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u27Resolved
Related Reports
Duplicate :  
Description
Murex detected a JVM 64-bit crash on recent JDK6 (jdk1.6.0_27, jdk1.6.0_30 and jdk1.6.0_31) on sol-x86 and Linux (works fine on Sparc). It can be reproduced with the attached files. The core stack is also attached (jvmCrash.stk).

The code that revealed the crash is in the function 'run' hereafter. The line 'glob.getKey();' is never executed but the program doesn't crash if it is commented out.

   public void run(Glob glob) throws Exception {
      int missing = 0;
      int zero = 0;
      double[] doubles = glob.get(field);
      for (double v : doubles) {
         if (v == 0.) {
            zero++;
         }
      }
      if (zero == scenarioCount) {
==>      glob.getKey();
      }
   }

Notes:
- The crash only occurs in 64 bit mode
- The crash happens on Solaris-x86 and Linux but *not* on Sparc
- The tested OS are:
     * Solaris X86: Solaris 10 11/06 s10x_u3wos_10 X86
     * Linux: Linux 2.6.9-42.ELsmp #1 SMP ... Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
     * Solaris SPARC: Solaris 10 8/07 s10s_u4wos_12b SPARC
 
How to reproduce:
% java -d64 -cp prgMRA.jar:erm-globs.jar ProgramMRA

If the "glob.getKey();" line is commented the crash doesn't occur, to check this, you can run the command below:
% java -d64 -cp prgMRA.jar:erm-globs.jar ProgramMRANoCrash

Comments
EVALUATION This bug is duplicate of 7056380 which is fixed in HS21 (jdk7u1). Sustaining group can backport the fix.
29-03-2012