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

The method GetCurrentFrame returns a bad frameid for JNI frames in build 81

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.3.0, 1.4.0
    • vm-legacy
    • None
    • rc1
    • generic, sparc
    • solaris_7, solaris_9
    • Verified

      The method GetCurrentFrame seems to return a bad frame id for JNI frames.

      - The function GetFrameLocation returns an error JVMDI_ERROR_OPAQUE_FRAME
        when it is called using the frameid returned by doing
        a GetCurrentFrame when the application is in a JNI frame.
        This used to work fine in j2se 1.4 build 80 with the method
        returning the class handle and methodid of the JNI method called.

      - The function GetCallerFrame returns an error JVMDI_ERROR_INVALID_FRAMEID
        when it is called using the frameid returned by doing a
        GetCurrentFrame when the application is in a JNI frame.
        This used to work fine in j2se 1.4 build 80


      I have attached a test case that has Java calling native. The makefile
      will do the builds and produce c2java.class

      To reproduce the problem:
      /net/sparcworks/export/set/sparcworks2/dbx_70_nightly/dev/buildbin/Derived-sparc-S2-opt/bin/dbx c2java.class
      > stop in c2java.nativemethod
      > run

      (at this point dbx produces an assertion as an error has occured in the JVMDI
       code)



      Name: pvR10198 Date: 03/13/2002


      This bug also affects the following tests from testbase_nsk:

          nsk/jvmdi/GetFrameLocation/frameloc001
          nsk/jvmdi/GetCallerFrame/callframe001

      Pavel Vysotski <###@###.###>
      ======================================================================

            kbr Kenneth Russell (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: