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

runtime/Dictionary/ProtectionDomainCacheTest.java fails with FileAlreadyExistsException: /tmp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 20
    • 20
    • hotspot

      Reproduce:
      The bug can be reproduced on Linux if /tmp is a symbolic link directory.

      Symptom:
      ```
       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.nio.file.FileAlreadyExistsException: /tmp
              at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:94)
              at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
              at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
              at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:438)
              at java.base/java.nio.file.Files.createDirectory(Files.java:699)
              at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:806)
              at java.base/java.nio.file.Files.createDirectories(Files.java:752)
              at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:72)
              at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:106)
              at jdk.test.lib.util.JarUtils.createJarFile(JarUtils.java:131)
              at ProtectionDomainCacheTest$Test.main(ProtectionDomainCacheTest.java:79)
      ]
       exitValue = 1

      java.lang.RuntimeException: 'PD in set is not alive' missing from stdout/stderr
              at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
              at ProtectionDomainCacheTest.main(ProtectionDomainCacheTest.java:111)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
              at java.base/java.lang.reflect.Method.invoke(Method.java:578)
              at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
              at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test
      ```

            jpai Jaikiran Pai
            jiefu Jie Fu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: