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

AccessControlException during JVMCI compiler initialization in debug build

    Details

      Description

      Test: test/jdk/java/lang/ProcessBuilder/Basic.java
      Product(s) tested: 11.0.8 b06 debug, 11.0.8 b06, 11.0.8 b04, 11.0.8 b03 debug, 11.0.7 b01 debug
      OS/architecture: Generic [Tested on linux, windows, mac]
      Reproducible: Always
      Is it a Regression: No, reproducible in 11.0.7 b01 debug

      Exception/Error from Log:
      Exception during JVMCI compiler initialization:
      java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.vm.ci.hotspot")
      at java.security.AccessControlContext.checkPermission(java.base@11.0.8/AccessControlContext.java:472)
      at java.security.AccessController.checkPermission(java.base@11.0.8/AccessController.java:897)
      at java.lang.SecurityManager.checkPermission(java.base@11.0.8/SecurityManager.java:322)
      at java.lang.SecurityManager.checkPackageAccess(java.base@11.0.8/SecurityManager.java:1238)
      at java.lang.ClassLoader$1.run(java.base@11.0.8/ClassLoader.java:690)
      at java.lang.ClassLoader$1.run(java.base@11.0.8/ClassLoader.java:688)
      at java.security.AccessController.doPrivileged(java.base@11.0.8/Native Method)
      at java.lang.ClassLoader.checkPackageAccess(java.base@11.0.8/ClassLoader.java:688)
      at org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.handleException(jdk.internal.vm.compiler@11.0.8/CompilationTask.java:127)
      at org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.handleException(jdk.internal.vm.compiler@11.0.8/CompilationTask.java:84)
      at org.graalvm.compiler.core.CompilationWrapper.run(jdk.internal.vm.compiler@11.0.8/CompilationWrapper.java:196)
      at org.graalvm.compiler.hotspot.CompilationTask.runCompilation(jdk.internal.vm.compiler@11.0.8/CompilationTask.java:334)
      at org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(jdk.internal.vm.compiler@11.0.8/HotSpotGraalCompiler.java:144)
      at org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(jdk.internal.vm.compiler@11.0.8/HotSpotGraalCompiler.java:109)
      at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(jdk.internal.vm.ci@11.0.8/HotSpotJVMCIRuntime.java:697)
      java.util.ServiceConfigurationError: jdk.vm.ci.services.JVMCIServiceLocator: Provider org.graalvm.compiler.hotspot.HotSpotGraalJVMCIServiceLocator could not be instantiated
      at java.util.ServiceLoader.fail(java.base@11.0.8/ServiceLoader.java:581)
      at java.util.ServiceLoader$ProviderImpl.newInstance(java.base@11.0.8/ServiceLoader.java:803)
      at java.util.ServiceLoader$ProviderImpl.get(java.base@11.0.8/ServiceLoader.java:721)
      at java.util.ServiceLoader$3.next(java.base@11.0.8/ServiceLoader.java:1394)
      at jdk.vm.ci.services.JVMCIServiceLocator.getProviders(jdk.internal.vm.ci@11.0.8/JVMCIServiceLocator.java:107)
      at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.getVmEventListeners(jdk.internal.vm.ci@11.0.8/HotSpotJVMCIRuntime.java:431)
      at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.shutdown(jdk.internal.vm.ci@11.0.8/HotSpotJVMCIRuntime.java:724)
      Caused by: java.security.AccessControlException: access denied ("jdk.vm.ci.services.JVMCIPermission" "jvmci")
      at java.security.AccessControlContext.checkPermission(java.base@11.0.8/AccessControlContext.java:472)
      at java.security.AccessController.checkPermission(java.base@11.0.8/AccessController.java:897)
      at java.lang.SecurityManager.checkPermission(java.base@11.0.8/SecurityManager.java:322)
      at jdk.vm.ci.services.JVMCIServiceLocator.checkPermission(jdk.internal.vm.ci@11.0.8/JVMCIServiceLocator.java:45)
      at jdk.vm.ci.services.JVMCIServiceLocator.<init>(jdk.internal.vm.ci@11.0.8/JVMCIServiceLocator.java:62)
      at org.graalvm.compiler.hotspot.HotSpotGraalJVMCIServiceLocator.<init>(jdk.internal.vm.compiler@11.0.8/HotSpotGraalJVMCIServiceLocator.java:35)
      at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@11.0.8/Native Method)
      at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@11.0.8/NativeConstructorAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@11.0.8/DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(java.base@11.0.8/Constructor.java:490)
      at java.util.ServiceLoader$ProviderImpl$2.run(java.base@11.0.8/ServiceLoader.java:787)
      at java.security.AccessController.doPrivileged(java.base@11.0.8/Native Method)
      at java.util.ServiceLoader$ProviderImpl.newInstance(java.base@11.0.8/ServiceLoader.java:792)
      at java.util.ServiceLoader$ProviderImpl.get(java.base@11.0.8/ServiceLoader.java:721)
      at java.util.ServiceLoader$3.next(java.base@11.0.8/ServiceLoader.java:1394)
      at jdk.vm.ci.services.JVMCIServiceLocator.getProviders(jdk.internal.vm.ci@11.0.8/JVMCIServiceLocator.java:107)
      at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.getVmEventListeners(jdk.internal.vm.ci@11.0.8/HotSpotJVMCIRuntime.java:431)
      at jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.shutdown(jdk.internal.vm.ci@11.0.8/HotSpotJVMCIRuntime.java:724)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rsunderbabu Ramkumar Sunderbabu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: