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

jdb crash stepping into constructor with a String literal argument

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.1.4
    • 1.1.2
    • core-svc
    • 1.1.4
    • generic, x86
    • generic, windows_nt
    • Not verified

       Stepping into java.lang.String.<init> during the call of a
      constructor with a String literal argument causes an invalid memory
      reference in java_g.exe.

      Sample Program:

      public class BugDemo {
           public static void main(String argv[]) {
              String foo = new String("foo");
          }
      }

      To illustrate this, enter the following commands in jdb:


      load BugDemo
      stop in BugDemo.main
      run BugDemo
      step
      next



      After the step, jdb indicates that the program is stopped in
      java.lang.String.<init>, presumably to construct the String
      corresponding to the literal "foo". If at this point, one enters a
      next command, an invalid memory reference occurs in java_g.exe.

            rfield Robert Field (Inactive)
            mmma Marvin Ma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: