Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openjdk zip or inflate/deflate failures on RH9 (z15+) or AIX 7.3 (p10) #14948

Open
pshipton opened this issue Apr 21, 2022 · 60 comments
Open

openjdk zip or inflate/deflate failures on RH9 (z15+) or AIX 7.3 (p10) #14948

pshipton opened this issue Apr 21, 2022 · 60 comments

Comments

@pshipton
Copy link
Member

pshipton commented Apr 21, 2022

This is on zlinux.

java version "11.0.15" 2022-04-19
IBM Semeru Runtime Certified Edition 11.0.15.0-rc1 (build 11.0.15+10)
Eclipse OpenJ9 VM 11.0.15.0-rc1 (build openj9-0.32.0-rc1, JRE 11 Linux s390x-64-Bit Compressed References 20220419_282 (JIT enabled, AOT enabled)
OpenJ9   - 9a84ec34e
OMR      - ab24b6666
JCL      - da9a227f69 based on jdk-11.0.15+10)

/view/Test_grinder/job/Grinder/22939

jdk_lang_0
java/lang/ClassLoader/securityManager/ClassLoaderTest.java

20:42:07  java.util.zip.ZipException: invalid entry compressed size (expected 487 but got 486 bytes)
20:42:07  	at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268)
20:42:07  	at java.base/java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:193)
20:42:07  	at java.base/java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
20:42:07  	at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:169)
20:42:07  	at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:184)
20:42:07  	at ClassLoaderTest.updateModuleDescr(ClassLoaderTest.java:295)
20:42:07  	at ClassLoaderTest.setUp(ClassLoaderTest.java:274)
20:42:07  	at ClassLoaderTest.main(ClassLoaderTest.java:161)
20:42:07  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20:42:07  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
20:42:07  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
20:42:07  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
20:42:07  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
20:42:07  	at java.base/java.lang.Thread.run(Thread.java:871)
20:42:07  	Suppressed: java.util.zip.ZipException: invalid entry compressed size (expected 487 but got 486 bytes)
20:42:07  		at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268)
20:42:07  		at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:361)
20:42:07  		at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
20:42:07  		at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:378)
20:42:07  		at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:152)
20:42:07  		... 10 more

jdk_lang_1
java/lang/ClassLoader/securityManager/ClassLoaderTest.java

20:56:44  java.util.zip.ZipException: invalid entry compressed size (expected 179 but got 177 bytes)
20:56:44  	at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268)
20:56:44  	at java.base/java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:193)
20:56:44  	at java.base/java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
20:56:44  	at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:169)
20:56:44  	at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:184)
20:56:44  	at ClassLoaderTest.updateModuleDescr(ClassLoaderTest.java:295)
20:56:44  	at ClassLoaderTest.setUp(ClassLoaderTest.java:270)
20:56:44  	at ClassLoaderTest.main(ClassLoaderTest.java:161)
20:56:44  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
20:56:44  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
20:56:44  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
20:56:44  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
20:56:44  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
20:56:44  	at java.base/java.lang.Thread.run(Thread.java:871)
20:56:44  	Suppressed: java.util.zip.ZipException: invalid entry compressed size (expected 179 but got 177 bytes)
20:56:44  		at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268)
20:56:44  		at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:361)
20:56:44  		at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
20:56:44  		at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:378)
20:56:44  		at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:152)
20:56:44  		... 10 more

jdk_util_0, jdk_util_1
java/util/zip/ZipFile/CopyJar.java

21:24:44  java.util.zip.ZipException: invalid entry compressed size (expected 338 but got 395 bytes)
21:24:44  	at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:268)
21:24:44  	at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:361)
21:24:44  	at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
21:24:44  	at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:378)
21:24:44  	at CopyJar.main(CopyJar.java:45)
21:24:44  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:24:44  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:24:44  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:24:44  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
21:24:44  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
21:24:44  	at java.base/java.lang.Thread.run(Thread.java:871)

jdk_util_0, jdk_util_1
java/util/zip/DeflateIn_InflateOut.java

21:25:26  java.lang.Throwable
21:25:26  	at java.base/java.lang.Thread.dumpStack(Thread.java:544)
21:25:26  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
21:25:26  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
21:25:26  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:177)
21:25:26  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
21:25:26  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:25:26  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:25:26  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
21:25:26  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
21:25:26  	at java.base/java.lang.Thread.run(Thread.java:871)
21:25:26  java.lang.Throwable
21:25:26  	at java.base/java.lang.Thread.dumpStack(Thread.java:544)
21:25:26  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
21:25:26  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
21:25:26  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:195)
21:25:26  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
21:25:26  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:25:26  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:25:26  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
21:25:26  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
21:25:26  	at java.base/java.lang.Thread.run(Thread.java:871)
21:25:26  java.lang.Throwable
21:25:26  	at java.base/java.lang.Thread.dumpStack(Thread.java:544)
21:25:26  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
21:25:26  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
21:25:26  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:205)
21:25:26  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
21:25:26  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:25:26  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:25:26  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
21:25:26  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
21:25:26  	at java.base/java.lang.Thread.run(Thread.java:871)
21:25:26  java.lang.Throwable
21:25:26  	at java.base/java.lang.Thread.dumpStack(Thread.java:544)
21:25:26  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
21:25:26  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
21:25:26  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:206)
21:25:26  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
21:25:26  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:25:26  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:25:26  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:25:26  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
21:25:26  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
21:25:26  	at java.base/java.lang.Thread.run(Thread.java:871)

jdk11_tier1_pack200_0, jdk11_tier1_pack200_1
tools/pack200/PackTestZip64.java

21:45:35  java.io.IOException: Files are differ starting at position: 36
21:45:35  	at PackTestZip64.compareTwoFiles(PackTestZip64.java:117)
21:45:35  	at PackTestZip64.testPacking(PackTestZip64.java:89)
21:45:35  	at PackTestZip64.main(PackTestZip64.java:48)
21:45:35  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:45:35  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
21:45:35  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
21:45:35  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
21:45:35  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
21:45:35  	at java.base/java.lang.Thread.run(Thread.java:871)
@pshipton
Copy link
Member Author

I tried Adoptium jdk-11.0.15+8 with java/lang/ClassLoader/securityManager/ClassLoaderTest.java and it has the same problem.

openjdk version "11.0.15-beta" 2022-04-19
OpenJDK Runtime Environment Temurin-11.0.15+8-202204191806 (build 11.0.15-beta+8-202204191806)
OpenJDK 64-Bit Server VM Temurin-11.0.15+8-202204191806 (build 11.0.15-beta+8-202204191806, mixed mode)
	Suppressed: java.util.zip.ZipException: invalid entry compressed size (expected 489 but got 486 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 jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:152)
		... 10 more

@pshipton
Copy link
Member Author

pshipton commented Jul 20, 2022

I believe some of this is fixed by openjdk/jdk11u-dev#1163
ibmruntimes/openj9-openjdk-jdk17@f3af6a0dc and ibmruntimes/openj9-openjdk-jdk17@754993e98 may also be relevant.

@pshipton
Copy link
Member Author

Also discovered some failures on AIX 7.3 P10.

jdk_security3
sun/security/tools/jarsigner/OldSig.java

22:31:33  java.util.zip.ZipException: invalid entry compressed size (expected 178 but got 188 bytes)
22:31:33  	at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:269)
22:31:33  	at java.base/java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:193)
22:31:33  	at java.base/java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
22:31:33  	at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:160)
22:31:33  	at OldSig.main(OldSig.java:49)
22:31:33  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
22:31:33  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
22:31:33  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
22:31:33  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
22:31:33  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
22:31:33  	at java.base/java.lang.Thread.run(Thread.java:840)
22:31:33  	Suppressed: java.util.zip.ZipException: invalid entry compressed size (expected 178 but got 188 bytes)
22:31:33  		at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:269)
22:31:33  		at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:369)
22:31:33  		at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:245)
22:31:33  		at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:386)
22:31:33  		at jdk.test.lib.util.JarUtils.updateJarFile(JarUtils.java:152)
22:31:33  		... 7 more

tools/pack200/PackTestZip64.java

15:34:27  java.io.IOException: Files are differ starting at position: 136
15:34:27  	at PackTestZip64.compareTwoFiles(PackTestZip64.java:117)
15:34:27  	at PackTestZip64.testPacking(PackTestZip64.java:89)
15:34:27  	at PackTestZip64.main(PackTestZip64.java:48)
15:34:27  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:34:27  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
15:34:27  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:34:27  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
15:34:27  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
15:34:27  	at java.base/java.lang.Thread.run(Thread.java:840)

java/util/zip/ZipFile/CopyJar.java

15:40:45  java.util.zip.ZipException: invalid entry compressed size (expected 338 but got 347 bytes)
15:40:45  	at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:269)
15:40:45  	at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:369)
15:40:45  	at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:245)
15:40:45  	at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:386)
15:40:45  	at CopyJar.main(CopyJar.java:45)
15:40:45  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:40:45  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
15:40:45  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:40:45  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
15:40:45  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
15:40:45  	at java.base/java.lang.Thread.run(Thread.java:840)

@pshipton pshipton changed the title sanity.openjdk zip (zlib?) failures on RH9 beta sanity.openjdk zip failures on RH9 beta, invalid entry compressed size Jul 21, 2022
@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Jul 21, 2022

An internal build(rhel9s390xrt-2)

openjdk version "11.0.16" 2022-07-19
IBM Semeru Runtime Open Edition 11.0.16.0-rc1 (build 11.0.16+8)
Eclipse OpenJ9 VM 11.0.16.0-rc1 (build openj9-0.33.0-rc1, JRE 11 Linux s390x-64-Bit Compressed References 20220720_417 (JIT enabled, AOT enabled)
OpenJ9   - 8cb527940
OMR      - b58aa2708
JCL      - 8b0defbf5f based on jdk-11.0.16+8)

[2022-07-20T16:15:53.534Z] variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode650
[2022-07-20T16:15:53.534Z] JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-UseCompressedOops 

[2022-07-20T16:33:03.107Z] TEST: java/util/zip/ZipFile/CopyJar.java

[2022-07-20T16:33:03.108Z] STDERR:
[2022-07-20T16:33:03.108Z] java.util.zip.ZipException: invalid entry compressed size (expected 338 but got 395 bytes)
[2022-07-20T16:33:03.108Z] 	at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:269)
[2022-07-20T16:33:03.108Z] 	at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:369)
[2022-07-20T16:33:03.108Z] 	at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:245)
[2022-07-20T16:33:03.108Z] 	at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:386)
[2022-07-20T16:33:03.108Z] 	at CopyJar.main(CopyJar.java:45)
[2022-07-20T16:33:03.108Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-07-20T16:33:03.108Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-07-20T16:33:03.108Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-07-20T16:33:03.108Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-07-20T16:33:03.108Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2022-07-20T16:33:03.108Z] 	at java.base/java.lang.Thread.run(Thread.java:840)
[2022-07-20T16:33:03.108Z] 
[2022-07-20T16:33:03.108Z] JavaTest Message: Test threw exception: java.util.zip.ZipException
[2022-07-20T16:33:03.108Z] JavaTest Message: shutting down test
[2022-07-20T16:33:03.108Z] 
[2022-07-20T16:33:03.108Z] 
[2022-07-20T16:33:03.108Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.util.zip.ZipException: invalid entry compressed size (expected 338 but got 395 bytes)

[2022-07-20T16:33:29.870Z] TEST: java/util/zip/DeflateIn_InflateOut.java

[2022-07-20T16:33:29.871Z] STDERR:
[2022-07-20T16:33:29.871Z] java.lang.Throwable
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.dumpStack(Thread.java:509)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:177)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-07-20T16:33:29.871Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.run(Thread.java:840)
[2022-07-20T16:33:29.871Z] java.lang.Throwable
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.dumpStack(Thread.java:509)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:195)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-07-20T16:33:29.871Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.run(Thread.java:840)
[2022-07-20T16:33:29.871Z] java.lang.Throwable
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.dumpStack(Thread.java:509)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:205)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-07-20T16:33:29.871Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.run(Thread.java:840)
[2022-07-20T16:33:29.871Z] java.lang.Throwable
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.dumpStack(Thread.java:509)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:206)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-07-20T16:33:29.871Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.run(Thread.java:840)
[2022-07-20T16:33:29.871Z] java.lang.AssertionError: Some tests failed
[2022-07-20T16:33:29.871Z] 	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:245)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-07-20T16:33:29.871Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-07-20T16:33:29.871Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2022-07-20T16:33:29.871Z] 	at java.base/java.lang.Thread.run(Thread.java:840)
[2022-07-20T16:33:29.871Z] 
[2022-07-20T16:33:29.871Z] JavaTest Message: Test threw exception: java.lang.AssertionError
[2022-07-20T16:33:29.871Z] JavaTest Message: shutting down test
[2022-07-20T16:33:29.871Z] 
[2022-07-20T16:33:29.871Z] STDOUT:
[2022-07-20T16:33:29.871Z] 
[2022-07-20T16:33:29.871Z] Passed = 13 failed = 4
[2022-07-20T16:33:29.871Z] 
[2022-07-20T16:33:29.871Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed
[2022-07-20T16:33:29.871Z] --------------------------------------------------
[2022-07-20T16:34:50.924Z] Test results: passed: 841; failed: 2
[2022-07-20T16:35:01.728Z] Report written to /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_s390x_linux_testList_1/jvmtest/openjdk/report/html/report.html
[2022-07-20T16:35:01.728Z] Results written to /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_s390x_linux_testList_1/aqa-tests/TKG/output_16583324086513/jdk_util_1/work
[2022-07-20T16:35:01.728Z] Error: Some tests failed or other problems occurred.
[2022-07-20T16:35:01.728Z] 
[2022-07-20T16:35:01.728Z] jdk_util_1_FAILED
[2022-07-20T16:36:52.640Z] variation: Mode650
[2022-07-20T16:36:52.640Z] JVM_OPTIONS:  -XX:-UseCompressedOops 

[2022-07-20T16:41:00.874Z] TEST: tools/pack200/PackTestZip64.java

[2022-07-20T16:41:00.876Z] STDERR:
[2022-07-20T16:41:00.876Z] java.io.IOException: Files are differ starting at position: 36
[2022-07-20T16:41:00.876Z] 	at PackTestZip64.compareTwoFiles(PackTestZip64.java:117)
[2022-07-20T16:41:00.876Z] 	at PackTestZip64.testPacking(PackTestZip64.java:89)
[2022-07-20T16:41:00.876Z] 	at PackTestZip64.main(PackTestZip64.java:48)
[2022-07-20T16:41:00.876Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-07-20T16:41:00.876Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2022-07-20T16:41:00.876Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-07-20T16:41:00.876Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2022-07-20T16:41:00.876Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2022-07-20T16:41:00.876Z] 	at java.base/java.lang.Thread.run(Thread.java:840)
[2022-07-20T16:41:00.876Z] 
[2022-07-20T16:41:00.876Z] JavaTest Message: Test threw exception: java.io.IOException
[2022-07-20T16:41:00.876Z] JavaTest Message: shutting down test
[2022-07-20T16:41:00.876Z] 
[2022-07-20T16:41:00.876Z] 
[2022-07-20T16:41:00.876Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.io.IOException: Files are differ starting at position: 36
[2022-07-20T16:41:00.876Z] --------------------------------------------------
[2022-07-20T16:41:21.036Z] Test results: passed: 17; failed: 1
[2022-07-20T16:41:25.925Z] Report written to /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_s390x_linux_testList_1/jvmtest/openjdk/report/html/report.html
[2022-07-20T16:41:25.925Z] Results written to /home/jenkins/workspace/Test_openjdk11_j9_sanity.openjdk_s390x_linux_testList_1/aqa-tests/TKG/output_16583324086513/jdk11_tier1_pack200_1/work
[2022-07-20T16:41:25.925Z] Error: Some tests failed or other problems occurred.
[2022-07-20T16:41:25.925Z] 
[2022-07-20T16:41:25.925Z] jdk11_tier1_pack200_1_FAILED

@pshipton
Copy link
Member Author

pshipton commented Jul 22, 2022

With the jdk11 rc1a build (containing the fix linked above) we get the following failures (for both compressed and non-compressed runs). None of the failures are for "invalid entry compressed size".

zlinux on RHEL9 z15
tools/pack200/PackTestZip64.java.PackTestZip64

21:52:43  java.io.IOException: Files are differ starting at position: 36
21:52:43  	at PackTestZip64.compareTwoFiles(PackTestZip64.java:117)
21:52:43  	at PackTestZip64.testPacking(PackTestZip64.java:89)
21:52:43  	at PackTestZip64.main(PackTestZip64.java:48)

java/util/zip/DeflateIn_InflateOut.java.DeflateIn_InflateOut

21:19:36  java.lang.Throwable
21:19:36  	at java.base/java.lang.Thread.dumpStack(Thread.java:509)
21:19:36  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:235)
21:19:36  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:238)
21:19:36  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:177)
21:19:36  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:229)
21:19:36  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:243)
also with the following 3 others:
21:19:36  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:195)
21:19:36  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:205)
21:19:36  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:206)

sun/security/tools/jarsigner/OldSig.java passed

AIX on AIX 7.3 P10
tools/pack200/PackTestZip64.java.PackTestZip64

22:23:41  java.io.IOException: Files are differ starting at position: 136
22:23:41  	at PackTestZip64.compareTwoFiles(PackTestZip64.java:117)
22:23:41  	at PackTestZip64.testPacking(PackTestZip64.java:89)
22:23:41  	at PackTestZip64.main(PackTestZip64.java:48)

java/util/zip/CopyZipFile.java.CopyZipFile

21:43:39  java.lang.Exception: Should throw a ZipException if ZipEntry.setCpompressedSize() was called.
21:43:39  	at CopyZipFile.main(CopyZipFile.java:182)

java/util/zip/DeInflate.java.DeInflate

21:43:39  java.util.zip.DataFormatException: incorrect data check
21:43:39  	at java.base/java.util.zip.Inflater.inflateBytesBytes(Native Method)
21:43:39  	at java.base/java.util.zip.Inflater.inflate(Inflater.java:385)
21:43:39  	at java.base/java.util.zip.Inflater.inflate(Inflater.java:471)
21:43:39  	at DeInflate.checkDict(DeInflate.java:231)
21:43:39  	at DeInflate.main(DeInflate.java:305)

java/util/zip/FlaterTest.java.FlaterTest

21:44:03  java.lang.Exception: Nothing inflated (dst=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192],offset=1048576,rem=0,srcMode=0,dstMode=0)
21:44:03  	at FlaterTest$Flater.InflateData(FlaterTest.java:204)
21:44:03  	at FlaterTest$Flater.run(FlaterTest.java:140)

java/util/zip/InflaterInputStream/TestAvailable.java.TestAvailable

22:11:41  java.lang.RuntimeException: available() > 0, read() == -1 : failed!
22:11:41  	at TestAvailable.test(TestAvailable.java:74)
22:11:41  	at TestAvailable.main(TestAvailable.java:52)

sun/security/tools/jarsigner/OldSig.java passed

@pshipton
Copy link
Member Author

pshipton commented Jul 22, 2022

With jdk8 rc1a

zlinux passed (jdk8 zlinux uses the bundled zlib)

AIX (jdk8 AIX uses the system zlib)
java/util/zip/CopyZipFile.java.CopyZipFile
java/util/zip/DeInflate.java.DeInflate

@r30shah
Copy link
Contributor

r30shah commented Jul 25, 2022

Looking at the CopyZipFile.java.CopyZipFile failures on AIX, where we fail with the this exception, issue seems to be related to zlib on AIX 7.3 P10 (Or integration JDK with zlib) itself.

Test simply while creating a Zip file puts different entry with different compression level and different compression method. We fail because of the third entry in the ZipFile [1], where the entry is added with NO_COMPRESSION compression level. When reading the created zip file and copying it into new file [2], test while putting the third entry test3.tzt in the new zip file expects to throw an exception, as for each entry in the new zip file [3], it sets up the compressedSize and hence the flag csizeSet would be set. Now when test reads, copies and puts third entry to new zip file, it expects that this original file that was written initially with NO_COMPRESSION level, would now will be compressed, so the compressedSize from original entry with NO_COMPRESSION would mismatch with the compressed size after deflating the entry, and it should throw ZipException [4].

Now when I modified the test to print out the compressed size of each file that was written when we first create zip File, I see that for third entry, which should be stored with NO_COMRESSION it still does compression. Which causes the test case to fail. To see what we actually do when deflating a data on AIX using java.util.zip.Deflater , I wrote simple unit test, as following which tests the deflation of data with different compression level provided by java.util.zip.Deflater

import java.util.zip.Deflater;

public class JavaDeflaterUnitTest {
        private static final String testStr = "TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTest";

        private static final int[] compressionLevel = { Deflater.NO_COMPRESSION, Deflater.BEST_SPEED, Deflater.BEST_COMPRESSION, Deflater.DEFAULT_COMPRESSION };

        private static String getCompressionLevelName(int level) {
                switch(level) {
                        case Deflater.NO_COMPRESSION:
                                return "NO_COMPRESSION";
                        case Deflater.BEST_SPEED:
                                return "BEST_SPEED";
                        case Deflater.BEST_COMPRESSION:
                                return "BEST_COMPRESSION";
                        case Deflater.DEFAULT_COMPRESSION:
                                return "DEFAULT_COMPRESSION";
                        default:
                                return "UNKNOWN_COMPRESSION_LEVEL";
                }
        }
        public static void main(String[] args) {
                byte [] inputData = testStr.getBytes();

                for (int i=0; i < compressionLevel.length; i++) {
                        Deflater deflater= new Deflater();
                        deflater.setInput(inputData);
                        deflater.setLevel(compressionLevel[i]);
                        deflater.finish();
                        while (!deflater.finished())
                                deflater.deflate(inputData);
                        System.out.println("Level = "+getCompressionLevelName(compressionLevel[i])+", Read Uncompressed Data = "+deflater.getBytesRead()+", Compressed DataSize = "+deflater.getBytesWritten());
                }
        }

}

For the above unit test for NO_COMPRESSION level, I got following output on AIX machine,

Level = NO_COMPRESSION, Read Uncompressed Data = 84, Compressed DataSize = 25

while on my workstation (Mac), I got following,

Level = NO_COMPRESSION, Read Uncompressed Data = 84, Compressed DataSize = 95

See the difference in compressed data size, where on Mac with no_Compression, we ended up using more data (Probably the metadata/header of the deflated data) , while on AIX it still ends up compressing data.

In the same unit test, if I construct the Deflater object with passing it the compression level, it works as expected.

[1]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/java/util/zip/CopyZipFile.java#L73-L76
[2]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/java/util/zip/CopyZipFile.java#L173-L199
[3]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/java/util/zip/CopyZipFile.java#L175-L176
[4]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/src/java.base/share/classes/java/util/zip/ZipOutputStream.java#L275-L279

@r30shah
Copy link
Contributor

r30shah commented Jul 25, 2022

For the DeflateIn_InflateOut.skipBytes failure, it is failing because of the incorrect assumption taken by the test case.

The test stores the compressed data size in numReadable variable for the input data that was generated by reset() in the beginning of the test. Later it tests skipping different number of compressed bytes with different set of data[1][2]. It compares this total of skipped and read bytes for each case with originally calculated numReadable [3], but these compressed data sizes are not for same data (even though the length of input data is same). The Java specification of "java/util/zip/Deflater" [4] and "java/util/zip/DeflaterOutputStream" [5] contains no guarantee of determinism for compression ratio. Similarly, the specifications of zlib [6] compression library does not provide such assurance. Moreover, the compression ratio is highly dependent on input data as per the zlib compression algorithm [7].
With the system installed zlib that might defaults to hardware bases compression, compression ratio may vary for different data.

[1]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/java/util/zip/DeflateIn_InflateOut.java#L165-L177
[2]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/java/util/zip/DeflateIn_InflateOut.java#L180-L195
[3]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/java/util/zip/DeflateIn_InflateOut.java#L177
[4]. https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/zip/Deflater.html
[5]. https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/zip/DeflaterOutputStream.html
[6]. https://www.ietf.org/rfc/rfc1950.txt
[7]. https://zlib.net/feldspar.html

@pshipton
Copy link
Member Author

@zl-wang fyi the zlib problems on AIX 7.3 P10. I'm assuming zlib is providing some hardware compression but seems to have additional problem behaviour to RHEL 9/z15 as well.
#14948 (comment)
#14948 (comment)

@zl-wang
Copy link
Contributor

zl-wang commented Jul 25, 2022

@rmnattas this was the feature you enabled for AIX. please take a look ...

r30shah added a commit to r30shah/openj9-openjdk-jdk11 that referenced this issue Jul 25, 2022
java/util/zip/DeflateIn_InflateOut.skipBytes verifies functionality of
DeflaterInputStream.skipBytes. While testing skipping of bytes, test
uses different input data with same data length, and compares the
compressed sizes of these data to verify skipping bytes. As per zlib
specification which is what is used by Deflater in java, length of
compressed data is highly dependable on input data contents, so it will
be incorrect to assume that compression ratio would be constant for same
length input data. For more details please see explaination in
eclipse-openj9/openj9#14948 (comment).

Signed-off-by: Rahil Shah <rahil@ca.ibm.com>
@r30shah
Copy link
Contributor

r30shah commented Jul 25, 2022

I have opened up WIP PR in ibmruntimes/openj9-openjdk-jdk11#559 that fixes the skipBytes where it resets the data only ones and uses same data for skipping different bytes throughout the test. While running it manually on RHEL9/z15, it passes.

@pshipton
Copy link
Member Author

Moving this forward while we continue to investigate and update tests.

@r30shah
Copy link
Contributor

r30shah commented Jul 26, 2022

Further looked into the failures seen with tools/pack200/PackTestZip64.java.PackTestZip64 on Z. We fail while comparing two jar files in [1]. Here the first jar file testFile is created with the --repack function passed into the pack200 command. Looking at the documentation for pack200 tools, --repack option would produce a jar file by packing and unpacking it. The test later manually packs and unpacks the jar file and produces the second jar file (unpackedFile) [2] and in [3], it does byte by byte comparison of this two jar files.

I copied the golden.jar that is used as input and manually performed steps from the test on RHEL9/Z15 machine and I do see that the size of jar file produced using --repack is different from the file produced using pack and unpack process as separate command. Though inspecting both jar files by unzipping them, I do not see anything different.

Looking into the code that is executed for --repack option to see what is the difference between regular pack-unpack and single --repack command for pack200.

[1]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/tools/pack200/PackTestZip64.java#L89
[2]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/tools/pack200/PackTestZip64.java#L75-L86
[3]. https://github.com/ibmruntimes/openj9-openjdk-jdk11/blob/20d13352ee5c9569416880e340d5c589161082f9/test/jdk/tools/pack200/PackTestZip64.java#L97-L125

@rmnattas
Copy link
Contributor

For the AIX failures: on P9 and P10 AIX machines, OpenJ9 uses zlibNX (a hardware accelerated version of zlib) if it's installed in the system.
Apparently there's a bug in zlibNX implementation, specifically in deflateParams. The AIX team is notified.

The method deflateParams is used by Deflater.setLevel() hence the test failure.
The following modified version of @r30shah test gives the correct outcome:

// Deflater deflater= new Deflater();
// deflater.setLevel(compressionLevel[i]);
Deflater deflater= new Deflater(compressionLevel[i]);                   

Level = NO_COMPRESSION, Read Uncompressed Data = 84, Compressed DataSize = 95

@rmnattas
Copy link
Contributor

rmnattas commented Aug 4, 2022

The AIX zlibNX library have been fixed and a patched is available (Defect, libz.a)
Patch will be included in Oct AIX updates: 7200-05-05, 7300-00-03, 7300-01

The hardware accelerated compression algorithm have only one compression level, hence changing the compression level (1-9) is meaningless and doesn't have an effect. The edge case which fails this test before the patch is changing from/to level 0 (no compression).

@pshipton
Copy link
Member Author

pshipton commented Aug 4, 2022

Created infrastructure/issues/7144 to see about updating the machines.

@pshipton pshipton changed the title sanity.openjdk zip failures on RH9 beta, invalid entry compressed size openjdk zip or inflate/deflate failures on RH9 (z15+) or AIX 7.3 (p10) Aug 5, 2022
@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Aug 5, 2022

An internal build(rhel9s390xrt-1 - RH9 machine)

18:08:10  openjdk version "17.0.4" 2022-07-19
18:08:10  IBM Semeru Runtime Open Edition 17.0.4.0 (build 17.0.4+8)
18:08:10  Eclipse OpenJ9 VM 17.0.4.0 (build openj9-0.33.0, JRE 17 Linux s390x-64-Bit Compressed References 20220718_234 (JIT enabled, AOT enabled)
18:08:10  OpenJ9   - 04a55b45b
18:08:10  OMR      - b58aa2708
18:08:10  JCL      - d680e266ef4 based on jdk-17.0.4+8)

18:17:25  ===============================================
18:17:25  Running test jdk_util_0 ...
18:17:25  ===============================================
18:17:25  jdk_util_0 Start Time: Thu Aug  4 23:17:18 2022 Epoch Time (ms): 1659651438831
18:17:25  "/home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_s390x_linux_testList_0/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_s390x_linux_testList_0/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
18:17:25  JVMSHRC005I No shared class caches available
18:17:25  JVMSHRC005I No shared class caches available
18:17:25  cache cleanup done
18:17:25  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode150
18:17:25  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:+UseCompressedOops 

18:35:03  TEST: java/util/zip/CloseInflaterDeflaterTest.java

18:35:03  STDOUT:
18:35:03  config CloseInflaterDeflaterTest.before_test(): success
18:35:03  test CloseInflaterDeflaterTest.testDeflaterInputStream(): success
18:35:03  test CloseInflaterDeflaterTest.testDeflaterOutputStream(true): failure
18:35:03  java.lang.AssertionError: Expected NullPointerException to be thrown, but IOException was thrown
18:35:03  	at org.testng.Assert.expectThrows(Assert.java:1724)
18:35:03  	at org.testng.Assert.assertThrows(Assert.java:1695)
18:35:03  	at CloseInflaterDeflaterTest.testDeflaterOutputStream(CloseInflaterDeflaterTest.java:153)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
18:35:03  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
18:35:03  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
18:35:03  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
18:35:03  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
18:35:03  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
18:35:03  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
18:35:03  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
18:35:03  	at org.testng.TestRunner.run(TestRunner.java:585)
18:35:03  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
18:35:03  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
18:35:03  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
18:35:03  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
18:35:03  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
18:35:03  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
18:35:03  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
18:35:03  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
18:35:03  	at org.testng.TestNG.runSuites(TestNG.java:1069)
18:35:03  	at org.testng.TestNG.run(TestNG.java:1037)
18:35:03  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
18:35:03  	at java.base/java.lang.Thread.run(Thread.java:858)
18:35:03  Caused by: java.io.IOException: write beyond end of stream
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:200)
18:35:03  	at CloseInflaterDeflaterTest.lambda$testDeflaterOutputStream$2(CloseInflaterDeflaterTest.java:143)
18:35:03  	at org.testng.Assert.expectThrows(Assert.java:1714)
18:35:03  	... 34 more
18:35:03  test CloseInflaterDeflaterTest.testDeflaterOutputStream(false): failure
18:35:03  java.lang.AssertionError: Expected NullPointerException to be thrown, but IOException was thrown
18:35:03  	at org.testng.Assert.expectThrows(Assert.java:1724)
18:35:03  	at org.testng.Assert.assertThrows(Assert.java:1695)
18:35:03  	at CloseInflaterDeflaterTest.testDeflaterOutputStream(CloseInflaterDeflaterTest.java:153)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
18:35:03  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
18:35:03  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
18:35:03  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
18:35:03  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
18:35:03  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
18:35:03  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
18:35:03  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
18:35:03  	at org.testng.TestRunner.run(TestRunner.java:585)
18:35:03  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
18:35:03  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
18:35:03  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
18:35:03  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
18:35:03  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
18:35:03  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
18:35:03  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
18:35:03  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
18:35:03  	at org.testng.TestNG.runSuites(TestNG.java:1069)
18:35:03  	at org.testng.TestNG.run(TestNG.java:1037)
18:35:03  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
18:35:03  	at java.base/java.lang.Thread.run(Thread.java:858)
18:35:03  Caused by: java.io.IOException: write beyond end of stream
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:200)
18:35:03  	at CloseInflaterDeflaterTest.lambda$testDeflaterOutputStream$2(CloseInflaterDeflaterTest.java:143)
18:35:03  	at org.testng.Assert.expectThrows(Assert.java:1714)
18:35:03  	... 34 more
18:35:03  test CloseInflaterDeflaterTest.testGZip(true): failure
18:35:03  java.io.IOException
18:35:03  	at CloseInflaterDeflaterTest$1.write(CloseInflaterDeflaterTest.java:54)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:261)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:210)
18:35:03  	at java.base/java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:148)
18:35:03  	at CloseInflaterDeflaterTest.testGZip(CloseInflaterDeflaterTest.java:121)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
18:35:03  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
18:35:03  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
18:35:03  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
18:35:03  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
18:35:03  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
18:35:03  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
18:35:03  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
18:35:03  	at org.testng.TestRunner.run(TestRunner.java:585)
18:35:03  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
18:35:03  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
18:35:03  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
18:35:03  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
18:35:03  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
18:35:03  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
18:35:03  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
18:35:03  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
18:35:03  	at org.testng.TestNG.runSuites(TestNG.java:1069)
18:35:03  	at org.testng.TestNG.run(TestNG.java:1037)
18:35:03  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
18:35:03  	at java.base/java.lang.Thread.run(Thread.java:858)
18:35:03  test CloseInflaterDeflaterTest.testGZip(false): failure
18:35:03  java.io.IOException
18:35:03  	at CloseInflaterDeflaterTest$1.write(CloseInflaterDeflaterTest.java:54)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:261)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:210)
18:35:03  	at java.base/java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:148)
18:35:03  	at CloseInflaterDeflaterTest.testGZip(CloseInflaterDeflaterTest.java:121)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
18:35:03  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
18:35:03  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
18:35:03  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
18:35:03  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
18:35:03  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
18:35:03  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
18:35:03  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
18:35:03  	at org.testng.TestRunner.run(TestRunner.java:585)
18:35:03  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
18:35:03  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
18:35:03  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
18:35:03  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
18:35:03  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
18:35:03  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
18:35:03  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
18:35:03  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
18:35:03  	at org.testng.TestNG.runSuites(TestNG.java:1069)
18:35:03  	at org.testng.TestNG.run(TestNG.java:1037)
18:35:03  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
18:35:03  	at java.base/java.lang.Thread.run(Thread.java:858)
18:35:03  test CloseInflaterDeflaterTest.testInflaterOutputStream(true): success
18:35:03  test CloseInflaterDeflaterTest.testInflaterOutputStream(false): success
18:35:03  test CloseInflaterDeflaterTest.testZipCloseEntry(java.util.jar.JarOutputStream@c89d3a68): failure
18:35:03  java.io.IOException
18:35:03  	at CloseInflaterDeflaterTest$1.write(CloseInflaterDeflaterTest.java:54)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:261)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:210)
18:35:03  	at java.base/java.util.zip.ZipOutputStream.write(ZipOutputStream.java:347)
18:35:03  	at CloseInflaterDeflaterTest.testZipCloseEntry(CloseInflaterDeflaterTest.java:202)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
18:35:03  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
18:35:03  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
18:35:03  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
18:35:03  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
18:35:03  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
18:35:03  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
18:35:03  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
18:35:03  	at org.testng.TestRunner.run(TestRunner.java:585)
18:35:03  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
18:35:03  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
18:35:03  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
18:35:03  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
18:35:03  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
18:35:03  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
18:35:03  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
18:35:03  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
18:35:03  	at org.testng.TestNG.runSuites(TestNG.java:1069)
18:35:03  	at org.testng.TestNG.run(TestNG.java:1037)
18:35:03  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
18:35:03  	at java.base/java.lang.Thread.run(Thread.java:858)
18:35:03  test CloseInflaterDeflaterTest.testZipCloseEntry(java.util.zip.ZipOutputStream@eb49a87e): failure
18:35:03  java.io.IOException
18:35:03  	at CloseInflaterDeflaterTest$1.write(CloseInflaterDeflaterTest.java:54)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:261)
18:35:03  	at java.base/java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:210)
18:35:03  	at java.base/java.util.zip.ZipOutputStream.write(ZipOutputStream.java:347)
18:35:03  	at CloseInflaterDeflaterTest.testZipCloseEntry(CloseInflaterDeflaterTest.java:202)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
18:35:03  	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
18:35:03  	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
18:35:03  	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
18:35:03  	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
18:35:03  	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
18:35:03  	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
18:35:03  	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
18:35:03  	at org.testng.TestRunner.privateRun(TestRunner.java:764)
18:35:03  	at org.testng.TestRunner.run(TestRunner.java:585)
18:35:03  	at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
18:35:03  	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
18:35:03  	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
18:35:03  	at org.testng.SuiteRunner.run(SuiteRunner.java:286)
18:35:03  	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
18:35:03  	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
18:35:03  	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
18:35:03  	at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
18:35:03  	at org.testng.TestNG.runSuites(TestNG.java:1069)
18:35:03  	at org.testng.TestNG.run(TestNG.java:1037)
18:35:03  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
18:35:03  	at java.base/java.lang.Thread.run(Thread.java:858)
18:35:03  
18:35:03  ===============================================
18:35:03  java/util/zip/CloseInflaterDeflaterTest.java
18:35:03  Total tests run: 9, Passes: 3, Failures: 6, Skips: 0
18:35:03  ===============================================
18:35:03  
18:35:03  STDERR:
18:35:03  java.lang.Exception: failures: 6
18:35:03  	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:35:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
18:35:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:35:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
18:35:03  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
18:35:03  	at java.base/java.lang.Thread.run(Thread.java:858)
18:35:03  
18:35:03  JavaTest Message: Test threw exception: java.lang.Exception
18:35:03  JavaTest Message: shutting down test
18:35:03  
18:35:03  
18:35:03  TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 6
18:35:03  --------------------------------------------------
18:35:52  Test results: passed: 892; failed: 1
18:35:52  Report written to /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_s390x_linux_testList_0/jvmtest/openjdk/report/html/report.html
18:35:52  Results written to /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_s390x_linux_testList_0/aqa-tests/TKG/output_16596510128815/jdk_util_0/work
18:35:52  Error: Some tests failed or other problems occurred.
18:35:52  
18:35:52  jdk_util_0_FAILED

@pshipton
Copy link
Member Author

pshipton commented Aug 5, 2022

@r30shah pls also take a look at the failure in the previous comment when you get a chance.

@JasonFengJ9
Copy link
Member

An internal build(p10aix101)

java version "17.0.4" 2022-07-19
IBM Semeru Runtime Certified Edition 17.0.4.0 (build 17.0.4+8)
Eclipse OpenJ9 VM 17.0.4.0 (build openj9-0.33.0, JRE 17 AIX ppc64-64-Bit Compressed References 20220718_195 (JIT enabled, AOT enabled)
OpenJ9   - 04a55b45b
OMR      - b58aa2708
JCL      - 7fe2fc9e0bd based on jdk-17.0.4+8)

[2022-08-05T00:00:05.158Z] variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode650
[2022-08-05T00:00:05.158Z] JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-UseCompressedOops 

[2022-08-05T00:29:52.186Z] TEST: java/util/zip/InflaterInputStream/TestAvailable.java

[2022-08-05T00:29:52.213Z] STDERR:
[2022-08-05T00:29:52.213Z] java.lang.RuntimeException: available() > 0, read() == -1 : failed!
[2022-08-05T00:29:52.213Z] 	at TestAvailable.test(TestAvailable.java:74)
[2022-08-05T00:29:52.213Z] 	at TestAvailable.main(TestAvailable.java:52)
[2022-08-05T00:29:52.213Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-08-05T00:29:52.213Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2022-08-05T00:29:52.213Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-08-05T00:29:52.213Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2022-08-05T00:29:52.213Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
[2022-08-05T00:29:52.213Z] 	at java.base/java.lang.Thread.run(Thread.java:858)
[2022-08-05T00:29:52.213Z] 
[2022-08-05T00:29:52.213Z] JavaTest Message: Test threw exception: java.lang.RuntimeException
[2022-08-05T00:29:52.213Z] JavaTest Message: shutting down test
[2022-08-05T00:29:52.213Z] 
[2022-08-05T00:29:52.213Z] 
[2022-08-05T00:29:52.213Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: available() > 0, read() == -1 : failed!
[2022-08-05T00:29:52.213Z] --------------------------------------------------
[2022-08-05T00:31:16.269Z] TEST: java/util/zip/CopyZipFile.java

[2022-08-05T00:31:16.271Z] STDERR:
[2022-08-05T00:31:16.271Z] java.lang.Exception: Should throw a ZipException if ZipEntry.setCpompressedSize() was called.
[2022-08-05T00:31:16.271Z] 	at CopyZipFile.main(CopyZipFile.java:182)
[2022-08-05T00:31:16.271Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-08-05T00:31:16.271Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2022-08-05T00:31:16.271Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-08-05T00:31:16.271Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2022-08-05T00:31:16.271Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2022-08-05T00:31:16.271Z] 	at java.base/java.lang.Thread.run(Thread.java:858)
[2022-08-05T00:31:16.271Z] 
[2022-08-05T00:31:16.271Z] JavaTest Message: Test threw exception: java.lang.Exception: Should throw a ZipException if ZipEntry.setCpompressedSize() was called.

[2022-08-05T00:31:16.615Z] TEST: java/util/zip/DeflateIn_InflateOut.java

[2022-08-05T00:31:16.642Z] STDERR:
[2022-08-05T00:31:16.642Z] java.util.zip.ZipException: incorrect data check
[2022-08-05T00:31:16.642Z] 	at java.base/java.util.zip.InflaterOutputStream.flush(InflaterOutputStream.java:169)
[2022-08-05T00:31:16.642Z] 	at DeflateIn_InflateOut.NeedsDictionary(DeflateIn_InflateOut.java:263)
[2022-08-05T00:31:16.642Z] 	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:286)
[2022-08-05T00:31:16.642Z] 	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:307)
[2022-08-05T00:31:16.642Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2022-08-05T00:31:16.642Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2022-08-05T00:31:16.642Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2022-08-05T00:31:16.642Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2022-08-05T00:31:16.642Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
[2022-08-05T00:31:16.642Z] 	at java.base/java.lang.Thread.run(Thread.java:858)

[2022-08-05T00:31:17.486Z] TEST: java/util/zip/DeflaterDictionaryTests.java
....

[2022-08-05T00:31:18.677Z] TEST: java/util/zip/DeInflate.java
....

[2022-08-05T00:31:47.539Z] TEST: java/util/zip/FlaterTest.java
[2022-08-05T00:31:47.541Z] STDERR:
[2022-08-05T00:31:47.541Z] JVMJNCK001I JNI check utility installed. Use -Xcheck:jni:help for usage
[2022-08-05T00:31:47.541Z] java.lang.Exception: Nothing inflated (dst=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192],offset=1048576,rem=0,srcMode=0,dstMode=0)
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.InflateData(FlaterTest.java:204)
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.run(FlaterTest.java:140)
[2022-08-05T00:31:47.541Z] java.lang.Exception: Nothing inflated (dst=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192],offset=1048576,rem=0,srcMode=0,dstMode=0)
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.InflateData(FlaterTest.java:204)
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.run(FlaterTest.java:140)
[2022-08-05T00:31:47.541Z] java.lang.Exception: Nothing inflated (dst=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192],offset=1048576,rem=0,srcMode=0,dstMode=0)
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.InflateData(FlaterTest.java:204)
[2022-08-05T00:31:47.541Z] java.lang.Throwable	at FlaterTest$Flater.run(FlaterTest.java:140)
[2022-08-05T00:31:47.541Z] java.lang.Exception: Nothing inflated (dst=java.nio.HeapByteBuffer[pos=0 lim=8192 cap=8192],offset=1048576,rem=0,srcMode=0,dstMode=0)java.lang.Throwable
[2022-08-05T00:31:47.541Z] 
[2022-08-05T00:31:47.541Z] 	at java.base/java.lang.Thread.dumpStack(Thread.java:525)	at java.base/java.lang.Thread.dumpStack(Thread.java:525)
[2022-08-05T00:31:47.541Z] 
[2022-08-05T00:31:47.541Z] 	at FlaterTest.fail(FlaterTest.java:215)	at FlaterTest.fail(FlaterTest.java:215)
[2022-08-05T00:31:47.541Z] 
[2022-08-05T00:31:47.541Z] 	at FlaterTest.fail(FlaterTest.java:216)	at FlaterTest.fail(FlaterTest.java:216)
[2022-08-05T00:31:47.541Z] 
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.run(FlaterTest.java:143)	at FlaterTest$Flater.run(FlaterTest.java:143)
[2022-08-05T00:31:47.541Z] 
[2022-08-05T00:31:47.541Z] java.lang.Throwable
[2022-08-05T00:31:47.541Z] 	at java.base/java.lang.Thread.dumpStack(Thread.java:525)
[2022-08-05T00:31:47.541Z] 	at FlaterTest.fail(FlaterTest.java:215)
[2022-08-05T00:31:47.541Z] 	at FlaterTest.fail(FlaterTest.java:216)
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.run(FlaterTest.java:143)
[2022-08-05T00:31:47.541Z] 
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.InflateData(FlaterTest.java:204)
[2022-08-05T00:31:47.541Z] 	at FlaterTest$Flater.run(FlaterTest.java:140)

[2022-08-05T00:32:28.351Z] Test results: passed: 890; failed: 6
[2022-08-05T00:32:35.027Z] Report written to /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64_aix_testList_0/jvmtest/openjdk/report/html/report.html
[2022-08-05T00:32:35.027Z] Results written to /home/jenkins/workspace/Test_openjdk17_j9_sanity.openjdk_ppc64_aix_testList_0/aqa-tests/TKG/output_16596554097790/jdk_util_1/work
[2022-08-05T00:32:35.027Z] Error: Some tests failed or other problems occurred.
[2022-08-05T00:32:35.027Z] 
[2022-08-05T00:32:35.027Z] jdk_util_1_FAILED

Some errors are similar w/ #14948 (comment)

@JasonFengJ9
Copy link
Member

JDK8 ppc64_aix(aix823)

openjdk version "1.8.0_382-beta"
IBM Semeru Runtime Open Edition (build 1.8.0_382-beta-202305172303-b01)
Eclipse OpenJ9 VM (build master-7d5d62a90, JRE 1.8.0 AIX ppc64-64-Bit Compressed References 20230517_652 (JIT enabled, AOT enabled)
OpenJ9   - 7d5d62a90
OMR      - 779c51b95
JCL      - 7b32ae565 based on jdk8u382-b01)

[2023-05-18T00:43:10.622Z] variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode650
[2023-05-18T00:43:10.622Z] JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-UseCompressedOops 

[2023-05-18T01:08:01.816Z] TEST: java/util/zip/ZipFile/ManyEntries.java

[2023-05-18T01:08:01.817Z] STDERR:
[2023-05-18T01:08:01.817Z] java.util.zip.ZipException: invalid entry crc-32 (expected 0x0 but got 0xeb015c4f)
[2023-05-18T01:08:01.817Z] 	at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:304)
[2023-05-18T01:08:01.817Z] 	at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:198)
[2023-05-18T01:08:01.817Z] 	at ManyEntries.test(ManyEntries.java:75)
[2023-05-18T01:08:01.817Z] 	at ManyEntries.main(ManyEntries.java:45)
[2023-05-18T01:08:01.817Z] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-05-18T01:08:01.817Z] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-05-18T01:08:01.817Z] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-05-18T01:08:01.817Z] 	at java.lang.reflect.Method.invoke(Method.java:498)
[2023-05-18T01:08:01.817Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2023-05-18T01:08:01.817Z] 	at java.lang.Thread.run(Thread.java:826)
[2023-05-18T01:08:01.817Z] 	Suppressed: java.util.zip.ZipException: invalid entry crc-32 (expected 0x0 but got 0xeb015c4f)
[2023-05-18T01:08:01.817Z] 		at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:304)
[2023-05-18T01:08:01.817Z] 		at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:369)
[2023-05-18T01:08:01.817Z] 		at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
[2023-05-18T01:08:01.817Z] 		at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:386)
[2023-05-18T01:08:01.817Z] 		at ManyEntries.test(ManyEntries.java:78)
[2023-05-18T01:08:01.817Z] 		... 7 more

[2023-05-18T01:09:11.546Z] Test results: passed: 658; failed: 1
[2023-05-18T01:09:17.595Z] Report written to /home/jenkins/workspace/Test_openjdk8_j9_sanity.openjdk_ppc64_aix_testList_1/aqa-tests/TKG/output_16843696106285/jdk_util_1/report/html/report.html
[2023-05-18T01:09:17.595Z] Results written to /home/jenkins/workspace/Test_openjdk8_j9_sanity.openjdk_ppc64_aix_testList_1/aqa-tests/TKG/output_16843696106285/jdk_util_1/work
[2023-05-18T01:09:17.595Z] Error: Some tests failed or other problems occurred.
[2023-05-18T01:09:17.595Z] -----------------------------------
[2023-05-18T01:09:17.595Z] jdk_util_1_FAILED

@zl-wang
Copy link
Contributor

zl-wang commented May 19, 2023

@bhavanisn could the above wrong crc32 be related to your recent check-in? please take a look

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented May 20, 2023

Also seen in other Java level/platforms
JDK20 ppc64le_linux

22:27:36  ===============================================
22:27:36  Running test jdk_util_1 ...
22:27:36  ===============================================
22:27:36  jdk_util_1 Start Time: Fri May 19 22:27:35 2023 Epoch Time (ms): 1684549655618
22:27:36  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode650
22:27:36  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-UseCompressedOops 

22:44:30  TEST: java/util/zip/ZipFile/ManyEntries.java

22:44:30  STDERR:
22:44:30  java.util.zip.ZipException: invalid entry crc-32 (expected 0x0 but got 0xa0058808)
22:44:30  	at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:308)
22:44:30  	at java.base/java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:201)
22:44:30  	at ManyEntries.test(ManyEntries.java:75)
22:44:30  	at ManyEntries.main(ManyEntries.java:45)
22:44:30  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
22:44:30  	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
22:44:30  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
22:44:30  	at java.base/java.lang.Thread.run(Thread.java:1639)
22:44:30  	Suppressed: java.util.zip.ZipException: invalid entry crc-32 (expected 0x0 but got 0xa0058808)
22:44:30  		at java.base/java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:308)
22:44:30  		at java.base/java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:373)
22:44:30  		at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:244)
22:44:30  		at java.base/java.util.zip.ZipOutputStream.close(ZipOutputStream.java:390)
22:44:30  		at ManyEntries.test(ManyEntries.java:58)
22:44:30  		... 5 more
22:44:30  TEST RESULT: Failed. Execution failed: `main' threw exception: java.util.zip.ZipException: invalid entry crc-32 (expected 0x0 but got 0xa0058808)
22:44:30  --------------------------------------------------
22:46:01  Test results: passed: 920; failed: 1
22:46:04  Report written to /home/jenkins/workspace/Test_openjdk20_j9_sanity.openjdk_ppc64le_linux_Nightly/aqa-tests/TKG/output_16845449823925/jdk_util_1/report/html/report.html
22:46:04  Results written to /home/jenkins/workspace/Test_openjdk20_j9_sanity.openjdk_ppc64le_linux_Nightly/aqa-tests/TKG/output_16845449823925/jdk_util_1/work
22:46:04  Error: Some tests failed or other problems occurred.
22:46:04  -----------------------------------
22:46:04  jdk_util_1_FAILED

JDK20 ppc64le_linux

14:59:55  ===============================================
14:59:55  Running test jdk_util_1 ...
14:59:55  ===============================================
14:59:55  jdk_util_1 Start Time: Fri May 19 15:59:15 2023 Epoch Time (ms): 1684522755376
14:59:55  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache Mode650
14:59:55  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-UseCompressedOops 

15:26:51  TEST: java/util/zip/TestCRC32.java

15:26:51  STDERR:
15:26:51  java.lang.RuntimeException: Calculated checksum result was invalid. Expected cbf43926, but got 0.
15:26:51  	at ChecksumBase.checkChecksum(ChecksumBase.java:92)
15:26:51  	at ChecksumBase.testBytes(ChecksumBase.java:56)
15:26:51  	at ChecksumBase.testAll(ChecksumBase.java:37)
15:26:51  	at TestCRC32.main(TestCRC32.java:37)
15:26:51  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
15:26:51  	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
15:26:51  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
15:26:51  	at java.base/java.lang.Thread.run(Thread.java:1639)
15:26:51  
15:26:51  JavaTest Message: Test threw exception: java.lang.RuntimeException

JDK17 ppc64_aix
JDK11 ppc64_aix

@JasonFengJ9
Copy link
Member

JDK11 s390x_linux milestone 2(rhel8s390x-rt-1)

19:57:07  variation: Mode150
19:57:07  JVM_OPTIONS:  -XX:+UseCompressedOops 

19:59:03  TEST: javax/imageio/plugins/shared/ImageWriterCompressionTest.java

19:59:03  STDERR:
19:59:03  java.lang.RuntimeException: Incorrect file length: 67232 larger than previous: 66619 !
19:59:03  	at ImageWriterCompressionTest.testCompression(ImageWriterCompressionTest.java:163)
19:59:03  	at ImageWriterCompressionTest.main(ImageWriterCompressionTest.java:105)
19:59:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
19:59:03  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
19:59:03  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
19:59:03  	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
19:59:03  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
19:59:03  	at java.base/java.lang.Thread.run(Thread.java:839)
19:59:03  
19:59:03  JavaTest Message: Test threw exception: java.lang.RuntimeException: Incorrect file length: 67232 larger than previous: 66619 !

19:59:03  TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Incorrect file length: 67232 larger than previous: 66619 !
19:59:03  --------------------------------------------------
20:00:10  Test results: passed: 196; failed: 1
20:00:10  Report written to /home/jenkins/workspace/Test_openjdk11_j9_extended.openjdk_s390x_linux/aqa-tests/TKG/output_16881593718696/jdk_imageio_0/report/html/report.html
20:00:10  Results written to /home/jenkins/workspace/Test_openjdk11_j9_extended.openjdk_s390x_linux/aqa-tests/TKG/output_16881593718696/jdk_imageio_0/work
20:00:10  Error: Some tests failed or other problems occurred.
20:00:10  -----------------------------------
20:00:10  jdk_imageio_0_FAILED

pshipton added a commit to pshipton/openjdk-tests that referenced this issue Sep 20, 2023
It doesn't pass when the system zlib is optimized to use hardware, such
as with rhel8 on z15.

Issue eclipse-openj9/openj9#14948

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@pshipton
Copy link
Member Author

Exclude java/util/zip/CloseInflaterDeflaterTest on zlinux.
adoptium/aqa-tests#4780

llxia pushed a commit to adoptium/aqa-tests that referenced this issue Sep 21, 2023
It doesn't pass when the system zlib is optimized to use hardware, such
as with rhel8 on z15.

Issue eclipse-openj9/openj9#14948

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@JasonFengJ9
Copy link
Member

JDK11 s390x_linux milestone 2(rhel84s390x-fips2)

[2023-10-03T22:56:55.548Z] variation: Mode150
[2023-10-03T22:56:55.548Z] JVM_OPTIONS:  -XX:+UseCompressedOops

[2023-10-03T22:59:24.862Z] TEST: javax/imageio/plugins/shared/ImageWriterCompressionTest.java

[2023-10-03T22:59:24.862Z] STDERR:
[2023-10-03T22:59:24.863Z] java.lang.RuntimeException: Incorrect file length: 66720 larger than previous: 66640 !
[2023-10-03T22:59:24.863Z] 	at ImageWriterCompressionTest.testCompression(ImageWriterCompressionTest.java:163)
[2023-10-03T22:59:24.863Z] 	at ImageWriterCompressionTest.main(ImageWriterCompressionTest.java:105)
[2023-10-03T22:59:24.863Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-10-03T22:59:24.863Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-10-03T22:59:24.863Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-10-03T22:59:24.863Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2023-10-03T22:59:24.863Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2023-10-03T22:59:24.863Z] 	at java.base/java.lang.Thread.run(Thread.java:839)
[2023-10-03T22:59:24.863Z] 
[2023-10-03T22:59:24.863Z] JavaTest Message: Test threw exception: java.lang.RuntimeException: Incorrect file length: 66720 larger than previous: 66640 !

@pshipton
Copy link
Member Author

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_sanity.openjdk_s390x_linux_OMR_testList_2/32 - rh8-390-2
jdk_util_0
java/util/zip/DeflateIn_InflateOut.java

06:42:13  java.lang.Throwable
06:42:13  	at java.base/java.lang.Thread.dumpStack(Thread.java:525)
06:42:13  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:298)
06:42:13  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:292)
06:42:13  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:301)
06:42:13  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:192)
06:42:13  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:284)
06:42:13  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:307)
06:42:13  java.lang.Throwable
06:42:13  	at java.base/java.lang.Thread.dumpStack(Thread.java:525)
06:42:13  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:298)
06:42:13  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:292)
06:42:13  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:301)
06:42:13  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:210)
06:42:13  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:284)
06:42:13  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:307)
06:42:13  java.lang.Throwable
06:42:13  	at java.base/java.lang.Thread.dumpStack(Thread.java:525)
06:42:13  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:298)
06:42:13  	at DeflateIn_InflateOut.fail(DeflateIn_InflateOut.java:292)
06:42:13  	at DeflateIn_InflateOut.check(DeflateIn_InflateOut.java:301)
06:42:13  	at DeflateIn_InflateOut.SkipBytes(DeflateIn_InflateOut.java:219)
06:42:13  	at DeflateIn_InflateOut.realMain(DeflateIn_InflateOut.java:284)
06:42:13  	at DeflateIn_InflateOut.main(DeflateIn_InflateOut.java:307)

@JasonFengJ9
Copy link
Member

JDK17 s390x_linux(rhel8s390x-rt-2)

00:50:25  JVM_OPTIONS:  -XX:-UseCompressedOops -Xverbosegclog 

00:55:47  TEST: javax/imageio/plugins/shared/ImageWriterCompressionTest.java

00:55:47  STDERR:
00:55:47  java.lang.RuntimeException: Incorrect file length: 66783 larger than previous: 66723 !
00:55:47  	at ImageWriterCompressionTest.testCompression(ImageWriterCompressionTest.java:163)
00:55:47  	at ImageWriterCompressionTest.main(ImageWriterCompressionTest.java:105)
00:55:47  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:55:47  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
00:55:47  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
00:55:47  	at java.base/java.lang.reflect.Method.invoke(Method.java:574)
00:55:47  	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
00:55:47  	at java.base/java.lang.Thread.run(Thread.java:857)
00:55:47  
00:55:47  JavaTest Message: Test threw exception: java.lang.RuntimeException: Incorrect file length: 66783 larger than previous: 66723 !

00:55:47  TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Incorrect file length: 66783 larger than previous: 66723 !
00:55:47  --------------------------------------------------
00:58:56  Test results: passed: 199; failed: 1
00:58:58  Report written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_s390x_linux_testList_5/aqa-tests/TKG/output_17025308353782/jdk_imageio_1/report/html/report.html
00:58:58  Results written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_s390x_linux_testList_5/aqa-tests/TKG/output_17025308353782/jdk_imageio_1/work
00:58:58  Error: Some tests failed or other problems occurred.
00:58:58  -----------------------------------
00:58:58  jdk_imageio_1_FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants