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

The nsk.share.jpda.SocketConnection should fail if socket was closed.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • core-svc
    • None
    • b21

    Description

      There are several failure with reason
      "Cannot invoke "String.equals(Object)" because "<local1>" is null"
      which really caused by reading the command from debugee via socket.
      Like:
      " String command = pipe.readln();

              if (!command.equals(AbstractDebuggeeTest.COMMAND_READY)) {
                  setSuccess(false);
                  log.complain("TEST BUG: unknown debuggee's command: " + command);

                  return false;
              }
      "
      The command is null when socket fails with EOFException which usually means that debugee has been crashed/exited or killed by timeout handler.

      However, it is not clear from the error log. So
      https://bugs.openjdk.org/browse/JDK-8310940 has different problems with the same NPE symptom.

      The fix update error handling to avoid this problem.

      Attachments

        Issue Links

          Activity

            People

              lmesnik Leonid Mesnik
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: