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

jdk_security3_1 sun/security/x509/AlgorithmId/NonStandardNames.java BadPaddingException: RSA private key operation failed #20915

Open
JasonFengJ9 opened this issue Jan 10, 2025 · 0 comments

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Jan 10, 2025

Failure link

From internal Test_openjdk17_j9_extended.openjdk_s390x_linux_testList_1 (rtj-ubu22s390x-svl-testmbcs-alkas-1)

java version "17.0.14-beta" 2025-01-21
IBM Semeru Runtime Certified Edition 17.0.14+6-202501041531 (build 17.0.14-beta+6-202501041531)
Eclipse OpenJ9 VM 17.0.14+6-202501041531 (build master-b0ab9a37c2, JRE 17 Linux s390x-64-Bit Compressed References 20250104_870 (JIT enabled, AOT enabled)
OpenJ9   - b0ab9a37c2
OMR      - 3ddaad3c1
JCL      - a14738d7dd based on jdk-17.0.14+6)

Rerun in Grinder - Change TARGET to run only the failed test targets

Optional info

Failure output (captured from console output)

[2025-01-04T17:07:49.680Z] variation: Mode650
[2025-01-04T17:07:49.680Z] JVM_OPTIONS:  -XX:-UseCompressedOops -Xverbosegclog 

[2025-01-04T18:53:19.873Z] TEST: sun/security/x509/AlgorithmId/NonStandardNames.java

[2025-01-04T18:53:19.875Z] STDERR:
[2025-01-04T18:53:19.875Z] java.security.SignatureException: Could not sign data
[2025-01-04T18:53:19.875Z] 	at java.base/sun.security.rsa.RSASignature.engineSign(RSASignature.java:197)
[2025-01-04T18:53:19.875Z] 	at java.base/java.security.Signature$Delegate.engineSign(Signature.java:1423)
[2025-01-04T18:53:19.875Z] 	at java.base/java.security.Signature.sign(Signature.java:712)
[2025-01-04T18:53:19.875Z] 	at java.base/sun.security.x509.X509CertImpl.sign(X509CertImpl.java:570)
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.x509.X509CertImpl.sign(X509CertImpl.java:525)
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.tools.keytool.CertAndKeyGen.getSelfCertificate(CertAndKeyGen.java:345)
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.tools.keytool.CertAndKeyGen.getSelfCertificate(CertAndKeyGen.java:293)
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.tools.keytool.CertAndKeyGen.getSelfCertificate(CertAndKeyGen.java:361)
[2025-01-04T18:53:19.876Z] 	at NonStandardNames.main(NonStandardNames.java:60)
[2025-01-04T18:53:19.876Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2025-01-04T18:53:19.876Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2025-01-04T18:53:19.876Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2025-01-04T18:53:19.876Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:575)
[2025-01-04T18:53:19.876Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
[2025-01-04T18:53:19.876Z] 	at java.base/java.lang.Thread.run(Thread.java:853)
[2025-01-04T18:53:19.876Z] Caused by: javax.crypto.BadPaddingException: RSA private key operation failed
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.rsa.NativeRSACore.crtCrypt_Native(NativeRSACore.java:149)
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.rsa.NativeRSACore.rsa(NativeRSACore.java:91)
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.rsa.RSACore.rsa(RSACore.java:150)
[2025-01-04T18:53:19.876Z] 	at java.base/sun.security.rsa.RSASignature.engineSign(RSASignature.java:194)
[2025-01-04T18:53:19.876Z] 	... 14 more

[2025-01-04T19:10:09.174Z] Test results: passed: 860; failed: 1; error: 1
[2025-01-04T19:10:28.511Z] Report written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_s390x_linux_testList_1/aqa-tests/TKG/output_17360074592151/jdk_security3_1/report/html/report.html
[2025-01-04T19:10:28.511Z] Results written to /home/jenkins/workspace/Test_openjdk17_j9_extended.openjdk_s390x_linux_testList_1/aqa-tests/TKG/output_17360074592151/jdk_security3_1/work
[2025-01-04T19:10:28.511Z] Error: Some tests failed or other problems occurred.
[2025-01-04T19:10:28.511Z] -----------------------------------
[2025-01-04T19:10:28.511Z] jdk_security3_1_FAILED

50x internal Grinder
A few different failures:

21:58:55  TEST: sun/security/x509/X509CertImpl/V3Certificate.java

21:58:55  STDERR:
21:58:55  java.security.SignatureException: Signature does not match.
21:58:55  	at java.base/sun.security.x509.X509CertImpl.verify(X509CertImpl.java:450)
21:58:55  	at java.base/sun.security.x509.X509CertImpl.verify(X509CertImpl.java:384)
21:58:55  	at V3Certificate.test(V3Certificate.java:217)
21:58:55  	at V3Certificate.main(V3Certificate.java:77)
21:58:55  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

18:49:54  TEST: sun/security/tools/jarsigner/TimestampCheck.java

18:49:54  keytool error: java.security.SignatureException: Could not sign data


19:31:14  TEST: sun/security/rsa/SignatureOffsets.java

19:31:14  TEST RESULT: Error. Agent error: java.lang.Exception: Agent 14 timed out with a timeout of 960 seconds; check console log for any additional details
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

1 participant