The following test failed in the jdk-19-loomvt CI:
vmTestbase/nsk/jdi/VirtualMachine/dispose/dispose005/TestDescription.java
Here's a log file snippet:
==> nsk/jdi/VirtualMachine/dispose/dispose005 TESTING ENDS
--> debugger: waiting for the debuggee to finish ...
debugee.stderr> **> dispose005a: waiting for an instruction from the debugger ...
debugee.stderr> **> dispose005a: 'quit' recieved
# 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:455)
at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:435)
at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:464)
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 ------------
The following stacktrace is for failure analysis.
nsk.share.TestFailure:
at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:432)
at nsk.share.Log.complain(Log.java:403)
at nsk.share.jdi.Debugee.printThreadsInfo(Debugee.java:629)
at nsk.share.jdi.Debugee.killDebugee(Debugee.java:640)
at nsk.share.jdi.LocalLaunchedDebugee.killDebugee(Binder.java:1052)
at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:436)
at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:464)
at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:48)
at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:122)
com.sun.jdi.VMDisconnectedException: Connection closed
at jdk.jdi/com.sun.tools.jdi.TargetVM.send(TargetVM.java:293)
at jdk.jdi/com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:1172)
at jdk.jdi/com.sun.tools.jdi.PacketStream.send(PacketStream.java:79)
at jdk.jdi/com.sun.tools.jdi.JDWP$VirtualMachine$AllThreads.enqueueCommand(JDWP.java:319)
at jdk.jdi/com.sun.tools.jdi.JDWP$VirtualMachine$AllThreads.process(JDWP.java:310)
at jdk.jdi/com.sun.tools.jdi.VMState.allThreads(VMState.java:207)
at jdk.jdi/com.sun.tools.jdi.VirtualMachineImpl.allThreads(VirtualMachineImpl.java:458)
at nsk.share.jdi.Debugee.printThreadsInfo(Debugee.java:598)
at nsk.share.jdi.Debugee.killDebugee(Debugee.java:640)
at nsk.share.jdi.LocalLaunchedDebugee.killDebugee(Binder.java:1052)
at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:436)
at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:464)
at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:48)
at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:122)
binder> Killing debuggee by forcing target VM to exit
binder> Ignore VMDisconnectedException while forcing debuggee VM to exit:
com.sun.jdi.VMDisconnectedException: Connection closed
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:(17/1117)----------
java.lang.IllegalThreadStateException: process has not exited
at java.base/java.lang.ProcessImpl.exitValue(ProcessImpl.java:561)
at java.base/java.lang.ProcessImpl.waitFor(ProcessImpl.java:575)
at nsk.share.jdi.LocalLaunchedDebugee.waitForDebugee(Binder.java:1061)
at nsk.share.jpda.DebugeeProcess.waitFor(DebugeeProcess.java:201)
at nsk.jdi.VirtualMachine.dispose.dispose005.runThis(dispose005.java:382)
at nsk.jdi.VirtualMachine.dispose.dispose005.run(dispose005.java:115)
at nsk.jdi.VirtualMachine.dispose.dispose005.main(dispose005.java:110)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:1585)
JavaTest Message: Test threw exception: java.lang.IllegalThreadStateException: process has not exited
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.IllegalThreadStateException: process has not exited
----------rerun:(37/6204)*----------