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

com/sun/jdi/JdwpOnThrowTest.java failed with "transport error 202: bind failed: Address already in use"

    XMLWordPrintable

Details

    • b23
    • aarch64
    • linux

    Backports

      Description

        The following test failed in the JDK22 CI:

        com/sun/jdi/JdwpOnThrowTest.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(7/293)----------
        command: main JdwpOnThrowTest
        reason: User specified action: run main/othervm JdwpOnThrowTest
        started: Tue Oct 24 05:56:12 UTC 2023
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules jdk.jdi
        finished: Tue Oct 24 05:56:14 UTC 2023
        elapsed time (seconds): 1.751
        ----------configuration:(3/35)----------
        Boot Layer
          add modules: jdk.jdi

        ----------System.out:(3/3247)----------
        Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+21-1634/linux-aarch64-debug.jdk/jdk-22/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/afbc6042-3a24-4198-9369-18c663a3f74c-S32582/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8aec1c42-fcf5-4055-97d4-dc189b05f6e0/runs/bec9c16c-68a9-4f6f-9dd2-125908f00b85/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/2/com/sun/jdi/JdwpOnThrowTest.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+21-1634/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/afbc6042-3a24-4198-9369-18c663a3f74c-S32582/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8aec1c42-fcf5-4055-97d4-dc189b05f6e0/runs/bec9c16c-68a9-4f6f-9dd2-125908f00b85/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/2/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+21-1634/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/21/35/bundles/linux-aarch64/jdk-21_linux-aarch64_bin.tar.gz/jdk-21 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/afbc6042-3a24-4198-9369-18c663a3f74c-S32582/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8aec1c42-fcf5-4055-97d4-dc189b05f6e0/runs/bec9c16c-68a9-4f6f-9dd2-125908f00b85/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -XX:+UseG1GC -agentlib:jdwp=transport=dt_socket,address=localhost:45685,server=y,suspend=y,onthrow=Ex,launch=exit ThrowCaughtException ]
        [debuggee]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+21-1634/linux-aarch64-debug.jdk/jdk-22/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/afbc6042-3a24-4198-9369-18c663a3f74c-S32582/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8aec1c42-fcf5-4055-97d4-dc189b05f6e0/runs/bec9c16c-68a9-4f6f-9dd2-125908f00b85/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/2/com/sun/jdi/JdwpOnThrowTest.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+21-1634/src.full/open/test/jdk/com/sun/jdi:/opt/mach5/mesos/work_dir/slaves/afbc6042-3a24-4198-9369-18c663a3f74c-S32582/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8aec1c42-fcf5-4055-97d4-dc189b05f6e0/runs/bec9c16c-68a9-4f6f-9dd2-125908f00b85/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/2/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-22+21-1634/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar -Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/21/35/bundles/linux-aarch64/jdk-21_linux-aarch64_bin.tar.gz/jdk-21 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/afbc6042-3a24-4198-9369-18c663a3f74c-S32582/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8aec1c42-fcf5-4055-97d4-dc189b05f6e0/runs/bec9c16c-68a9-4f6f-9dd2-125908f00b85/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa -XX:+UseG1GC -agentlib:jdwp=transport=dt_socket,address=localhost:45685,server=y,suspend=y,onthrow=Ex,launch=exit ThrowCaughtException
        [debuggee] Start
        ----------System.err:(26/1601)----------
        [debuggee] ERROR: transport error 202: bind failed: Address already in use
        [debuggee] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
        java.lang.RuntimeException: ERROR: failed to attach
        at JdwpOnThrowTest.main(JdwpOnThrowTest.java:85)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1570)
        Caused by: java.net.ConnectException: Connection refused
        at java.base/sun.nio.ch.Net.connect0(Native Method)
        at java.base/sun.nio.ch.Net.connect(Net.java:589)
        at java.base/sun.nio.ch.Net.connect(Net.java:578)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
        at java.base/java.net.Socket.connect(Socket.java:752)
        at jdk.jdi/com.sun.tools.jdi.SocketTransportService.attach(SocketTransportService.java:263)
        at jdk.jdi/com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingConnector.java:119)
        at jdk.jdi/com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:83)
        at JdwpOnThrowTest.attach(JdwpOnThrowTest.java:129)
        at JdwpOnThrowTest.main(JdwpOnThrowTest.java:65)
        ... 4 more

        JavaTest Message: Test threw exception: java.lang.RuntimeException: ERROR: failed to attach
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: ERROR: failed to attach
        ----------rerun:(40/6895)*----------

        Attachments

          Issue Links

            Activity

              People

                jbechberger Johannes Bechberger
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: