-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2, 5.0
-
b11
-
generic
-
generic
-
Verified
Name: vpR10197 Date: 02/03/2003
------------------------------------------------------------------------------
Test : nsk/jdi/ThreadReference/popFrames/popframes004
Test Base : testbase_nsk
VM : java_g ServerVM, ClientVM
Mode : comp, int, mixed
Platform (s) : solx86, linux, solsparc, win
OS : 5.8, RH7.2, NT/2000
JDK : since 1.4.2-b05
------------------------------------------------------------------------------
The test from testbase_nsk checks up that finally blocks are not executed,
when the method com.sun.jdi.ThreadReference.popFrames() is invoked.
An assertion is hit intermittently with java_g since mantis-b05
Steps to reproduce:
===================
1. cd /net/sqesvr.eng/export/vsn/GammaBase/Bugs/{BugID}
2. sh doit.sh $JAVA_HOME
Below is output of the executing:
#debugee.stdout> # To suppress the following error report, specify this argument
#debugee.stdout> # after -XX: or in .hotspotrc: SuppressErrorAt=/hotspot\src\share\vm\prims\jvmdi.cpp:2161
#debugee.stdout> #
#debugee.stdout> # HotSpot Virtual Machine Error, assertion failure
#debugee.stdout> # Please report this error at
#debugee.stdout> # http://java.sun.com/cgi-bin/bugreport.cgi
#debugee.stdout> #
#debugee.stdout> # Java VM: Java HotSpot(TM) Server VM (1.4.2-beta-b15-debug mixed mode)
#debugee.stdout> #
#debugee.stdout> # assert(JvmdiInternal::is_thread_fully_suspended(get_thread(), v_false ), "Must be the current thread
or it's externally suspended")
#debugee.stdout> #
#debugee.stdout> # Error ID: D:/BUILD_AREA/jdk1.4.2/hotspot\src\share\vm\prims\jvmdi.cpp, 2161
#debugee.stdout> #
#debugee.stdout> # Problematic Thread: prio=5 tid=0x0074e668 nid=0xba4 runnable
#debugee.stdout> #
#debugee.stdout>
#debugee.stdout> Heap at VM Abort:
#debugee.stdout> Heap
#debugee.stdout> def new generation total 576K, used 290K [0x10270000, 0x10310000, 0x10980000)
#debugee.stdout> eden space 512K, 56% used [0x10270000, 0x102b8a00, 0x102f0000)
#debugee.stdout> from space 64K, 0% used [0x102f0000, 0x102f0000, 0x10300000)
#debugee.stdout> to space 64K, 0% used [0x10300000, 0x10300000, 0x10310000)
#debugee.stdout> tenured generation total 1408K, used 0K [0x10980000, 0x10ae0000, 0x14270000)
#debugee.stdout> the space 1408K, 0% used [0x10980000, 0x10980000, 0x10980200, 0x10ae0000)
#debugee.stdout> compacting perm gen total 16384K, used 1145K [0x14270000, 0x15270000, 0x18270000)
#debugee.stdout> the space 16384K, 6% used [0x14270000, 0x1438e798, 0x1438e800, 0x15270000)
#debugee.stdout> VM option '-ShowMessageBoxOnError'
##>
##> WARNING: switching log to verbose mode,
##> because error is complained
##>
#--> debugger: launching a debuggee :
#--> debugger: nsk.jdi.ThreadReference.popFrames.popframes004a
#binder> VirtualMachineManager: version 1.4
#binder> Finding connector: default
#binder> LaunchingConnector:
#binder> name: com.sun.jdi.CommandLineLaunch
#binder> description: Launches target using Sun Java VM command line and attaches to it
#binder> transport: com.sun.tools.jdi.SharedMemoryTransport@56a499
#binder> Connector arguments:
#binder> home=C:\hs_run\jdk\jdk142-b15\jre
#binder> vmexec=java_g
#binder> options=-server -XX:-ShowMessageBoxOnError
#binder> main=nsk.jdi.ThreadReference.popFrames.popframes004a -arch=wintel "-waittime=2" "-debugee.vmkind=java_g"
"-debugee.vmkeys=-server -XX:-ShowMessageBoxOnError"
#binder> quote="
#binder> suspend=true
#binder> Launching debugee
#binder> Redirecting VM output
#binder> Waiting for VM initialized
#binder> Initial VMStartEvent received: VMStartEvent in thread main
#--> debugger: debuggee launched
#--> debugger: invocation of the method runTest()
#--> debugger: received: ClassPrepareEvent for debuggeeClass
#--> debugger: ......setting BreakpointRequest (bpRequest) in main thread
#--> debugger: ......setting up a breakpoint:
#--> debugger: thread: instance of java.lang.Thread(name='main', id=1); class: class
nsk.jdi.ThreadReference.popFrames.popframes004a (loaded by instance of sun.misc.Launcher$AppClassLoader(id=52));
method: methodForCommunication; line: lineForComm
#--> debugger: a breakpoint has been set up
#--> debugger: bpRequest.enable();
#
#==> nsk/jdi/ThreadReference/popFrames/popframes004 TESTING BEGINS
#--> debugger: breakpointForCommunication
#--> debugger: ......setting breakpoint in breakpointMethod
#--> debugger: ......setting up a breakpoint:
#--> debugger: thread: instance of
nsk.jdi.ThreadReference.popFrames.popframes004a$Thread2popframes004a(name='thread2', id=72); class: class
nsk.jdi.ThreadReference.popFrames.popframes004a (loaded by instance of sun.misc.Launcher$AppClassLoader(id=52));
method: breakpointMethod; line: breakpointLine
#--> debugger: a breakpoint has been set up
#--> debugger: ......breakpointRequest2.enable();
#--> debugger: ......eventSet.resume();
#--> debugger: breakpointForCommunication
#--> debugger: bpRequest.disable();
#--> debugger: ......breakpointInMethod(breakpointRequest2);
#--> debugger: ---->: request().getProperty == one
#--> debugger:
#--> debugger: ......TEST CASE: try clause
#--> debugger:
#--> debugger: ......stackFrame = thread2Ref.frame(1);
#--> debugger: ......thread2Ref.popFrames(stackFrame);
## ERROR: ##> debugger: ERROR: VMDisconnectedException : com.sun.jdi.VMDisconnectedException
## ERROR: ##> debugger: test cancelled due to VMDisconnectedException
#--> debugger: ......trying: vm.process().destroy();
#TEST FAILED
#
#
##>
##> SUMMARY: Following errors occured
##> during test execution:
##>
## ERROR: ##> debugger: ERROR: VMDisconnectedException : com.sun.jdi.VMDisconnectedException
## ERROR: ##> debugger: test cancelled due to VMDisconnectedException
======================================================================
Name: dkR10014 Date: 02/04/2003
This bug also affects another testbase_nsk test:
nsk/jdb/pop/pop001
======================================================================
###@###.### 2003-06-25
I have observed this failure with the following testbase_nsk tests:
nsk/jvmdi/PopFrame/popframe009
nsk/jdi/ThreadReference/popFrames/popframes005
nsk/jdb/reenter/reenter001
- relates to
-
JDK-4954591 vmark & vtest hang with b28 when run with -client -Xprof
-
- Closed
-