JDK-8220175 : serviceability/dcmd/framework/VMVersionTest.java fails with a timeout
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 11,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-03-05
  • Updated: 2019-10-10
  • Resolved: 2019-06-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 11 JDK 13 JDK 14
11.0.6-oracleFixed 13 b27Fixed 14Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
test VMVersionTest.jmx(): success
debugee.stdout> Test Java process started!
debugee.stdout> Waiting for the quit command from the test ...
Running DCMD 'VM.version' through 'MainClassJcmdExecutor'
Executing command '[/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.525/linux-x64-debug.jdk/jdk-13/fastdebug/bin/jcmd, VMVersionTest$Process, VM.version]'
Timeout refired 480 times
Command returned with exit code 134
---------------- stdout ----------------

---------------- stderr ----------------

----------------------------------------

debugee.stdout> 'quit' received
test VMVersionTest.mainClass(): failure
java.lang.RuntimeException: '.*(?:HotSpot|OpenJDK).*VM.*' missing from stdout/stderr 

	at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:270)
	at VMVersionTest.run(VMVersionTest.java:49)
	at VMVersionTest.mainClass(VMVersionTest.java:62)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
	at org.testng.TestRunner.privateRun(TestRunner.java:773)
	at org.testng.TestRunner.run(TestRunner.java:623)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
	at org.testng.SuiteRunner.run(SuiteRunner.java:259)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
	at org.testng.TestNG.run(TestNG.java:1018)
	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:835)
Running DCMD 'VM.version' through 'PidJcmdExecutor'
Executing command '[/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.525/linux-x64-debug.jdk/jdk-13/fastdebug/bin/jcmd, 30957, VM.version]'
Command returned with exit code 0
---------------- stdout ----------------
30957:
Java HotSpot(TM) 64-Bit Server VM version 13-internal+0-jdk13-jdk.525
JDK 13.0.0

---------------- stderr ----------------

----------------------------------------

test VMVersionTest.pid(): success

===============================================
serviceability/dcmd/framework/VMVersionTest.java
Total tests run: 4, Failures: 1, Skips: 0
===============================================

----------System.err:(18/901)----------
 stdout: [];
 stderr: []
 exitValue = 134

java.lang.Exception: failures: 1
	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:835)

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

STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1
Comments
Fix Request (OpenJDK 11u): Please approve backporting this to OpenJDK 11u. The JDK 13 patch applies cleanly to JDK 11u and builds fine with it. Risk should be low as it only adds some extra error checking to break out of the loop.
08-10-2019

Probably the same issue as JDK-8223600
18-06-2019

Looks like this is failing several times a month, so I'm added the maintainer-pain label.
18-06-2019

Bumping to P3 due to tier3 noise. Perhaps it needs to be ProblemListed?
23-05-2019