Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356863

vmTestbase/nsk/jdi/EventQueue/remove/remove004/TestDescription.java TIMEOUT while waiting for event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 11, 24, 25
    • hotspot
    • svc
    • generic
    • generic

      test vmTestbase/nsk/jdi/EventQueue/remove/remove004/TestDescription.java is failing with the following logs:

      ```
      [23:39:59.620] --> debugger: -----t2: eventSet = eventQueue.remove(); expects: InterruptedException
      [23:57:57.745] debugee.stderr> [23:57:57.743] **> debuggee: after: Thread.sleep
      [23:57:57.749] # ERROR: ##> debugger: ERROR: -----t2: Exception : nsk.jdi.EventQueue.remove.remove004$JDITestRuntimeException: JDITestRuntimeException : ** return from eventQueue.remove(); **
      The following stacktrace is for failure analysis.
      nsk.share.TestFailure: ##> debugger: ERROR: -----t2: Exception : nsk.jdi.EventQueue.remove.remove004$JDITestRuntimeException: JDITestRuntimeException : ** return from eventQueue.remove(); **
      at nsk.share.Log.logExceptionForFailureAnalysis(Log.java:356)
      at nsk.share.Log.complain(Log.java:327)
      at nsk.jdi.EventQueue.remove.remove004.log3(remove004.java:120)
      at nsk.jdi.EventQueue.remove.remove004$Threadremove004.run(remove004.java:527)
      [23:57:57.759] --> debugger: -----t2: method 'run' exit
      [23:58:13.943] # ERROR: ##> debugger: ERROR: thread2 is not alive
      [23:58:13.947]
      ==> nsk/jdi/EventQueue/remove/remove004 TESTING ENDS
      [23:58:13.947] --> debugger: waiting for VMDeathEvent
      [23:58:34.72] # ERROR: ##> debugger: ERROR: Exception : nsk.jdi.EventQueue.remove.remove004$JDITestRuntimeException: JDITestRuntimeException : ** EXCEPTION while waiting for event ** : nsk.jdi.EventQueue.remove.remove004$JDITestRuntimeException: JDITestRuntimeException : ** TIMEOUT while waiting for event **
      [23:58:34.72] # ERROR: ##> debugger: test phase has not finished normally: debuggee is still alive
      [23:58:34.72] --> debugger: ......forcing: vm.exit();
      TEST FAILED
      [23:58:34.76] # 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:356)
      at nsk.share.Log.complain(Log.java:327)
      at nsk.share.jpda.DebugeeProcess.complain(DebugeeProcess.java:439)
      at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:419)
      at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:448)
      at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:48)
      at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:122)
      [23:58:34.78] ------------ 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:356)
      at nsk.share.Log.complain(Log.java:327)
      at nsk.share.jdi.Debugee.printThreadsInfo(Debugee.java:620)
      at nsk.share.jdi.Debugee.killDebugee(Debugee.java:631)
      at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:420)
      at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:448)
      at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:48)
      at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:122)
      com.sun.jdi.VMDisconnectedException: connection is closed
      at jdk.jdi/com.sun.tools.jdi.TargetVM.send(TargetVM.java:300)
      at jdk.jdi/com.sun.tools.jdi.VirtualMachineImpl.sendToTarget(VirtualMachineImpl.java:1141)
      at jdk.jdi/com.sun.tools.jdi.PacketStream.send(PacketStream.java:77)
      at jdk.jdi/com.sun.tools.jdi.JDWP$VirtualMachine$AllThreads.enqueueCommand(JDWP.java:313)
      at jdk.jdi/com.sun.tools.jdi.JDWP$VirtualMachine$AllThreads.process(JDWP.java:304)
      at jdk.jdi/com.sun.tools.jdi.VMState.allThreads(VMState.java:209)
      at jdk.jdi/com.sun.tools.jdi.VirtualMachineImpl.allThreads(VirtualMachineImpl.java:431)
      at nsk.share.jdi.Debugee.printThreadsInfo(Debugee.java:589)
      at nsk.share.jdi.Debugee.killDebugee(Debugee.java:631)
      at nsk.share.jpda.DebugeeProcess.close(DebugeeProcess.java:420)
      at nsk.share.jpda.DebugeeProcess.finalize(DebugeeProcess.java:448)
      at nsk.share.FinalizableObject.finalizeAtExit(FinalizableObject.java:48)
      at nsk.share.Finalizer$FinalizerThread.run(Finalizer.java:122)
      [23:58:34.79] binder> Killing debuggee by forcing target VM to exit
      [23:58:34.80] binder> Ignore VMDisconnectedException while forcing debuggee VM to exit:
      com.sun.jdi.VMDisconnectedException: connection is closed


      #>
      #> SUMMARY: Following errors occured
      #> during test execution:
      #>
      [23:58:34.81] # ERROR: ##> debugger: ERROR: -----t2: Exception : nsk.jdi.EventQueue.remove.remove004$JDITestRuntimeException: JDITestRuntimeException : ** return from eventQueue.remove(); **
      [23:58:34.81] # ERROR: ##> debugger: ERROR: thread2 is not alive
      [23:58:34.81] # ERROR: ##> debugger: ERROR: Exception : nsk.jdi.EventQueue.remove.remove004$JDITestRuntimeException: JDITestRuntimeException : ** EXCEPTION while waiting for event ** : nsk.jdi.EventQueue.remove.remove004$JDITestRuntimeException: JDITestRuntimeException : ** TIMEOUT while waiting for event **
      [23:58:34.81] # ERROR: ##> debugger: test phase has not finished normally: debuggee is still alive
      [23:58:34.81] # ERROR: binder> Debugee VM has not exited correctly: trying to kill it
      ```

      Observed on JDK 24,25 and 11. Not specific to OS and CPU.

            Unassigned Unassigned
            ibereziuk Ivan Bereziuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: