-
Bug
-
Resolution: Fixed
-
P3
-
17, 18
-
b29
-
x86_64
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8269462 | 18 | Alex Menkov | P3 | Resolved | Fixed | b04 |
JDK-8270655 | 17.0.1 | Alex Menkov | P3 | Resolved | Fixed | b03 |
The following test failed in the JDK18 CI:
serviceability/dcmd/framework/InvalidCommandTest.java
Here's a snippet from the log file:
test InvalidCommandTest.mainClass(): failure
nsk.share.Failure: Unable to read object from not established PipeIO Listener Thread connection
at nsk.share.jpda.SocketConnection.readObject(SocketConnection.java:514)
at nsk.share.jpda.SocketIOPipe.readln(SocketIOPipe.java:190)
at TestProcessLauncher.launch(TestProcessLauncher.java:71)
at InvalidCommandTest.mainClass(InvalidCommandTest.java:59)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
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:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
Running DCMD 'asdf' through 'PidJcmdExecutor'
Executing command '[c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+3-73\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\bin\\jcmd.exe, 33092, asdf]'
[2021-06-24T12:05:35.287232400Z] Gathering output for process 6612
debugee.stdout> Test Java process started!
[2021-06-24T12:05:36.287572500Z] Waiting for completion for process 6612
[2021-06-24T12:05:36.287572500Z] Waiting for completion finished for process 6612
Output and diagnostic info for process 6612 was saved into 'pid-6612-output.log'
[2021-06-24T12:05:36.303186100Z] Waiting for completion for process 6612
[2021-06-24T12:05:36.303186100Z] Waiting for completion finished for process 6612
Command returned with exit code 1
---------------- stdout ----------------
33092:
---------------- stderr ----------------
java.lang.IllegalArgumentException: Unknown diagnostic command
----------------------------------------
test InvalidCommandTest.pid(): success
===============================================
serviceability/dcmd/framework/InvalidCommandTest.java
Total tests run: 4, Passes: 3, Failures: 1, Skips: 0
===============================================
debugee.stdout> Waiting for the quit command from the test ...
#>
#> WARNING: switching log to verbose mode,
#> because error is complained
#>
debugee.stdout> Test Java process started!
debugee.stdout> Waiting for the quit command from the test ...
# ERROR: binder> Debugee VM has not exited correctly: trying to kill it
The following stacktrace is for failure analysis.
nsk.share.TestFailure: binder> Debugee VM has not exited correctly: trying to kill it
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:432)
at nsk.share.Log.complain(Log.java:403)
at nsk.share.jpda.DebugeeProcess.complain(DebugeeProcess.java:417)
at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:397)
at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:426)
at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:48)
at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:122)
------------ Try to print debuggee threads before killing process ------------
Can't print threads info because 'vm' is null
Killing debugee VM process
#>
#> SUMMARY: Following errors occured
#> during test execution:
#>
# ERROR: binder> Debugee VM has not exited correctly: trying to kill it
----------System.err:(14/872)----------
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:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
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
----------rerun:(45/7091)*----------
This looks like the same failure mode that the following bug tracks:
JDK-8268433 serviceability/dcmd/framework/VMVersionTest.java fails with Unable to send object throw not established PipeIO Listener Thread connection
serviceability/dcmd/framework/InvalidCommandTest.java
Here's a snippet from the log file:
test InvalidCommandTest.mainClass(): failure
nsk.share.Failure: Unable to read object from not established PipeIO Listener Thread connection
at nsk.share.jpda.SocketConnection.readObject(SocketConnection.java:514)
at nsk.share.jpda.SocketIOPipe.readln(SocketIOPipe.java:190)
at TestProcessLauncher.launch(TestProcessLauncher.java:71)
at InvalidCommandTest.mainClass(InvalidCommandTest.java:59)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
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:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
Running DCMD 'asdf' through 'PidJcmdExecutor'
Executing command '[c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-18+3-73\\windows-x64-debug.jdk\\jdk-18\\fastdebug\\bin\\jcmd.exe, 33092, asdf]'
[2021-06-24T12:05:35.287232400Z] Gathering output for process 6612
debugee.stdout> Test Java process started!
[2021-06-24T12:05:36.287572500Z] Waiting for completion for process 6612
[2021-06-24T12:05:36.287572500Z] Waiting for completion finished for process 6612
Output and diagnostic info for process 6612 was saved into 'pid-6612-output.log'
[2021-06-24T12:05:36.303186100Z] Waiting for completion for process 6612
[2021-06-24T12:05:36.303186100Z] Waiting for completion finished for process 6612
Command returned with exit code 1
---------------- stdout ----------------
33092:
---------------- stderr ----------------
java.lang.IllegalArgumentException: Unknown diagnostic command
----------------------------------------
test InvalidCommandTest.pid(): success
===============================================
serviceability/dcmd/framework/InvalidCommandTest.java
Total tests run: 4, Passes: 3, Failures: 1, Skips: 0
===============================================
debugee.stdout> Waiting for the quit command from the test ...
#>
#> WARNING: switching log to verbose mode,
#> because error is complained
#>
debugee.stdout> Test Java process started!
debugee.stdout> Waiting for the quit command from the test ...
# ERROR: binder> Debugee VM has not exited correctly: trying to kill it
The following stacktrace is for failure analysis.
nsk.share.TestFailure: binder> Debugee VM has not exited correctly: trying to kill it
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:432)
at nsk.share.Log.complain(Log.java:403)
at nsk.share.jpda.DebugeeProcess.complain(DebugeeProcess.java:417)
at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:397)
at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:426)
at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:48)
at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:122)
------------ Try to print debuggee threads before killing process ------------
Can't print threads info because 'vm' is null
Killing debugee VM process
#>
#> SUMMARY: Following errors occured
#> during test execution:
#>
# ERROR: binder> Debugee VM has not exited correctly: trying to kill it
----------System.err:(14/872)----------
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:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
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
----------rerun:(45/7091)*----------
This looks like the same failure mode that the following bug tracks:
- backported by
-
JDK-8269462 serviceability/dcmd/framework/InvalidCommandTest.java still fails after JDK-8268433
-
- Resolved
-
-
JDK-8270655 serviceability/dcmd/framework/InvalidCommandTest.java still fails after JDK-8268433
-
- Resolved
-
- relates to
-
JDK-8268433 serviceability/dcmd/framework/VMVersionTest.java fails with Unable to send object throw not established PipeIO Listener Thread connection
-
- Resolved
-
(1 links to)