-
Bug
-
Resolution: Fixed
-
P4
-
1.4.1
-
mantis
-
generic
-
generic
-
Verified
Name: pvR10198 Date: 05/28/2002
The following test from testbase_nsk crashes the Hotspot VM
(build 1.4.1-beta-b13) on all platforms in all modes:
nsk/jvmdi/IsMethodNative/isnative002
The test exercises JVMDI function IsMethodNative(clazz, method, isNativePtr).
The test checks if the function returns:
- JVMDI_ERROR_INVALID_CLASS if clazz is null
- JVMDI_ERROR_INVALID_METHODID if method is null
- JVMDI_ERROR_NULL_POINTER if isNativePtr is null
To reproduce the bug run script in GammaBase/Bugs/<this bug number> directory:
sh doit.sh <JAVA_HOME>
Running the test with verbose option reveals that call
IsMethodNative(clazz, method, NULL) causes the crash:
% sh doit.sh <JAVA_HOME> -v
java version "1.4.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b13)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b13, mixed mode)
>>> invalid class check ...
>>> invalid method check ...
>>> null pointer check ...
Unexpected Signal : 11 occurred at PC=0xFE301988
Function=[Unknown. Nearest: JVM_RaiseSignal+0x344C8]
Library=/export/ld55/java/dest/jdk1.4.1-b13/solaris-sparc/jre/lib/sparc/client/libjvm.so
Current Java thread:
at isnative002.check(Native Method)
at isnative002.run(isnative002.java:30)
at isnative002.main(isnative002.java:26)
Dynamic libraries:
0x10000 /export/ld25/java/dest/jdk1.4.1/solaris-sparc/bin/java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
0xfe000000 /export/ld55/java/dest/jdk1.4.1-b13/solaris-sparc/jre/lib/sparc/client/libjvm.so
0xff2d0000 /usr/lib/libCrun.so.1
0xff1d0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff300000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff070000 /export/ld55/java/dest/jdk1.4.1-b13/solaris-sparc/jre/lib/sparc/native_threads/libhpi.so
0xff040000 /export/ld55/java/dest/jdk1.4.1-b13/solaris-sparc/jre/lib/sparc/libverify.so
0xfe7c0000 /export/ld55/java/dest/jdk1.4.1-b13/solaris-sparc/jre/lib/sparc/libjava.so
0xff020000 /export/ld55/java/dest/jdk1.4.1-b13/solaris-sparc/jre/lib/sparc/libzip.so
0xfe690000 /usr/lib/locale/ru_RU.KOI8-R/ru_RU.KOI8-R.so.2
0xfe4e0000 ./sparc/libisnative002.so
Local Time = Mon May 27 17:27:03 2002
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002E6 01
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-beta-b13 mixed mode)
#
# An error report file has been saved as hs_err_pid9740.log.
# Please refer to the file for further information.
#
Abort
Exit Code: 134
(Error ID: os.cpp, 742)
======================================================================