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

jdb crash stepping into constructor with a String literal argument

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.1.4
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1.4
    • CPU:
      generic, x86
    • OS:
      generic, windows_nt
    • Verification:
      Not verified

      Description

       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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: