JDK-7016881 : JSR 292: JDI: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: hs20
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-02-03
  • Updated: 2012-02-01
  • Resolved: 2011-11-28
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 7 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Description
Exception when trying to <stack-frame>.getArgumentValues():

# ERROR: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds
# ERROR: 	at sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
# ERROR: 	at sun.jvm.hotspot.oops.ConstantPoolCache.getEntryAt(ConstantPoolCache.java:76)
# ERROR: 	at sun.jvm.hotspot.oops.ConstantPool.getFieldOrMethodAt(ConstantPool.java:151)
# ERROR: 	at sun.jvm.hotspot.oops.ConstantPool.getNameAndTypeRefIndexAt(ConstantPool.java:219)
# ERROR: 	at sun.jvm.hotspot.oops.GenerateOopMap.doMethod(GenerateOopMap.java:1732)
# ERROR: 	at sun.jvm.hotspot.oops.GenerateOopMap.interp1(GenerateOopMap.java:1385)
# ERROR: 	at sun.jvm.hotspot.oops.GenerateOopMap.interpBB(GenerateOopMap.java:802)
# ERROR: 	at sun.jvm.hotspot.oops.GenerateOopMap.interpAll(GenerateOopMap.java:1107)
# ERROR: 	at sun.jvm.hotspot.oops.GenerateOopMap.doInterpretation(GenerateOopMap.java:980)
# ERROR: 	at sun.jvm.hotspot.oops.GenerateOopMap.computeMap(GenerateOopMap.java:2208)
# ERROR: 	at sun.jvm.hotspot.interpreter.OopMapForCacheEntry.computeMap(OopMapForCacheEntry.java:80)
# ERROR: 	at sun.jvm.hotspot.interpreter.OopMapCacheEntry.fill(OopMapCacheEntry.java:53)
# ERROR: 	at sun.jvm.hotspot.oops.Method.getMaskFor(Method.java:239)
# ERROR: 	at sun.jvm.hotspot.runtime.InterpretedVFrame.getLocals(InterpretedVFrame.java:53)
# ERROR: 	at sun.jvm.hotspot.jdi.StackFrameImpl.getArgumentValues(StackFrameImpl.java:211)

Comments
EVALUATION See main CR
12-09-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/2090c623107e
08-09-2011

EVALUATION 7016881: JSR 292: JDI: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds Reviewed-by: kvn, twisti This was a bug in the 7012081 changes. A reference to rawIndex wasn't updated to poolIndex some times the wrong index was used resulting in exceptions. Tested with failing test.
06-09-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/2090c623107e
03-09-2011

EVALUATION This was a bug in the 7012081 changes. A reference to rawIndex wasn't updated to poolIndex some times the wrong index was used.
30-08-2011