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

failure to create a libgraal JavaVM should result in a VM crash

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 16
    • 16
    • hotspot
    • b08

    Description

      Creating a libgraal JavaVM instance can fail for two types of reasons:

      1. The libjvmcicompiler.so file cannot be located or loaded, possibly due to an invalid value for the -XX:JVMCILibPath option.
      2. An internal bug in libjvmcicompiler.so causing JNI_CreateJavaVM to fail.

      Currently, both conditions result in a call to vm_exit_during_initialization which prints an error message and exits the VM process. For example:

      Error occurred during initialization of VM
      JNI_CreateJavaVM failed with return value -1000000007: /b/b/e/.tmp/tmpdpntkajk/graalvm/jre/lib/amd64/libjvmcicompiler.so

      However, to investigate issues of type 2, it's usually useful to have a hs_err crash log. As such, these conditions should exit the VM with a call to fatal() so that a hs_err file is produced.

      Attachments

        Activity

          People

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: