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

2 com/sun/jdi failed due to "SocketException: Connection reset"

XMLWordPrintable

    • x86_64
    • os_x_10.15

      The following two tests failed in the JDK19 CI:

      com/sun/jdi/WatchFramePop.java
      com/sun/jdi/StringConvertTest.java

      Here's a snippet from the WatchFramePop.java log file:

      ----------System.out:(23/4733)*----------
      Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/macosx-x64-debug.jdk/jdk-19/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/com/sun/jdi/WatchFramePop.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/jdk/com/sun/jdi:/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=12.5 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -XX:+CreateCoredumpOnCrash -XX:+UseZGC -agentlib:jdwp=transport=dt_socket,server=y,suspend=y WatchFramePopTarg ]
      [debuggee]:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/macosx-x64-debug.jdk/jdk-19/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/com/sun/jdi/WatchFramePop.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/jdk/com/sun/jdi:/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/0/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=12.5 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -XX:+CreateCoredumpOnCrash -XX:+UseZGC -agentlib:jdwp=transport=dt_socket,server=y,suspend=y WatchFramePopTarg
      [debuggee] Listening for transport dt_socket at address: 52539
      [jdb] java.net.SocketException: Connection reset
      [jdb] at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:320)
      [jdb] at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:347)
      [jdb] at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:800)
      [jdb] at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
      [jdb] at jdk.jdi/com.sun.tools.jdi.SocketTransportService.handshake(SocketTransportService.java:133)
      [jdb] at jdk.jdi/com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:273)
      [jdb] at jdk.jdi/com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:119)
      [jdb] at jdk.jdi/com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:83)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:557)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:367)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.Env.init(Env.java:63)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.TTY.main(TTY.java:1167)
      [jdb]
      [jdb] Fatal error:
      [jdb] Unable to attach to target VM.
      [jdb]
      =======================================
      Exception thrown during test execution: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      =======================================
      ----------System.err:(16/1151)*----------
      [debuggee] Debugger failed to attach: timeout during handshake
      java.lang.RuntimeException: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      at lib.jdb.Jdb.waitForPrompt(Jdb.java:207)
      at lib.jdb.Jdb.waitForPrompt(Jdb.java:157)
      at lib.jdb.JdbTest.setup(JdbTest.java:128)
      at lib.jdb.JdbTest.run(JdbTest.java:94)
      at WatchFramePop.main(WatchFramePop.java:69)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:828)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      ----------rerun:(41/7018)*----------


      Here's a snippet from the StringConvertTest.java log file:

      ----------System.out:(23/4741)*----------
      Command line: [/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/macosx-x64-debug.jdk/jdk-19/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/1/com/sun/jdi/StringConvertTest.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/jdk/com/sun/jdi:/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/1/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=12.5 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -XX:+CreateCoredumpOnCrash -XX:+UseZGC -agentlib:jdwp=transport=dt_socket,server=y,suspend=y StringConvertTarg ]
      [debuggee]:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/macosx-x64-debug.jdk/jdk-19/fastdebug/bin/java -cp /System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/1/com/sun/jdi/StringConvertTest.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/jdk/com/sun/jdi:/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/1/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+11-644/src.full/open/test/lib:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=12.5 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/c82600aa-2448-475c-8c08-6f02a5b3f3af-S13330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/578ab16d-90bd-476d-93a6-689f5ecb0a1e/runs/09a4ca58-e241-4098-be19-19113ed87a47/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -XX:+CreateCoredumpOnCrash -XX:+UseZGC -agentlib:jdwp=transport=dt_socket,server=y,suspend=y StringConvertTarg
      [debuggee] Listening for transport dt_socket at address: 52496
      [jdb] java.net.SocketException: Connection reset
      [jdb] at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:320)
      [jdb] at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:347)
      [jdb] at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:800)
      [jdb] at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
      [jdb] at jdk.jdi/com.sun.tools.jdi.SocketTransportService.handshake(SocketTransportService.java:133)
      [jdb] at jdk.jdi/com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:273)
      [jdb] at jdk.jdi/com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:119)
      [jdb] at jdk.jdi/com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:83)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.java:557)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:367)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.Env.init(Env.java:63)
      [jdb] at jdk.jdi/com.sun.tools.example.debug.tty.TTY.main(TTY.java:1167)
      [jdb]
      [jdb] Fatal error:
      [jdb] Unable to attach to target VM.
      [jdb]
      =======================================
      Exception thrown during test execution: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      =======================================
      ----------System.err:(16/1160)*----------
      [debuggee] Debugger failed to attach: timeout during handshake
      java.lang.RuntimeException: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      at lib.jdb.Jdb.waitForPrompt(Jdb.java:207)
      at lib.jdb.Jdb.waitForPrompt(Jdb.java:157)
      at lib.jdb.JdbTest.setup(JdbTest.java:128)
      at lib.jdb.JdbTest.run(JdbTest.java:94)
      at StringConvertTest.main(StringConvertTest.java:123)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:828)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: waitForPrompt timed out after 600 seconds, looking for '[a-zA-Z0-9_-][a-zA-Z0-9_-]*\\[[1-9][0-9]*\\] [ >]*$', in 1 lines
      ----------rerun:(41/7046)*----------


      Here's more details about the test runs:

      com/sun/jdi/WatchFramePop.java:

      > elapsed=884389 0\:14\:44.389
      > end=Thu Feb 24 01\:47\:05 GMT 2022
      > start=Thu Feb 24 01\:32\:17 GMT 2022

      com/sun/jdi/StringConvertTest.java:

      > elapsed=508887 0\:08\:28.887
      > end=Thu Feb 24 01\:17\:09 GMT 2022
      > start=Thu Feb 24 01\:08\:39 GMT 2022

      So there's no execution overlap between the two tests.
      That doesn't rule out a port collision with another JDI
      test that ran at the same time, but when that happens,
      usually both tests fail.

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: