JDK-8159806 : /sun/tools/jhsdb/BasicLauncherTest.java fails on Mac OS
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • Submitted: 2016-06-17
  • Updated: 2018-01-17
  • Resolved: 2016-10-24
Related Reports
Blocks :  
Duplicate :  
Description
/sun/tools/jhsdb/BasicLauncherTest.java fails on Mac OS with the output below:

Starting jstack against 48585
----------System.err:(34/1838)----------
Attaching to process 48545, please wait...
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
 stdout: [Attaching to process ID 48585, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 9-ea+122
Not available on Darwin
];
 stderr: []
 exitValue = 0

java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'No deadlocks found' missing from stdout/stderr 

	at BasicLauncherTest.launch(BasicLauncherTest.java:137)
	at BasicLauncherTest.launch(BasicLauncherTest.java:146)
	at BasicLauncherTest.main(BasicLauncherTest.java:175)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
Caused by: java.lang.RuntimeException: 'No deadlocks found' missing from stdout/stderr 

	at jdk.testlibrary.OutputAnalyzer.shouldContain(OutputAnalyzer.java:106)
	at BasicLauncherTest.launch(BasicLauncherTest.java:133)
	... 8 more


Comments
This issue has been fixed by JDK-8155009, hence duping to it. I was seeing a timeout similar to JDK-8168397 here. I will use JDK-8168397 for the same.
24-10-2016

I assume "full blown build" means an exploded image? The normal thing we would run and test is a JDK/JRE image, not an exploded image.
21-10-2016

Looks like a dup of https://bugs.openjdk.java.net/browse/JDK-8029590 (SA: pstack implementation is required on macosx to achieve parity with other platforms)
20-10-2016

I meant the full blown build (non images).
20-10-2016

What do you mean by "the normal fastdebug build" ??
20-10-2016

Once this issue is fixed, this testcase has to be unquarantined on Mac.
20-10-2016

I am not seeing this problem when using the 'images' fastdebug build. I am seeing the problem with the normal fastdebug build.
20-10-2016