Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5030139

SA-JDI: frames methods throw AssertionFailure on 64-bit ServerVM

XMLWordPrintable

    • b49
    • sparc
    • solaris_8
    • Verified



      Name: ipR10196 Date: 04/12/2004


      -----------------------------------------------------
      Test : nsk/sajdi/ThreadReference/frames/frames002
                    nsk/sajdi/ThreadReference/frames_ii/frames_ii002
                    nsk/sajdi/ThreadReference/frame/frame002
                    nsk/sajdi/ObjectReference/owningThread/ownthrd002
      VM : ServerVM 64-bit
      Mode : all
      Platform : sparcv9
      OS : SunOS 5.8
      JDK : 1.5.0-beta2-b46
      ------------------------------------------------------

      In addition to problems described in

        5008126 SA-JDI: ThreadReference.frames() throws RuntimeException
        5030121 SA-JDI: Method.frameCount(), .frames(), .frames(int,int) return wrong frames num

      functions Method.frameCount(), Method.frames(), Method.frames(start,length)
      throw AssertionFailure for sleeping thread:
      -------------------------------------------------------------------------------
          thread #3
            thread name: threadSleeping
            isSuspended: true
          sun.jvm.hotspot.utilities.AssertionFailure:
          Expected raw sp likely got real sp, value was 0xffffffff2ad01310
              at sun.jvm.hotspot.utilities.Assert.that(Assert.java:15)
              at sun.jvm.hotspot.runtime.sparc.SPARCFrame.<init>(SPARCFrame.java:226)
              at sun.jvm.hotspot.runtime.sparc.SPARCFrame.senderWithPCAdjustment(SPARCFrame.java:848)
              at sun.jvm.hotspot.runtime.sparc.SPARCFrame.sender(SPARCFrame.java:412)
              at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:184)
              at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:189)
              at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:102)
              at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:129)
              at sun.jvm.hotspot.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:203)
              at sun.jvm.hotspot.jdi.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:168)
              at nsk.sajdi.ThreadReference.frames.frames002.checkThread(frames002.java:222)
              at nsk.sajdi.ThreadReference.frames.frames002.runIt(frames002.java:182)
              at nsk.sajdi.ThreadReference.frames.frames002.run(frames002.java:26)
              at nsk.sajdi.ThreadReference.frames.frames002.main(frames002.java:21)

        # ERROR: ThreadReference.frames() throws unexpected exception:
        # ERROR: thread nom: 3
        # ERROR: thread name: threadSleeping
        # ERROR: exception: sun.jvm.hotspot.utilities.AssertionFailure:
                    Expected raw sp likely got real sp, value was 0xffffffff2ad01310
      -------------------------------------------------------------------------------

      Similar assertion is caused also by ObjectReference.entryCount():
      -------------------------------------------------------------------------------
        monitor #3
          monitor name: simpleMonitor2 sun.jvm.hotspot.utilities.AssertionFailure:
          Expected raw sp likely got real sp, value was 0xffffffff7ce6fbec
              at sun.jvm.hotspot.utilities.Assert.that(Assert.java:15)
              at sun.jvm.hotspot.runtime.sparc.SPARCFrame.<init>(SPARCFrame.java:226)
              at sun.jvm.hotspot.runtime.sparc.SPARCFrame.senderWithPCAdjustment(SPARCFrame.java:848)
              at sun.jvm.hotspot.runtime.sparc.SPARCFrame.sender(SPARCFrame.java:412)
              at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:184)
              at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:189)
              at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:102)
              at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:134)
              at sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:231)
              at sun.jvm.hotspot.jdi.ObjectReferenceImpl.countLockedObjects(ObjectReferenceImpl.java:176)
              at sun.jvm.hotspot.jdi.ObjectReferenceImpl.computeMonitorInfo(ObjectReferenceImpl.java:249)
              at sun.jvm.hotspot.jdi.ObjectReferenceImpl.entryCount(ObjectReferenceImpl.java:163)
              at nsk.sajdi.ObjectReference.owningThread.ownthrd002.checkMonitor(ownthrd002.java:189)
              at nsk.sajdi.ObjectReference.owningThread.ownthrd002.runIt(ownthrd002.java:164)
              at nsk.sajdi.ObjectReference.owningThread.ownthrd002.run(ownthrd002.java:26)
              at nsk.sajdi.ObjectReference.owningThread.ownthrd002.main(ownthrd002.java:21)

        # ERROR: ObjectReference.entryCount() throws Exception:
        # ERROR: monitor name: simpleMonitor2
        # ERROR: exception: sun.jvm.hotspot.utilities.AssertionFailure:
                    Expected raw sp likely got real sp, value was 0xffffffff7ce6fbec
      -------------------------------------------------------------------------------

      This happens only for 64-bit ServerVM on Solaris/sparcv9 platform.

      To reproduce this failure use GammaBase files for 5008126:
        cd /net/jano.sfbay/export/disk20/GammaBase/Bugs/5008126
        sh build.sh $JAVA_HOME
        sh run.sh [-pid | -core | -socket] [-g] [-v] $JAVA_HOME -d64 -server -Xmixed
      where:
          -pid - run test with SA-JDI pid attaching connector (default)
          -core - run test with SA-JDI core attaching connector
          -socket - run test with JDI socket attaching connector
          -g - run test with java_g binaries
          -v - run test in verbose mode

      ======================================================================

            sundar Sundararajan Athijegannathan
            popovsunw Popov Popov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: