Infinite recursion from within finally clause (stack overflow) segfaults VM

XMLWordPrintable

    • Type: Backport
    • Resolution: Won't Fix
    • Priority: P4
    • 1.4-pool
    • Affects Version/s: None
    • Component/s: hotspot

      Compiling and running the following example segfaults the default
      VM in JDK 1.3.0rc1-S. With '-classic', the stack overflow is reported
      properly. The simpler definition, commented out, works OK. Apparently,
      it is important that the recursive call occur within a 'finally' clause.

      public class Fault {
        
        public static void main(String[] args) {
          Fault x = new Fault();
          x.foo();
        }

        /*
        boolean foo() {
          return foo();
        }
        */

        boolean foo() {
          try {
          }
          finally {
            return foo();
          }
        }

      }

            Assignee:
            Vaibhav Kulkarni (Inactive)
            Reporter:
            Tal Moscovitz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: