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

[Graal] Tests which set too restrictive security manager fail with Graal

    XMLWordPrintable

Details

    • b03

    Description

      java/util/concurrent/atomic/AtomicUpdaters.java fails in Graal mode when security manager without permissions is set.

      reason: User specified action: run main/othervm AtomicUpdaters UseSM
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 0.468
      ----------configuration:(0/0)----------
      ----------System.out:(2/160)----------
      Testing with a SecurityManager present
      Uncaught exception at /home/katya/work/JavaSE/Hotspot/ws/hs10.graal.new/hotspot/src/share/vm/jvmci/jvmciCompiler.cpp:140
      ----------System.err:(21/1915)----------
      java.lang.ExceptionInInitializerError
              at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime(HotSpotJVMCIRuntime.java:83)
              at jdk.internal.vm.ci/jdk.vm.ci.runtime.JVMCI.initializeRuntime(Native Method)
              at jdk.internal.vm.ci/jdk.vm.ci.runtime.JVMCI.<clinit>(JVMCI.java:58)
      Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessClassInPackage.jdk.vm.ci.runtime")
              at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
              at java.base/java.security.AccessController.checkPermission(AccessController.java:895)
              at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
              at java.base/java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1534)
              at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:680)
              at java.base/java.lang.ClassLoader$1.run(ClassLoader.java:678)
              at java.base/java.security.AccessController.doPrivileged(Native Method)
              at java.base/java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:678)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.hotspot.HotSpotGraalJVMCIServiceLocator$Shared.getProvider(HotSpotGraalJVMCIServiceLocator.java:42)
              at jdk.internal.vm.compiler@10-internal/org.graalvm.compiler.hotspot.HotSpotGraalJVMCIServiceLocator.getProvider(HotSpotGraalJVMCIServiceLocator.java:65)
              at jdk.internal.vm.ci/jdk.vm.ci.services.JVMCIServiceLocator.getProviders(JVMCIServiceLocator.java:88)
              at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCICompilerConfig.getCompilerFactory(HotSpotJVMCICompilerConfig.java:90)
              at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.<init>(HotSpotJVMCIRuntime.java:290)
              at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.<init>(HotSpotJVMCIRuntime.java:65)
              at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime$DelayedInit.<clinit>(HotSpotJVMCIRuntime.java:73)
              ... 3 more



      Attachments

        Issue Links

          Activity

            People

              kvn Vladimir Kozlov
              epavlova Ekaterina Pavlova
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: