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 <###@###.###>
======================================================================
- 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 <###@###.###>
======================================================================
- duplicates
-
JDK-4412024 SEGV in JvmdiWalkableThreads::get_frame_location
-
- Closed
-
- relates to
-
JDK-4413390 JVMDI spec: Stack frame functions don't return JVMDI_ERROR_OPAQUE_FRAME
-
- Closed
-