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

[REDO] JDK-8271949 dumppath in -XX:FlightRecorderOptions does not affect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      jfr
    • Introduced In Version:
      18
    • Resolved In Build:
      b27
    • Verification:
      Verified

      Backports

        Description

        Following the integration of JDK-8271949 this test:

        jfr/api/consumer/security/TestStreamingRemote.java

        is now failing with:

        ----------System.err:(44/3143)----------
         stdout: [Repository: /opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13967/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d6a9fc85-1758-47a3-8de3-5727897a9cc7/runs/cb4f5a46-5a37-47a5-a65a-8b5becf337d4/testoutput/test-support/jtreg_open_test_jdk_jdk_jfr/tmp/2021_10_17_16_04_57_18662
        ];
         stderr: [WARNING: A command line option has enabled the Security Manager
        WARNING: The Security Manager is deprecated and will be removed in a future release
        Exception in thread "main" java.lang.ExceptionInInitializerError
        at jdk.jfr/jdk.jfr.internal.JVM.<clinit>(JVM.java:55)
        at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.process(EventDirectoryStream.java:118)
        at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.execute(AbstractEventStream.java:266)
        at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:289)
        at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream$1.run(AbstractEventStream.java:286)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.run(AbstractEventStream.java:286)
        at jdk.jfr/jdk.jfr.internal.consumer.AbstractEventStream.start(AbstractEventStream.java:237)
        at jdk.jfr/jdk.jfr.internal.consumer.EventDirectoryStream.start(EventDirectoryStream.java:108)
        at jdk.jfr.api.consumer.security.TestStreamingRemote$Test.main(TestStreamingRemote.java:67)
        Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "." "write")
        at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:485)
        at java.base/java.security.AccessController.checkPermission(AccessController.java:1068)
        at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:416)
        at java.base/java.lang.SecurityManager.checkWrite(SecurityManager.java:847)
        at java.base/java.io.File.canWrite(File.java:805)
        at jdk.jfr/jdk.jfr.internal.Options.setDumpPath(Options.java:123)
        at jdk.jfr/jdk.jfr.internal.Options.reset(Options.java:165)
        at jdk.jfr/jdk.jfr.internal.Options.<clinit>(Options.java:71)
        ... 10 more
        ]
         exitValue = 1

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ysuenaga Yasumasa Suenaga
                Reporter:
                dholmes David Holmes
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: