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

jdb dump command crashes while displaying static string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.1.2
    • core-svc
    • generic
    • generic

       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.

            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: