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

(zipfs) jdk/jdk/nio/zipfs/TestLocOffsetFromZip64EF.java failing with ZipException:R0 on OL9

XMLWordPrintable

    • b11
    • x86_64, aarch64
    • linux

        If a Zip file is >=4gb in linux aarch64 Oracle 9.0 , it is failing looking up the the loc offset with the error :-

        test TestLocOffsetFromZip64EF.walkZipFSTest({}): failure
        java.util.zip.ZipException: R0
                at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readLocEXTT(ZipFileSystem.java:3171)
                at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readExtra(ZipFileSystem.java:3135)
                at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readCEN(ZipFileSystem.java:2831)
                at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.<init>(ZipFileSystem.java:2767)
                at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getFileAttributes(ZipFileSystem.java:550)
                at jdk.zipfs/jdk.nio.zipfs.ZipPath.readAttributes(ZipPath.java:771)
                at jdk.zipfs/jdk.nio.zipfs.ZipPath.readAttributes(ZipPath.java:781)
                at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.readAttributes(ZipFileSystemProvider.java:285)
                at java.base/java.nio.file.Files.readAttributes(Files.java:1848)
                at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:220)
                at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:277)
                at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:374)
                at java.base/java.nio.file.Files.walkFileTree(Files.java:2815)
                at java.base/java.nio.file.Files.walkFileTree(Files.java:2852)
                at TestLocOffsetFromZip64EF.walkZipFSTest(TestLocOffsetFromZip64EF.java:120)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
                at java.base/java.lang.reflect.Method.invoke(Method.java:578)
                at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
                at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
                at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
                at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
                at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
                at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
                at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
                at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
                at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
                at org.testng.TestRunner.privateRun(TestRunner.java:764)
                at org.testng.TestRunner.run(TestRunner.java:585)
                at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
                at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)


        Even the property zipinfo-time is set to false according to JDK-8255380, still it is failing particularly on Linux aarch64 9.0 while it is passing on linux aarch64 Oracle8.3 , linux aarch64 Oracle8.5 and macos.

        The test is passing after decreasing the file size to 3GB on Linux aarch64 9.0 also

              jpai Jaikiran Pai
              sshivang Shivangi Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: