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

java -native fails trying to recall method which was completed abruptly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.2.2
    • hotspot
    • x86
    • linux

    Description



      Name: kaC94536 Date: 12/03/99



      The following test, being run on Linux with native threads, causes SIGSEGV
      and passes well with green_threads.

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

      public class test {

        public static void a() {
          try {
            int i = 0;
            i = 1 / i;
          } catch (Exception e) {
              System.out.println(e);
          }
        }

        public static void main(String argv[]) {
          test.a();
          test.a();
        }
      }

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

      $ java -native -version
      java version "1.2.2"
      Classic VM (build 1.2.2-G, native threads, javacomp)
      $ java -native test
      java.lang.ArithmeticException: / by zero
      method unknown
      SIGSEGV 11* segmentation violation
      $ java test
      java.lang.ArithmeticException: / by zero
      java.lang.ArithmeticException

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

      This failure concerns JCK test
      vm/instr/invokespecial/invokespecial021/invokespecial02102/invokespecial02102.html

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

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

      Attachments

        Issue Links

          Activity

            People

              hongzh Hong Zhang
              kanisimosunw Konstantin Anisimov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: