JDK-8288763 : Pack200 extraction failure with invalid size
  • Type: Bug
  • Component: core-libs
  • Affected Version: 8,11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-20
  • Updated: 2022-08-03
  • Resolved: 2022-07-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11.0.17 b01Fixed
Related Reports
Relates :  
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 
Comments
Fix Request (8u) On behalf of Tyler Steele. See above 11u comment.
03-08-2022

Changeset: 5e1ce54d Author: Tyler Steele <tsteele@openjdk.org> Committer: Christoph Langer <clanger@openjdk.org> Date: 2022-07-19 07:10:25 +0000 URL: https://git.openjdk.org/jdk11u/commit/5e1ce54d6a11eac153a6e6487bc0b4ed89741b5b
03-08-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/86 Date: 2022-07-20 20:59:48 +0000
20-07-2022

Changeset: 5e1ce54d Author: Tyler Steele <tsteele@openjdk.org> Committer: Christoph Langer <clanger@openjdk.org> Date: 2022-07-19 07:10:25 +0000 URL: https://git.openjdk.org/jdk11u-dev/commit/5e1ce54d6a11eac153a6e6487bc0b4ed89741b5b
19-07-2022

[jdk11u] Requesting non-backport changes at PR-1163 to fix the this issue. Doing so avoids backporting the upstream change which would require a CSR. T1 tests passing on all platforms including zLinux. Risk is medium: the change is very small, and directly fixes the issue, and testing looks good. However, I am considering this medium because it is not a backport, and so the change hasn't had time to live upstream.
18-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1163 Date: 2022-06-20 23:03:33 +0000
21-06-2022