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

jdb dump command crashes while displaying static string

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Duplicate
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: core-svc
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

       Sample Program


      import java.applet.*;
      import java.awt.*;

      public class sample1 extends Applet implements Runnable
      {
      public static void main(String args[])
      {
      Frame frame = new Frame("sampleFrame");

      frame.show();
      frame.hide();
      }

      public void run()
      {
      }
      }



      The Problem

      To demonstrate the problem, run "jdb sample1" and then enter the
      following jdb commands:


         stop in sample1.main
         run
         next
         dump Frame



      The dump command will cause a crash in java_g.exe with an invalid memory
      reference.

      Our Diagnosis

      After building a debuggable version of Agent.dll, we know that the error
      occurs in agent.c, in the function named
      sun_tools_debug_Agent_getSlotObject, line 287 in the 1.1.2 beta version
      of the source code delivered to us on 09APR97.

        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: