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

ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • None
    • None
    • core-svc
    • 11
    • windows_10

    Description

      When calling

      java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$address

      there seems to be a regression regarding the value of address. Most succeed with Java 8, but fail for the same address value for Java 11 and 16.

      There are basically two issues:
      - parsing is bad and inconsistent across versions
      - Output does not correspond to the input.

      Root cause seems to be in https://github.com/AdoptOpenJDK/openjdk-jdk11u/blob/fa3ecefdd6eb14a910ae75b7c0aefb1cf8eedcce/src/jdk.jdi/share/classes/com/sun/tools/jdi/SocketTransportService.java#L218-L239

      HttpComponents Core had the same issue and solved it in https://github.com/apache/httpcomponents-core/pull/279

      Attachments

        Activity

          People

            amenkov Alex Menkov
            rfscholte Robert Scholte
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: