-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
sol-beta
-
generic, x86, sparc
-
generic, solaris_7, windows_nt
-
Not verified
######## JVMDI_EVENT_VM_INIT ########
Error call to StopThread()
error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java_g -------------------------------
Setting stopthrd005_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, assertion failure
#
# assert(thread->thread_state() == from, "coming from wrong thread state")
#
# Error ID: C:/hotspot1.3\src\share\vm\runtime\interfaceSupport.hpp, 91
#
exit 1
-------------------------- java -classic ------------------------
Setting stopthrd005_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
Error call to StopThread()
error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97
======================================================================
Name: icC57033 Date: 01/21/2000
The following JVMDI functions do not verify actual parameters:
GetThreadGroupChildren() - group is NULL, pointers are NULL
InterruptThread() - thread is NULL or invalid
SetBreakpoint() - duplicate breakpoint, bad location, native method
StopThread() - thread is dead, thread is invalid
Due to this, Hotspot VM 1.3rc1-S for win32 fails the tests
nsk/jvmdi/GetThreadGroupChildren/gethrdgrch001
nsk/jvmdi/GetThreadGroupChildren/gethrdgrch002
nsk/jvmdi/InterruptThread/intrpthrd002
nsk/jvmdi/InterruptThread/intrpthrd003
nsk/jvmdi/SetBreakpoint/setbrk001
nsk/jvmdi/SetBreakpoint/setbrk002
nsk/jvmdi/SetBreakpoint/setbrk003
nsk/jvmdi/StopThread/stopthrd004
nsk/jvmdi/StopThread/stopthrd005
from
testbase_nsk
To reproduce the bug run Korn shell scripts
doit-1.ksh <jdk_root_directory>
doit-2.ksh <jdk_root_directory>
doit-3.ksh <jdk_root_directory>
doit-4.ksh <jdk_root_directory>
doit-5.ksh <jdk_root_directory>
doit-6.ksh <jdk_root_directory>
doit-7.ksh <jdk_root_directory>
doit-8.ksh <jdk_root_directory>
doit-9.ksh <jdk_root_directory>
in
/net/sqesvr/vsn/GammaBase/Bugs/<this bug number>
Running on HS 1.3rc1-S the scripts output:
########################## doit-1.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gethrdgrch001.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:gethrdgrch001.lib
/out:gethrdgrch001.dll
gethrdgrch001.obj
Creating library gethrdgrch001.lib and object gethrdgrch001.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting gethrdgrch001_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
#
# Error ID: 4F533F57494E13120E43505002BE
#
abnormal program termination
exit 3
-------------------------- java_g -------------------------------
Setting gethrdgrch001_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, assertion failure
#
# assert(handle != 0, "JNI handle should not be null")
#
# Error ID: C:/hotspot1.3\src\share\vm\runtime\jniHandles.hpp, 147
#
exit 1
-------------------------- java -classic ------------------------
Setting gethrdgrch001_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
[1] + Done(139) ?
1545 Segmentation violation s:/ld24/java/hotspot/jdk1.3.0/win32/bin/java
exit 139
########################## doit-2.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
gethrdgrch002.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:gethrdgrch002.lib
/out:gethrdgrch002.dll
gethrdgrch002.obj
Creating library gethrdgrch002.lib and object gethrdgrch002.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting gethrdgrch002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
#
# Error ID: 4F533F57494E13120E43505002BE
#
abnormal program termination
exit 3
-------------------------- java_g -------------------------------
Setting gethrdgrch002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, assertion failure
#
# assert(threadCountPtr != 0, "threadCountPtr != NULL")
#
# Error ID: C:/hotspot1.3\src\share\vm\prims\jvmdi.cpp, 1901
#
exit 1
-------------------------- java -classic ------------------------
Setting gethrdgrch002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
######## JVMDI_EVENT_VM_DEATH ########
exit 95
########################## doit-3.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
intrpthrd002.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:intrpthrd002.lib
/out:intrpthrd002.dll
intrpthrd002.obj
Creating library intrpthrd002.lib and object intrpthrd002.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting intrpthrd002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
#
# Error ID: 4F533F57494E13120E43505002BE
#
abnormal program termination
exit 3
-------------------------- java_g -------------------------------
Setting intrpthrd002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
#
# unexpected exception occurred
#
# Error ID: C:/hotspot1.3\src\os\win32\vm\os_win32.cpp, 702
#
exit 1
-------------------------- java -classic ------------------------
Setting intrpthrd002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
[1] + Done(139) ?
424 Segmentation violation s:/ld24/java/hotspot/jdk1.3.0/win32/bin/java
exit 139
########################## doit-4.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
intrpthrd003.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:intrpthrd003.lib
/out:intrpthrd003.dll
intrpthrd003.obj
Creating library intrpthrd003.lib and object intrpthrd003.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting intrpthrd003_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
Error call to InterruptThread()
error: JVMDI_ERROR_NULL_POINTER
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java_g -------------------------------
Setting intrpthrd003_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, assertion failure
#
# assert(((jvmdiError)100) == ((jvmdiError)0), "not JVMDI_ERROR_NONE")
#
# Error ID: C:/hotspot1.3\src\share\vm\prims\jvmdi.cpp, 1694
#
exit 1
-------------------------- java -classic ------------------------
Setting intrpthrd003_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
[1] + Done(139) ?
1854 Segmentation violation s:/ld24/java/hotspot/jdk1.3.0/win32/bin/java
exit 139
########################## doit-5.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
setbrk001.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:setbrk001.lib
/out:setbrk001.dll
setbrk001.obj
Creating library setbrk001.lib and object setbrk001.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting setbrk001_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
1th SetBreakpoint() return wrong result
error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java_g -------------------------------
Setting setbrk001_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
1th SetBreakpoint() return wrong result
error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java -classic ------------------------
Setting setbrk001_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
######## JVMDI_EVENT_VM_DEATH ########
exit 95
########################## doit-6.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
setbrk002.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:setbrk002.lib
/out:setbrk002.dll
setbrk002.obj
Creating library setbrk002.lib and object setbrk002.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting setbrk002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
class : setbrk002
method : run([Ljava/lang/String;Ljava/io/PrintStream;)I
startLocation : 0
endLocation : 61
breakpoint location : 62
error SetBreakpoint() for wrong location 62
error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java_g -------------------------------
Setting setbrk002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
class : setbrk002
method : run([Ljava/lang/String;Ljava/io/PrintStream;)I
startLocation : 0
endLocation : 61
breakpoint location : 62
#
# HotSpot Virtual Machine Error, assertion failure
#
# assert(is_native() && bci == 0 || 0 <= bci && bci < code_size(), "illegal
bci")
#
# Error happened during: change breakpoints
#
# Error ID: C:/hotspot1.3\src\share\vm\oops\methodOop.cpp, 202
#
exit 1
-------------------------- java -classic ------------------------
Setting setbrk002_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
class : setbrk002
method : run([Ljava/lang/String;Ljava/io/PrintStream;)I
startLocation : 0
endLocation : 61
breakpoint location : 62
######## JVMDI_EVENT_VM_DEATH ########
exit 95
########################## doit-7.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
setbrk003.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:setbrk003.lib
/out:setbrk003.dll
setbrk003.obj
Creating library setbrk003.lib and object setbrk003.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting setbrk003_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
class : setbrk003
method :
setbrk003SetBreakpoint(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;II)
I
startLocation : 0
endLocation : -1
breakpoint location : 0
error SetBreakpoint() for location 0
error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java_g -------------------------------
Setting setbrk003_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
class : setbrk003
method :
setbrk003SetBreakpoint(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;II)
I
startLocation : 0
endLocation : -1
breakpoint location : 0
error SetBreakpoint() for location 0
error: JVMDI_ERROR_NONE
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java -classic ------------------------
Setting setbrk003_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
GetStaticMethodID() error
Exception in thread "main" java.lang.NoSuchMethodError: setbrk003SetBreakpoint?
at setbrk003.setbrk003startLocation(Native Method)
at setbrk003.run(setbrk003.java:38)
at setbrk003.main(setbrk003.java:21)
######## JVMDI_EVENT_VM_DEATH ########
exit 1
########################## doit-8.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
stopthrd004.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:stopthrd004.lib
/out:stopthrd004.dll
stopthrd004.obj
Creating library stopthrd004.lib and object stopthrd004.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Setting stopthrd004_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
Error call to StopThread()
error: JVMDI_ERROR_NONE
Thread #0: java.lang.ThreadDeath
######## JVMDI_EVENT_VM_DEATH ########
exit 97
-------------------------- java_g -------------------------------
Setting stopthrd004_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
#
# HotSpot Virtual Machine Error, assertion failure
#
# assert(thread->thread_state() == from, "coming from wrong thread state")
#
# Error ID: C:/hotspot1.3\src\share\vm\runtime\interfaceSupport.hpp, 91
#
exit 1
-------------------------- java -classic ------------------------
Setting stopthrd004_EventHook as event hook.
######## JVMDI_EVENT_VM_INIT ########
Error call to StopThread()
error: JVMDI_ERROR_NONE
Thread #0: java.lang.ThreadDeath
######## JVMDI_EVENT_VM_DEATH ########
exit 97
########################## doit-9.ksh #############################
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
stopthrd005.c
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/DEFAULTLIB:ws2_32.lib
/dll
/implib:stopthrd005.lib
/out:stopthrd005.dll
stopthrd005.obj
Creating library stopthrd005.lib and object stopthrd005.exp
java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)
-------------------------- java ---------------------------------
Se
- duplicates
-
JDK-4301692 test suspthread002 causes java_g crash
-
- Closed
-
-
JDK-4304390 test drrawmon002 causes java_g crash
-
- Closed
-
-
JDK-4304394 test rawmonenter002 causes java_g crash
-
- Closed
-
-
JDK-4304399 RawMonitorExit(NULL) causes java_g crash
-
- Closed
-
-
JDK-4304400 ResumeThread() for non-thread object causes java crash
-
- Closed
-
-
JDK-4304402 ResumeThread(NULL) causes java_g crash
-
- Closed
-
-
JDK-4304404 DestroyRawMonitor(NULL) causes java_g crash
-
- Closed
-
-
JDK-4304407 RawMonitorEnter(NULL) causes java_g crash
-
- Closed
-
-
JDK-4304408 RawMonitorExit(NULL) causes java_g crash
-
- Closed
-
-
JDK-4304410 ResumeThread(NULL) causes java_g crash
-
- Closed
-
-
JDK-4306478 some JVMDI functions do not verify actual params
-
- Closed
-
-
JDK-4308100 SetBreakpoint() for method from unmatched class causes java_g crash
-
- Closed
-
-
JDK-4308109 SuspendThread() for finished thread causes java_g crash
-
- Closed
-