United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7093690 JSR292: SA-JDI AssertionFailure: Expected raw sp likely got real sp, value was
JDK-7093690 : JSR292: SA-JDI AssertionFailure: Expected raw sp likely got real sp, value was

Details
Type:
Bug
Submit Date:
2011-09-22
Status:
Closed
Updated Date:
2012-04-11
Project Name:
JDK
Resolved Date:
2011-10-22
Component:
hotspot
OS:
solaris,generic
Sub-Component:
compiler
CPU:
sparc,generic
Priority:
P3
Resolution:
Won't Fix
Affected Versions:
hs22,hs23
Fixed Versions:
7u2

Related Reports
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
HS fails on sparcv9 with next exception:

# ERROR: Test caught an exception: 
# ERROR: sun.jvm.hotspot.utilities.AssertionFailure: Expected raw sp likely got real sp, value was 0xffffffff7e3ff170
# ERROR: 	at sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
# ERROR: 	at sun.jvm.hotspot.runtime.sparc.SPARCFrame.<init>(SPARCFrame.java:196)
# ERROR: 	at sun.jvm.hotspot.runtime.sparc.SPARCFrame.senderForRicochetFrame(SPARCFrame.java:959)
# ERROR: 	at sun.jvm.hotspot.runtime.sparc.SPARCFrame.sender(SPARCFrame.java:574)
# ERROR: 	at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:213)
# ERROR: 	at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:221)
# ERROR: 	at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:119)
# ERROR: 	at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:146)
# ERROR: 	at sun.jvm.hotspot.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:218)
# ERROR: 	at sun.jvm.hotspot.jdi.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:183)
# ERROR: 	at vm.mlvm.share.sajdi.SAJDIStackMatchTest.run(SAJDIStackMatchTest.java:79)
# ERROR: 	at vm.mlvm.share.MlvmTest.runMlvmTest(MlvmTest.java:198)
# ERROR: 	at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:136)
# ERROR: 	at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:105)
# ERROR: 	at vm.mlvm.share.sajdi.SAJDIStackMatchTest.main(SAJDIStackMatchTest.java:123)
### TRACE 1: The test took 11367 ms

                                    

Comments
EVALUATION

The ricochet changes 7051798 in the SA forgot to rebias stack pointers:

diff -r 098acdf97f09 agent/src/share/classes/sun/jvm/hotspot/runtime/sparc/SPARCFrame.java
--- a/agent/src/share/classes/sun/jvm/hotspot/runtime/sparc/SPARCFrame.java
+++ b/agent/src/share/classes/sun/jvm/hotspot/runtime/sparc/SPARCFrame.java
@@ -956,7 +956,7 @@
     map.makeIntegerRegsUnsaved();
     map.shiftWindow(sp, youngerSP);
     boolean thisFrameAdjustedStack = true;  // I5_savedSP is live in this RF
-    return new SPARCFrame(sp, youngerSP, thisFrameAdjustedStack);
+    return new SPARCFrame(biasSP(sp), biasSP(youngerSP), thisFrameAdjustedStack);
   }

   private Frame senderForEntryFrame(RegisterMap regMap)
                                     
2011-10-06
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/8187c94a9a87
                                     
2011-10-18



Hardware and Software, Engineered to Work Together