-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
5.0
-
sparc
-
solaris_8
Name: ipR10196 Date: 07/28/2003
--------------------------------------
Test : nsk/jvmti/scenarios/sampling/SP02/sp02t001
TestBase : testbase_vm
VM : ServerVM (32- and 64-bit)
Mode : -Xmixed, -Xcomp
Platform : sparc, sparcv9
OS : SunOS 5.8
JDK : 1.5.1-b10
----------------------------------------
The test will be available in release 21 of testbase_vm.
The following JVMTI thread and stack frame functions:
SuspendThread
SuspendThreadList
GetStackTrace
GetFrameCount
hang when called from agent thread in several JVMTI tests.
Here is fragment of the test trace:
<...>
- sp02t001.c, 72: Testcase #1: check status of not suspended threads
- sp02t001.c, 231: thread #0 (threadRunning):
- sp02t001.c, 243: >> NSK_CPP_STUB3(GetFrameCount, jvmti, threadsDesc[i].thread, &frameCount)
<test hangs>
This failure occurs only with ServerVM on solaris-sparc platform
in -Xmixed and -Xcomp modes against Tiger-b10.
The failure does not occur with ServerVM in -Xint mode or with ClientVM,
It was not revealed also on any platform other than solaris-sparc.
After hanging test is not killed by pressing Ctrl-C on console.
To reproduce the failure:
cd /net/sqesvr.sfbay/export/vsn/GammaBase/Bugs/<this bug number>
sh build.sh $JAVA_HOME [-g]
sh run.sh $JAVA_HOME [-g] [-v] [-t] -server -Xmixed
where
-g - run test with java_g binaries
-v - run test in verbose mode
-t - trace test execution
Here is full test log in "-server -Xmixed" mode:
====================================================================================
Run: nsk/jvmti/scenarios/sampling/SP02/sp02t001
Starting tested threads
Testing sync: threads ready
- sp02t001.c, 123: Prepare: find tested threads: 6
- sp02t001.c, 158: thread #5 (threadRunningNative): 23f25c
- sp02t001.c, 158: thread #4 (threadRunningInterrupted): 23f260
- sp02t001.c, 158: thread #3 (threadSleeping): 23f264
- sp02t001.c, 158: thread #2 (threadWaiting): 23f268
- sp02t001.c, 158: thread #1 (threadEntering): 23f26c
- sp02t001.c, 158: thread #0 (threadRunning): 23f270
- sp02t001.c, 72: Testcase #1: check status of not suspended threads
- sp02t001.c, 231: thread #0 (threadRunning):
<test hangs>
====================================================================================
Here is full test log in "-server -Xint" mode:
====================================================================================
Run: nsk/jvmti/scenarios/sampling/SP02/sp02t001
Starting tested threads
Testing sync: threads ready
- sp02t001.c, 123: Prepare: find tested threads: 6
- sp02t001.c, 158: thread #5 (threadRunningNative): ef9b4
- sp02t001.c, 158: thread #4 (threadRunningInterrupted): ef9b8
- sp02t001.c, 158: thread #3 (threadSleeping): ef9bc
- sp02t001.c, 158: thread #2 (threadWaiting): ef9c0
- sp02t001.c, 158: thread #1 (threadEntering): ef9c4
- sp02t001.c, 158: thread #0 (threadRunning): ef9c8
- sp02t001.c, 72: Testcase #1: check status of not suspended threads
- sp02t001.c, 231: thread #0 (threadRunning):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #1 (threadEntering):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #2 (threadWaiting):
- sp02t001.c, 248: frameCount: 3
- sp02t001.c, 258: stack depth: 3
- sp02t001.c, 231: thread #3 (threadSleeping):
- sp02t001.c, 248: frameCount: 2
- sp02t001.c, 258: stack depth: 2
- sp02t001.c, 231: thread #4 (threadRunningInterrupted):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #5 (threadRunningNative):
- sp02t001.c, 248: frameCount: 2
- sp02t001.c, 258: stack depth: 2
- sp02t001.c, 77: Suspend each thread
- sp02t001.c, 200: suspend thread #0 (threadRunning)
- sp02t001.c, 200: suspend thread #1 (threadEntering)
- sp02t001.c, 200: suspend thread #2 (threadWaiting)
- sp02t001.c, 200: suspend thread #3 (threadSleeping)
- sp02t001.c, 200: suspend thread #4 (threadRunningInterrupted)
- sp02t001.c, 200: suspend thread #5 (threadRunningNative)
- sp02t001.c, 82: Testcase #2: check status of suspended threads
- sp02t001.c, 231: thread #0 (threadRunning):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #1 (threadEntering):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #2 (threadWaiting):
- sp02t001.c, 248: frameCount: 3
- sp02t001.c, 258: stack depth: 3
- sp02t001.c, 231: thread #3 (threadSleeping):
- sp02t001.c, 248: frameCount: 2
- sp02t001.c, 258: stack depth: 2
- sp02t001.c, 231: thread #4 (threadRunningInterrupted):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #5 (threadRunningNative):
- sp02t001.c, 248: frameCount: 2
- sp02t001.c, 258: stack depth: 2
- sp02t001.c, 87: Resume each thread
- sp02t001.c, 205: resume thread #0 (threadRunning)
- sp02t001.c, 205: resume thread #1 (threadEntering)
- sp02t001.c, 205: resume thread #2 (threadWaiting)
- sp02t001.c, 205: resume thread #3 (threadSleeping)
- sp02t001.c, 205: resume thread #4 (threadRunningInterrupted)
- sp02t001.c, 205: resume thread #5 (threadRunningNative)
- sp02t001.c, 92: Testcase #3: check status of resumed threads
- sp02t001.c, 231: thread #0 (threadRunning):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #1 (threadEntering):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #2 (threadWaiting):
- sp02t001.c, 248: frameCount: 3
- sp02t001.c, 258: stack depth: 3
- sp02t001.c, 231: thread #3 (threadSleeping):
- sp02t001.c, 248: frameCount: 2
- sp02t001.c, 258: stack depth: 2
- sp02t001.c, 231: thread #4 (threadRunningInterrupted):
- sp02t001.c, 248: frameCount: 1
- sp02t001.c, 258: stack depth: 1
- sp02t001.c, 231: thread #5 (threadRunningNative):
- sp02t001.c, 248: frameCount: 2
- sp02t001.c, 258: stack depth: 2
Finishing tested threads
Java exit code: 95
====================================================================================
Ivan Popov <###@###.###>
======================================================================