JDK-6712105 : Hotspot-Compiler compiles code -> the vm crashes
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2008-06-09
  • Updated: 2011-02-16
  • Resolved: 2010-09-30
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

FULL OS VERSION :
Windows XP Prof. [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
When the Hotspot-Compiler compiles following obfuscated code, the application crashes.
Note: There is no problem while interpreting the code and there is no Problem
with java version "1.6.0_04"

Obfuscated by: DashO
Decompiled by: Jad

private Status c()
    {
        Status status = null;
        Iterator iterator = a.iterator();
        do
        {
            while (!iterator.hasNext())
                if (status != null)
                    return status;
                else
                    return b;
            ImportLogEntry importlogentry = (ImportLogEntry)iterator.next();
            status = b.eval(importlogentry.getStatus());
        } while (true);
    }

Orginal Code:

protected Status evalStatus() {
        Status tmp = null;
        for(ImportLogEntry entry:children) {
            tmp = status.eval( entry.getStatus());
        }
        return tmp==null ? status : tmp;
    }

Error message:



THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: No

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Attached seperatly

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION This is the same issue as 6879934 which was fixed by 6986046
30-09-2010

EVALUATION The fix for 6461204 causes a bci from the wrong scope to be used which results in later failures. The code needs to respect the fact that we may pop scopes off to make them match and it should pick a bci that matches that scope.
09-06-2008