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

VM with JIT crashes executing recursive method invocation

    XMLWordPrintable

Details

    • b04
    • x86
    • linux
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: