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

JDK20 jdk_security4_1_FAILED IOException: Too short #17268

Closed
JasonFengJ9 opened this issue Apr 25, 2023 · 2 comments
Closed

JDK20 jdk_security4_1_FAILED IOException: Too short #17268

JasonFengJ9 opened this issue Apr 25, 2023 · 2 comments

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Apr 25, 2023

Failure link

From an internal build(macaarch64rt5):

openjdk version "20" 2023-03-21
IBM Semeru Runtime Open Edition 20+36 (build 20+36)
Eclipse OpenJ9 VM 20+36 (build master-78a79a0ec, JRE 20 Mac OS X aarch64-64-Bit 20230321_9 (JIT enabled, AOT enabled)
OpenJ9   - 78a79a0ec
OMR      - 97cf2a6e8
JCL      - 38d10ea9b based on jdk-20+36)

[Rerun in Grinder](Rerun in Grinder) - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2023-04-24T17:30:33.308Z] variation: Mode650
[2023-04-24T17:30:33.308Z] JVM_OPTIONS:  -XX:-UseCompressedOops 

[2023-04-24T17:30:58.495Z] TEST: sun/security/krb5/auto/BasicProc.java

[2023-04-24T17:30:58.497Z] STDERR:
[2023-04-24T17:30:58.497Z] java.lang.Exception: Proc abnormal end
[2023-04-24T17:30:58.497Z] 	at jdk.test.lib.process.Proc.readData(Proc.java:377)
[2023-04-24T17:30:58.497Z] 	at BasicProc.once(BasicProc.java:275)
[2023-04-24T17:30:58.497Z] 	at BasicProc.main(BasicProc.java:146)
[2023-04-24T17:30:58.497Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2023-04-24T17:30:58.497Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2023-04-24T17:30:58.497Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
[2023-04-24T17:30:58.497Z] 	at java.base/java.lang.Thread.run(Thread.java:1639)
[2023-04-24T17:30:58.497Z] 
[2023-04-24T17:30:58.497Z] JavaTest Message: Test threw exception: java.lang.Exception: Proc abnormal end

[2023-04-24T17:31:03.708Z] TEST: sun/security/krb5/auto/DiffSaltParams.java

[2023-04-24T17:31:03.711Z] STDERR:
[2023-04-24T17:31:03.711Z] javax.security.auth.login.LoginException: Too short
[2023-04-24T17:31:03.711Z] 	at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:789)
[2023-04-24T17:31:03.711Z] 	at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:597)
[2023-04-24T17:31:03.711Z] 	at Context.fromUserPass(Context.java:190)
[2023-04-24T17:31:03.711Z] 	at Context.fromUserPass(Context.java:147)
[2023-04-24T17:31:03.711Z] 	at DiffSaltParams.main(DiffSaltParams.java:48)
[2023-04-24T17:31:03.711Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2023-04-24T17:31:03.711Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2023-04-24T17:31:03.711Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
[2023-04-24T17:31:03.711Z] 	at java.base/java.lang.Thread.run(Thread.java:1639)
[2023-04-24T17:31:03.711Z] Caused by: java.io.IOException: Too short
[2023-04-24T17:31:03.711Z] 	at java.base/sun.security.util.DerValue.<init>(DerValue.java:364)
[2023-04-24T17:31:03.711Z] 	at java.base/sun.security.util.DerInputStream.getDerValue(DerInputStream.java:110)
[2023-04-24T17:31:03.711Z] 	at java.security.jgss/sun.security.krb5.internal.KRBError.init(KRBError.java:318)
[2023-04-24T17:31:03.711Z] 	at java.security.jgss/sun.security.krb5.internal.KRBError.<init>(KRBError.java:191)
[2023-04-24T17:31:03.711Z] 	at java.security.jgss/sun.security.krb5.KrbAsRep.<init>(KrbAsRep.java:63)
[2023-04-24T17:31:03.711Z] 	at java.security.jgss/sun.security.krb5.KrbAsReqBuilder.send(KrbAsReqBuilder.java:345)
[2023-04-24T17:31:03.711Z] 	at java.security.jgss/sun.security.krb5.KrbAsReqBuilder.action(KrbAsReqBuilder.java:498)
[2023-04-24T17:31:03.711Z] 	at jdk.security.auth/com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:751)
[2023-04-24T17:31:03.711Z] 	... 8 more
[2023-04-24T17:31:03.711Z] 
[2023-04-24T17:31:03.711Z] JavaTest Message: Test threw exception: javax.security.auth.login.LoginException: Too short

[2023-04-24T17:31:20.264Z] TEST: sun/security/krb5/auto/HttpNegotiateServer.java

[2023-04-24T17:31:20.267Z] java.lang.RuntimeException: Test error
[2023-04-24T17:31:20.267Z] 	at HttpNegotiateServer.main(HttpNegotiateServer.java:246)
[2023-04-24T17:31:20.267Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2023-04-24T17:31:20.267Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2023-04-24T17:31:20.267Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
[2023-04-24T17:31:20.267Z] 	at java.base/java.lang.Thread.run(Thread.java:1639)
[2023-04-24T17:31:20.267Z] 
[2023-04-24T17:31:20.267Z] JavaTest Message: Test threw exception: java.lang.RuntimeException: Test error

[2023-04-24T17:31:20.268Z] TEST: sun/security/krb5/auto/HttpsCB.java
[2023-04-24T17:31:20.270Z] java.lang.RuntimeException: assertEquals: expected false to equal true
[2023-04-24T17:31:20.270Z] 	at jdk.test.lib.Asserts.fail(Asserts.java:594)
[2023-04-24T17:31:20.270Z] 	at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
[2023-04-24T17:31:20.270Z] 	at jdk.test.lib.Asserts.assertEquals(Asserts.java:189)
[2023-04-24T17:31:20.270Z] 	at jdk.test.lib.Asserts.assertEQ(Asserts.java:166)
[2023-04-24T17:31:20.270Z] 	at HttpsCB.main(HttpsCB.java:193)
[2023-04-24T17:31:20.270Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2023-04-24T17:31:20.270Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2023-04-24T17:31:20.270Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
[2023-04-24T17:31:20.270Z] 	at java.base/java.lang.Thread.run(Thread.java:1639)
[2023-04-24T17:31:20.270Z] 
[2023-04-24T17:31:20.270Z] JavaTest Message: Test threw exception: java.lang.RuntimeException: assertEquals: expected false to equal true

[2023-04-24T17:31:21.569Z] TEST: sun/security/krb5/auto/KdcPolicy.java

[2023-04-24T17:31:21.571Z] --------------- ERROR END ---------------
[2023-04-24T17:31:21.571Z] STDERR:
[2023-04-24T17:31:21.571Z] java.lang.Exception: Does not match. Output is c30000-
[2023-04-24T17:31:21.571Z] 	at KdcPolicy.test(KdcPolicy.java:299)
[2023-04-24T17:31:21.571Z] 	at KdcPolicy.run(KdcPolicy.java:107)
[2023-04-24T17:31:21.571Z] 	at KdcPolicy.main0(KdcPolicy.java:85)
[2023-04-24T17:31:21.571Z] 	at KdcPolicy.main(KdcPolicy.java:58)
[2023-04-24T17:31:21.571Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[2023-04-24T17:31:21.571Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[2023-04-24T17:31:21.571Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
[2023-04-24T17:31:21.571Z] 	at java.base/java.lang.Thread.run(Thread.java:1639)
[2023-04-24T17:31:21.571Z] 
[2023-04-24T17:31:21.571Z] JavaTest Message: Test threw exception: java.lang.Exception: Does not match. Output is c30000-

[2023-04-24T17:31:50.050Z] TEST: sun/security/krb5/auto/ReferralsTest.java

[2023-04-24T17:31:50.051Z] JavaTest Message: Test threw exception: javax.security.auth.login.LoginException: Too short

[2023-04-24T17:31:50.051Z] TEST RESULT: Failed. Execution failed: `main' threw exception: javax.security.auth.login.LoginException: Too short
[2023-04-24T17:31:50.051Z] --------------------------------------------------
[2023-04-24T17:32:46.340Z] Test results: passed: 146; failed: 6
[2023-04-24T17:32:46.340Z] Report written to /Users/jenkins/workspace/Test_openjdk20_j9_extended.openjdk_aarch64_mac/aqa-tests/TKG/output_16823545846257/jdk_security4_1/report/html/report.html
[2023-04-24T17:32:46.340Z] Results written to /Users/jenkins/workspace/Test_openjdk20_j9_extended.openjdk_aarch64_mac/aqa-tests/TKG/output_16823545846257/jdk_security4_1/work
[2023-04-24T17:32:46.340Z] Error: Some tests failed or other problems occurred.
[2023-04-24T17:32:46.709Z] -----------------------------------
[2023-04-24T17:32:46.709Z] jdk_security4_1_FAILED

50x internal grinder - all failed

Also seen JDK20 ppc64_aix JDK20 ppc64le_linux

@pshipton
Copy link
Member

pshipton commented May 3, 2023

Seems like a dup of #17279

@JasonFengJ9
Copy link
Member Author

Closing..

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

2 participants