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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: vm-legacy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      rc1
    • CPU:
      generic, sparc
    • OS:
      solaris_7, solaris_9
    • Verification:
      Verified

      Description

      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 <###@###.###>
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: