United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7016881 JSR 292: JDI: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds
JDK-7016881 : JSR 292: JDI: sun.jvm.hotspot.utilities.AssertionFailure: index out of bounds

Details
Type:
Bug
Submit Date:
2011-02-03
Status:
Closed
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2011-11-28
Component:
hotspot
OS:
generic
Sub-Component:
svc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs20
Fixed Versions:
hs22 (b05)

Related Reports
Backport:
Backport:

Sub Tasks

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

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

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/2090c623107e
                                     
2011-09-03
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.
                                     
2011-09-06
EVALUATION

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

See main CR
                                     
2011-09-12



Hardware and Software, Engineered to Work Together