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

jdb jumps to the end of the functions stack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.0
    • core-svc
    • None
    • generic
    • solaris_7

      jdb jumps to the end of the functions stack if command eval(print, ...) is called to view value of a variable in the current stack function.
      To reproduce:
      * compile class below
      * in jdb
      * stop at FunctionStack:14
      * run FunctionStack
      * where
      Gives 22 functions in the stack
      * up
      .
      . 10 times
      .
      * up
      * where
      Gives 11 functions in the stack
      * eval stLevel
      * where
      Gives 22 functions in the stack


      =========================================
      class FunctionStack {

          static int amountOfCalls;

          FunctionStack (int _amountOfCalls) {
              amountOfCalls = _amountOfCalls;
          }

          int MakeStack(int stLevel) {
              if (stLevel < amountOfCalls)
                  this.MakeStack(++stLevel);
              System.out.println("Level: " + stLevel);
              return stLevel;
          }
          
          public static void main(String args[]) {
              FunctionStack fs = new FunctionStack(20);
              fs.MakeStack(0);
          }
      }



      It shows up on Solaris_JDK_1.3-b07

      alexei.volkov@Eng 2000-03-23

            Unassigned Unassigned
            avolkovorcl Alexei Volkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: