-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b29
-
generic
-
generic
-
Verified
Following nsk tests have GetThreadStatus problem:
nsk/jvmti/GetThreadStatus/thrstat003
nsk/jvmti/scenarios/sampling/SP01/sp01t002
nsk/jvmti/scenarios/sampling/SP01/sp01t003
nsk/jvmti/scenarios/sampling/SP01/sp01t001
###@###.### 2003-10-06
Name: ipR10196 Date: 07/28/2003
--------------------------------------
Test : nsk/jvmti/scenarios/sampling/SP01/sp01t001
TestBase : testbase_vm
VM : ClientVM, ServerVM
Mode : -Xmixed, -Xcomp, -Xint
Platform : x86, sparc, sparcv9
OS : SunOS 5.8, Redhat Linux 8.0, Windows 2000
JDK : 1.5.0-b10
----------------------------------------
The test will be available in release 21 of testbase_vm.
This test checks that GetThreadStatus() returns correct thread status
for not alive threads (i.e., not started and already finished threads).
This test reveals that for already finished thread wrong status
JVMTI_THREAD_STATUS_NOT_STARTED is returned instead of expected
status JVMTI_THREAD_STATUS_ZOMBIE.
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] [JAVA_OPTS]
where
-g - run test with java_g binaries
-v - run test in verbose mode
-t - trace test execution
Here is full test log:
====================================================================================
Run: nsk/jvmti/scenarios/sampling/SP01/sp01t001
Testing sync: threads ready
- sp01t001.c, 71: Testcase #1: check status of not alive threads
- sp01t001.c, 155: thread #0 (NotStarted):
- sp01t001.c, 168: status=JVMTI_THREAD_STATUS_NOT_STARTED (5), flag=0
- sp01t001.c, 155: thread #1 (Finished):
- sp01t001.c, 168: status=JVMTI_THREAD_STATUS_NOT_STARTED (5), flag=0
# ERROR: sp01t001.c, 179: Unexpected status of not alive thread #1 (Finished):
# got: JVMTI_THREAD_STATUS_NOT_STARTED (5), expected: JVMTI_THREAD_STATUS_ZOMBIE (0)
Java exit code: 97
====================================================================================
Ivan Popov <###@###.###>
======================================================================
nsk/jvmti/GetThreadStatus/thrstat003
nsk/jvmti/scenarios/sampling/SP01/sp01t002
nsk/jvmti/scenarios/sampling/SP01/sp01t003
nsk/jvmti/scenarios/sampling/SP01/sp01t001
###@###.### 2003-10-06
Name: ipR10196 Date: 07/28/2003
--------------------------------------
Test : nsk/jvmti/scenarios/sampling/SP01/sp01t001
TestBase : testbase_vm
VM : ClientVM, ServerVM
Mode : -Xmixed, -Xcomp, -Xint
Platform : x86, sparc, sparcv9
OS : SunOS 5.8, Redhat Linux 8.0, Windows 2000
JDK : 1.5.0-b10
----------------------------------------
The test will be available in release 21 of testbase_vm.
This test checks that GetThreadStatus() returns correct thread status
for not alive threads (i.e., not started and already finished threads).
This test reveals that for already finished thread wrong status
JVMTI_THREAD_STATUS_NOT_STARTED is returned instead of expected
status JVMTI_THREAD_STATUS_ZOMBIE.
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] [JAVA_OPTS]
where
-g - run test with java_g binaries
-v - run test in verbose mode
-t - trace test execution
Here is full test log:
====================================================================================
Run: nsk/jvmti/scenarios/sampling/SP01/sp01t001
Testing sync: threads ready
- sp01t001.c, 71: Testcase #1: check status of not alive threads
- sp01t001.c, 155: thread #0 (NotStarted):
- sp01t001.c, 168: status=JVMTI_THREAD_STATUS_NOT_STARTED (5), flag=0
- sp01t001.c, 155: thread #1 (Finished):
- sp01t001.c, 168: status=JVMTI_THREAD_STATUS_NOT_STARTED (5), flag=0
# ERROR: sp01t001.c, 179: Unexpected status of not alive thread #1 (Finished):
# got: JVMTI_THREAD_STATUS_NOT_STARTED (5), expected: JVMTI_THREAD_STATUS_ZOMBIE (0)
Java exit code: 97
====================================================================================
Ivan Popov <###@###.###>
======================================================================
- duplicates
-
JDK-4932344 jvmti/GetThreadStatus/thrstat003 gets RUNNABLE when it should get SLEEPING
-
- Closed
-
- relates to
-
JDK-4939894 JVMTI GetThreadStatus() returns wrong thread status.
-
- Resolved
-
-
JDK-4956965 atg and tomcat failed with b29
-
- Closed
-