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

jdk/test/com/sun/jdi/BadHandshakeTest.java should retry if tcp port is taken

    XMLWordPrintable

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b57

      Backports

        Description

        [Exit0] ERROR: transport error 202: bind failed: Address already in use
        [Exit0] ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
        [Exit0] JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:730]
        java.lang.RuntimeException: Unable to start debugee
        at BadHandshakeTest.main(BadHandshakeTest.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)

        jdk/test/com/sun/jdi/BadHandshakeTest.java:
            96 * - pick a TCP port
            97 * - Launch a server debuggee: server=y,suspend=y,address=${port}
            98 * - run it to VM death
            99 * - verify we saw no error
           100 */
           101 public static void main(String args[]) throws Exception {
           102 int port = Utils.getFreePort();
           103
           104 String address = String.valueOf(port);

        Looks like a test bug in Utils.getFreePort().

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ykantser Yekaterina Kantserova (Inactive)
                Reporter:
                vlivanov Vladimir Ivanov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: