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

com/sun/jdi/InvokeHangTest.java fails with "Debuggee appears to be hung"

    XMLWordPrintable

Details

    • b15
    • x86_64
    • os_x

    Description

      The following test failed in the JDK19 CI:

      com/sun/jdi/InvokeHangTest.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(5/146)----------
      command: driver InvokeHangTest
      reason: User specified action: run driver InvokeHangTest
      Mode: agentvm
      Agent id: 18
      elapsed time (seconds): 80.47
      ----------configuration:(16/2115)----------

      <snip>

      ----------System.err:(42/2753)----------
      [0ms] run args: [InvokeHangTarg]
        Debugger: Breakpoint hit at InvokeHangTarg:97
        Debugger: Invoking in threadinstance of InvokeHangTarg(name='Thread 1', id=291)
      [80371ms] failure: Debuggee appears to be hung
      java.lang.Exception: InvokeHangTest: failed; bkpts = 1
      at InvokeHangTest.runTests(InvokeHangTest.java:278)
      at TestScaffold.startTests(TestScaffold.java:433)
      at InvokeHangTest.main(InvokeHangTest.java:145)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:1589)

      com.sun.jdi.VMDisconnectedException
      at jdk.jdi/com.sun.tools.jdi.TargetVM.waitForReply(TargetVM.java:304)
      at jdk.jdi/com.sun.tools.jdi.VirtualMachineImpl.waitForTargetReply(VirtualMachineImpl.java:1176)
      at jdk.jdi/com.sun.tools.jdi.PacketStream.waitForReply(PacketStream.java:89)
      at jdk.jdi/com.sun.tools.jdi.JDWP$ObjectReference$InvokeMethod.waitForReply(JDWP.java:4838)
      at jdk.jdi/com.sun.tools.jdi.ObjectReferenceImpl.invokeMethod(ObjectReferenceImpl.java:410)
      at InvokeHangTest.doInvoke(InvokeHangTest.java:153)
      at InvokeHangTest.breakpointReached(InvokeHangTest.java:199)
      at TestScaffold$EventHandler.notifyEvent(TestScaffold.java:194)
      at TestScaffold$EventHandler.run(TestScaffold.java:278)
      at java.base/java.lang.Thread.run(Thread.java:1589)
      JavaTest Message: Test threw exception: java.lang.Exception
      [80397ms] failure: Exception
      JavaTest Message: shutting down test

      [80397ms] FAILED: Exception occured in eventHandler: com.sun.jdi.VMDisconnectedException: connection is closed
      com.sun.jdi.VMDisconnectedException: connection is 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$EventRequest$Set.enqueueCommand(JDWP.java:7104)
      at jdk.jdi/com.sun.tools.jdi.JDWP$EventRequest$Set.process(JDWP.java:7074)
      at jdk.jdi/com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.set(EventRequestManagerImpl.java:229)
      at jdk.jdi/com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnabled(EventRequestManagerImpl.java:194)
      at jdk.jdi/com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.enable(EventRequestManagerImpl.java:179)
      at InvokeHangTest.breakpointReached(InvokeHangTest.java:204)
      at TestScaffold$EventHandler.notifyEvent(TestScaffold.java:194)
      at TestScaffold$EventHandler.run(TestScaffold.java:278)
      at java.base/java.lang.Thread.run(Thread.java:1589)
      ----------System.out:(10/724)----------
      vmOpts: '-Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S27793/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4c77ad86-5a7b-46a4-b43a-f6bef3595f25/runs/fce5fb04-4a16-4fe1-b13c-a2ee88fd61b4/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa'
      javaOpts: '-Dmain.wrapper=Virtual -XX:-VerifyContinuations'
      JVM version:19-ea
      JDI version: 19.0
      JVM description: Java Debug Interface (Reference Implementation) version 19.0
      Java Debug Wire Protocol (Reference Implementation) version 19.0
      JVM Debug Interface version 19.0
      JVM version 19-ea (Java HotSpot(TM) 64-Bit Server VM, mixed mode, sharing)
      Howdy!
      bkpts = 1
      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: InvokeHangTest: failed; bkpts = 1


      There is an existing unresolved bug for the same test:

      JDK-8218463 com/sun/jdi/InvokeHangTest.java fail "java.lang.Exception: InvokeHangTest: failed; bkpts = 64"

      This bug has a different failure mode.

      Attachments

        Issue Links

          Activity

            People

              cjplummer Chris Plummer
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: