JDK-6952105 : TEST_BUG: testcase failure, not very often, com/sun/jdi/SuspendThreadTest.java
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 7,8u20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-05-13
  • Updated: 2014-04-07
  • Resolved: 2014-02-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b04Fixed
Related Reports
Relates :  
Description
This failure happened on windows 32bit server, did not repeat itself but this information may be helpful.

--------------------------------------------------
TESTFAIL:com/sun/jdi/SuspendThreadTest.java
JDK under test: (C:\temp\jprt\T1\T\221937~1.OHA\TESTPR~1\WINDOW~1.0-P)
java version "1.7.0-201005102219.ohair.jdk"
Java(TM) SE Runtime Environment (build 1.7.0-201005102219.ohair.jdk-jprtadm_2010_05_12_19_40-b00)
Java HotSpot(TM) Server VM (build 18.0-b04, mixed mode)


ACTION: build -- Passed. All files up to date
REASON: User specified action: run build TestScaffold VMConnection TargetListener TargetAdapter
TIME:   0.0 seconds
messages:
command: build TestScaffold VMConnection TargetListener TargetAdapter
reason: User specified action: run build TestScaffold VMConnection TargetListener TargetAdapter
elapsed time (seconds): 0.0

ACTION: compile -- Passed. Compilation successful
REASON: User specified action: run compile -g SuspendThreadTest.java
TIME:   0.141 seconds
messages:
command: compile -g C:\temp\jprt\T1\T\221937.ohair\source\test\com\sun\jdi\SuspendThreadTest.java
reason: User specified action: run compile -g SuspendThreadTest.java
elapsed time (seconds): 0.141

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build SuspendThreadTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: SuspendThreadTest: failed
REASON: User specified action: run main SuspendThreadTest
TIME:   5.859 seconds
messages:
command: main SuspendThreadTest
reason: User specified action: run main SuspendThreadTest
elapsed time (seconds): 5.859
STDOUT:
JVM version:1.7.0-201005102219.ohair.jdk
JDI version: 1.6
JVM description: Java Debug Interface (Reference Implementation) version 1.6
Java Debug Wire Protocol (Reference Implementation) version 1.6
JVM Debug Interface version 1.1
JVM version 1.7.0-201005102219.ohair.jdk (Java HotSpot(TM) Client VM, mixed mode, sharing)
Howdy!
Got BreakpointEvent: 0, debuggeeCount = 0
STDERR:
run args: [SuspendThreadTarg]
failure: test hung
done with loop
java.lang.Exception: SuspendThreadTest: failed
	at SuspendThreadTest.runTests(SuspendThreadTest.java:169)
	at TestScaffold.startTests(TestScaffold.java:429)
	at SuspendThreadTest.main(SuspendThreadTest.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:613)
	at com.sun.javatest.regtest.MainAction$SameVMThread.run(MainAction.java:632)
	at java.lang.Thread.run(Thread.java:717)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test


TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: SuspendThreadTest: failed
--------------------------------------------------
Failure on windoes:

--------------------------------------------------
TEST: com/sun/jdi/SuspendThreadTest.java
JDK under test: (C:\temp\jprt\T1\T\021604~1.SS1\TESTPR~1\WINDOW~1.0-P)
java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-jprtadm_2010_08_24_11_05-b00)
Java HotSpot(TM) Client VM (build 19.0-b06-201008240216.ss145989.tl-pit-2d-awt-swin, mixed mode, sharing)


ACTION: build -- Passed. All files up to date
REASON: User specified action: run build TestScaffold VMConnection TargetListener TargetAdapter 
TIME:   0.0 seconds
messages:
command: build TestScaffold VMConnection TargetListener TargetAdapter
reason: User specified action: run build TestScaffold VMConnection TargetListener TargetAdapter 
elapsed time (seconds): 0.0

ACTION: compile -- Passed. Compilation successful
REASON: User specified action: run compile -g SuspendThreadTest.java 
TIME:   0.094 seconds
messages:
command: compile -g C:\temp\jprt\T1\T\021604.ss145989\source\jdk\test\com\sun\jdi\SuspendThreadTest.java
reason: User specified action: run compile -g SuspendThreadTest.java 
elapsed time (seconds): 0.094

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build SuspendThreadTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: SuspendThreadTest: failed
REASON: User specified action: run main SuspendThreadTest 
TIME:   44.639 seconds
messages:
command: main SuspendThreadTest
reason: User specified action: run main SuspendThreadTest 
elapsed time (seconds): 44.639
STDOUT:
JVM version:1.7.0-internal
JDI version: 1.6
JVM description: Java Debug Interface (Reference Implementation) version 1.6 
Java Debug Wire Protocol (Reference Implementation) version 1.6
JVM Debug Interface version 1.1
JVM version 1.7.0-internal (Java HotSpot(TM) Client VM, mixed mode, sharing)
Howdy!
Got BreakpointEvent: 0, debuggeeCount = 0
Got BreakpointEvent: 1, debuggeeCount = 2196049193
Got BreakpointEvent: 2, debuggeeCount = 2702688236
Got BreakpointEvent: 3, debuggeeCount = 3381788082
Got BreakpointEvent: 4, debuggeeCount = 4465268563
Got BreakpointEvent: 5, debuggeeCount = 5236767142
Got BreakpointEvent: 6, debuggeeCount = 7148488960
STDERR:
run args: [SuspendThreadTarg]
failure: test hung
done with loop
java.lang.Exception: SuspendThreadTest: failed
	at SuspendThreadTest.runTests(SuspendThreadTest.java:169)
	at TestScaffold.startTests(TestScaffold.java:429)
	at SuspendThreadTest.main(SuspendThreadTest.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:613)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
	at java.lang.Thread.run(Thread.java:729)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test


TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: SuspendThreadTest: failed
--------------------------------------------------
A failure on windows 2000

--------------------------------------------------
TEST: com/sun/jdi/SuspendThreadTest.java
JDK under test: (C:\temp\jprt\T1\T\181720~1.OHA\TESTPR~1\WINDOW~1.0-P)
openjdk version "1.7.0-201009221817.ohair.jdk"
OpenJDK Runtime Environment (build 1.7.0-201009221817.ohair.jdk-jprtadm_2010_09_22_14_16-b00)
Java HotSpot(TM) Client VM (build 19.0-b05, mixed mode, sharing)


ACTION: build -- Passed. All files up to date
REASON: User specified action: run build TestScaffold VMConnection TargetListener TargetAdapter 
TIME:   0.0 seconds
messages:
command: build TestScaffold VMConnection TargetListener TargetAdapter
reason: User specified action: run build TestScaffold VMConnection TargetListener TargetAdapter 
elapsed time (seconds): 0.0

ACTION: compile -- Passed. Compilation successful
REASON: User specified action: run compile -g SuspendThreadTest.java 
TIME:   0.093 seconds
messages:
command: compile -g C:\temp\jprt\T1\T\181720.ohair\source\test\com\sun\jdi\SuspendThreadTest.java
reason: User specified action: run compile -g SuspendThreadTest.java 
elapsed time (seconds): 0.093

ACTION: build -- Passed. All files up to date
REASON: Named class compiled on demand
TIME:   0.0 seconds
messages:
command: build SuspendThreadTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: SuspendThreadTest: failed
REASON: User specified action: run main SuspendThreadTest 
TIME:   14.954 seconds
messages:
command: main SuspendThreadTest
reason: User specified action: run main SuspendThreadTest 
elapsed time (seconds): 14.954
STDOUT:
JVM version:1.7.0-201009221817.ohair.jdk
JDI version: 1.6
JVM description: Java Debug Interface (Reference Implementation) version 1.6 
Java Debug Wire Protocol (Reference Implementation) version 1.6
JVM Debug Interface version 1.1
JVM version 1.7.0-201009221817.ohair.jdk (Java HotSpot(TM) Client VM, mixed mode, sharing)
Howdy!
Got BreakpointEvent: 0, debuggeeCount = 0
Got BreakpointEvent: 1, debuggeeCount = 3935480314
STDERR:
run args: [SuspendThreadTarg]
failure: test hung
done with loop
java.lang.Exception: SuspendThreadTest: failed
	at SuspendThreadTest.runTests(SuspendThreadTest.java:169)
	at TestScaffold.startTests(TestScaffold.java:429)
	at SuspendThreadTest.main(SuspendThreadTest.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:613)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
	at java.lang.Thread.run(Thread.java:729)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test


TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: SuspendThreadTest: failed
--------------------------------------------------

Comments
The failure did not reproduce in the jdk8/b117 same-binaries run: http://sqeweb.us.oracle.com/jsn/nightly/reg/test_stabilization/2013_11_b117/summary.html
12-12-2013

I have been running this test >6000 times on windows 32-bit with no failures. I can find no references in aurora to this test failure in jdk8. Not that that proves anything, but I'd like close this bug and reenble the test (remove from ProblemList.txt).
31-10-2013