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

VM with JIT crashes executing recursive method invocation

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b04
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description



      Name: kaC94536 Date: 11/10/99



      The following test crushes Linux VM:

      ----------------------------- test.java ------------------------

      public class test {

        static void Runner() {
          Runner();
        }

        public static void main(String arg[]) {
      try{
      Runner();
      } catch (Throwable e) {
           System.out.println("Ok " + e);
      }
        }
      }

      -------------------------------- output --------------------------

      $ /public/jdk/jdk1.2.2/linux/bin/java -fullversion
      java full version "1.2.2-RC1"
      $ /public/jdk/jdk1.2.2/linux/bin/java -Djava.compiler=javacomp test
      Segmentation fault (core dumped)

      ------------------------------------------------------------------

      Being run without JIT VM does everithing well:

      -------------------------------- output --------------------------

      $ /public/jdk/jdk1.2.2/linux/bin/java test
      Warning: JIT compiler "sunwjit" not found. Will use interpreter.
      Ok java.lang.StackOverflowError

      ======================================================================

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            caustinsunw Calvin Austin (Inactive)
            Reporter:
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: