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

Pack200 extraction failure with invalid size

    XMLWordPrintable

Details

    Backports

      Description

        Internal testing by my colleges found an issue in jdk11 and jdk8 which fails with the following exception related to Pack200 compression.

        java.util.zip.ZipException: invalid entry compressed size (expected 68 but got 69 bytes)
        at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268)
        at java.base/java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:193)
        at java.base/java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
        at java.base/com.sun.java.util.jar.pack.Utils.copyJarFile(Utils.java:234)
        at java.base/com.sun.java.util.jar.pack.Utils.copyJarFile(Utils.java:257)
        at java.base/com.sun.java.util.jar.pack.PackerImpl.pack(PackerImpl.java:90)
        at javasoft.sqe.tests.api.java.util.jar.Pack200.distributed.PackServer.handle_pack(PackServer.java:240)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.jck.lib.DistributedTest.handleMessage(DistributedTest.java:218)
        at javasoft.sqe.tests.api.java.util.jar.Pack200.distributed.PackServer.handleMessage(PackServer.java:180)
        at com.sun.jck.lib.DistributedTest$1.handleMessage(DistributedTest.java:66)
        at com.sun.jck.lib.MessageClient.run(MessageClient.java:127)
        at com.sun.jck.lib.DistributedTest.go(DistributedTest.java:94)
        at com.sun.jck.lib.DistributedTest.run(DistributedTest.java:72)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd$Version2Test.execute(ExecJCKTestSameJVMCmd.java:566)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd$StandardTest.run(ExecJCKTestSameJVMCmd.java:523)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd.execute(ExecJCKTestSameJVMCmd.java:407)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd.run(ExecJCKTestSameJVMCmd.java:337)
        at com.sun.javatest.agent.Agent$Task$CommandExecutor$2.run(Agent.java:899)
        at java.base/java.lang.Thread.run(Thread.java:871)
        Suppressed: java.util.zip.ZipException: invalid entry compressed size (expected 68 but got 69 bytes)
        at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268)
        at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:361)
        at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
        at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:378)
        at java.base/com.sun.java.util.jar.pack.Utils.copyJarFile(Utils.java:256)
        ... 22 more

        Attachments

          Issue Links

            Activity

              People

                tsteele Tyler Steele
                tsteele Tyler Steele
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: