JDK-8152679 : DeadlockDetectionTest.java fails due to expected output missing
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-03-24
  • Updated: 2016-04-28
  • Resolved: 2016-04-11
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 b116Fixed
Related Reports
Relates :  
Relates :  
Description
The test serviceability/sa/DeadlockDetectionTest.java started failing in the hs nightly of 2016-03-23. The reason of the failure is that the output expected by the test is not found. Please see the excerpt below:

Attaching to process ID 83984, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 9-internal+0-2016-03-23-043254.amurillo.jdk9-hs-jigsaw-m3-snapshot
Not available on Darwin

Attaching to process ID 83984, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 9-internal+0-2016-03-23-043254.amurillo.jdk9-hs-jigsaw-m3-snapshot
Not available on Darwin

----------System.err:(25/1284)----------
 stdout: [Attaching to process ID 83984, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 9-internal+0-2016-03-23-043254.amurillo.jdk9-hs-jigsaw-m3-snapshot
Not available on Darwin
];
 stderr: []
 exitValue = 0

java.lang.RuntimeException: 'Found a total of 1 deadlock.' missing from stdout/stderr 

	at jdk.test.lib.OutputAnalyzer.shouldContain(OutputAnalyzer.java:138)
	at DeadlockDetectionTest.main(DeadlockDetectionTest.java:105)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:804)

JavaTest Message: Test threw exception: java.lang.RuntimeException: 'Found a total of 1 deadlock.' missing from stdout/stderr 

JavaTest Message: shutting down test


The failure appears only on macosx. The likely cause of the failure is that the the functionality necessary to perform the deadlock analysis is not available. Maybe changing the test to not execute on  macosx is sufficient to solve the problem.
Comments
This is a duplicate of JDK-8029590: SA: pstack implementation is required on macosx to achieve parity with other platforms���
31-03-2016