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

steppint off end of method with jdb causes a crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.1
    • tools
    • None
    • sparc
    • solaris_2.5.1



      Name: el35337 Date: 01/17/97


        Typing "next" on the last line of a method causes jdb to crash.
        Here is the traceback on Windows, there is a similar one on Solaris.

      > stop in junk2:proc
      Breakpoint set in junk2.proc
      > run
      run junk
      hello 1running ...
      main[1]

      Breakpoint hit: junk2.proc (junk2:5)
      main[1] clear junk2:5
      Breakpoint cleared at junk2: 5
      main[1] next
      main[1] hello from junk2:2

      Breakpoint hit: junk2.proc (junk2:4)
      main[1] next
      Internal exception:
      java.net.SocketException: Socket read failed
              at java.net.SocketInputStream.read(SocketInputStream.java:92)
              at
      java.io.BufferedInputStream.fill(BufferedInputStream.java:110)

      Fatal exception: java.net.SocketException: Socket read failed
              at
      java.io.BufferedInputStream.read(BufferedInputStream.java:124)
      java.net.SocketException: Socket read failed
              at java.net.SocketInputStream.read(SocketInputStream.java:92)
              at
      java.io.BufferedInputStream.fill(BufferedInputStream.java:110)
              at
      java.io.BufferedInputStream.read(BufferedInputStream.java:124)
              at java.io.FilterInputStream.read(FilterInputStream.java:55)
              at sun.tools.debug.AgentIn.run(AgentIn.java:46)
              at java.lang.Thread.run(Thread.java:336)
              at java.io.DataInputStream.readInt(DataInputStream.java:193)
              at sun.tools.debug.RemoteAgent.getReply(RemoteAgent.java:395)
              at
      sun.tools.debug.RemoteAgent.stepNextThread(RemoteAgent.java:1140)
              at sun.tools.debug.RemoteThread.next(RemoteThread.java:197)
              at sun.tools.ttydebug.TTY.next(TTY.java:426)
              at sun.tools.ttydebug.TTY.executeCommand(TTY.java:1246)
              at sun.tools.ttydebug.TTY.<init>(TTY.java:1359)
              at sun.tools.ttydebug.TTY.main(TTY.java:1436)
      Failed accessing debugging session on cookie.camb.inmet.com: invalid
      password.

      Here are the sources for junk.java and junk2.java

      import java.lang.System;
      import junk2;

      public class junk {

          public static void main(String argv[]) {
              System.out.println("hello 1");
              junk2.proc(2);
              System.out.println("bye");
          }

      }

      import java.lang.System;
      import junk2;
      public class junk2 {
        public static void proc(int n) {
          System.out.println("hello from junk2:" + n);
        }
      }

      Intermetrics ###@###.###
      ======================================================================

            rfield Robert Field (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: