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

java.exe crashes responding to CMD_GET_STACK_VALUE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • core-svc
    • x86
    • windows_nt



      Name: clC74495 Date: 06/02/99


      I can get java.exe to crash 100% running a jdb session on a very simple Java program.
      I have reduced the original program source to the bare minimum code that will show the
      problem (so don't look for any sense in the code :-)

      The problem only happens with Java 2 (1.1.X works fine). Compile the following class,
      run jdb, step to the last line in main() and, while on the last line, ask jdb to show you the
      local variables--crash! Same as with our debugger :-) The crash happens when the debugger
      sends the VM a CMD_GET_STACK_VALUE for slot 3.

      I'm using the jdb that is installed with Java 2 JDK (not the one that comes with JBug).

      class TrivialApplication
      {
      static boolean flag = false;

      public static void main(String args[])
      {
      int i = 1;

      try
      {
      if (flag)
      throw new NullPointerException();
      }
      catch (NullPointerException e)
      {
      e = null;
      }

      if (flag)
      {
      i = 1;
      System.out.println("Hello");
      }

      int j = 1;
      }
      }
      (Review ID: 83378)
      ======================================================================

            ghirschsunw Gordon Hirsch (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: