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

JDK23 jdk_security3_0_FAILED sun/security/ec/ECDHKeyAgreementParamValidation.java No exception was thrown. Expected: java.security.InvalidKeyException #19500

Closed
JasonFengJ9 opened this issue May 14, 2024 · 4 comments

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented May 14, 2024

Failure link

From an internal build(rhel9-aarch64-8):

16:14:15  openjdk version "23-internal" 2024-09-17
16:14:15  OpenJDK Runtime Environment (build 23-internal-adhoc.jenkins.BuildJDKnextaarch64linuxPersonal)
16:14:15  Eclipse OpenJ9 VM (build master-0e3af5dfb24, JRE 23 Linux aarch64-64-Bit Compressed References 20240509_110 (JIT enabled, AOT enabled)
16:14:15  OpenJ9   - 0e3af5dfb24
16:14:15  OMR      - 1bcf9698259
16:14:15  JCL      - e746df70557 based on jdk-23+21)

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

Optional info

Failure output (captured from console output)

17:08:19  variation: Mode150
17:08:19  JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog 

17:26:54  TEST: sun/security/ec/ECDHKeyAgreementParamValidation.java

17:26:54  STDERR:
17:26:54  java.lang.RuntimeException: No exception was thrown. Expected: java.lang.IllegalStateException
17:26:54  	at jdk.test.lib.Asserts.assertThrows(Asserts.java:649)
17:26:54  	at jdk.test.lib.Asserts.assertThrows(Asserts.java:622)
17:26:54  	at ECDHKeyAgreementParamValidation.testInitWithInvalidKey(ECDHKeyAgreementParamValidation.java:69)
17:26:54  	at ECDHKeyAgreementParamValidation.main(ECDHKeyAgreementParamValidation.java:103)
17:26:54  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
17:26:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
17:26:54  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
17:26:54  	at java.base/java.lang.Thread.run(Thread.java:1587)
17:26:54  java.lang.RuntimeException: No exception was thrown. Expected: java.security.InvalidKeyException
17:26:54  	at jdk.test.lib.Asserts.assertThrows(Asserts.java:649)
17:26:54  	at jdk.test.lib.Asserts.assertThrows(Asserts.java:622)
17:26:54  	at ECDHKeyAgreementParamValidation.testDoPhaseWithInvalidKey(ECDHKeyAgreementParamValidation.java:91)
17:26:54  	at ECDHKeyAgreementParamValidation.main(ECDHKeyAgreementParamValidation.java:110)
17:26:54  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
17:26:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
17:26:54  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
17:26:54  	at java.base/java.lang.Thread.run(Thread.java:1587)
17:26:54  java.lang.RuntimeException: Test failed
17:26:54  	at ECDHKeyAgreementParamValidation.main(ECDHKeyAgreementParamValidation.java:117)
17:26:54  	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
17:26:54  	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
17:26:54  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
17:26:54  	at java.base/java.lang.Thread.run(Thread.java:1587)
17:26:54  
17:26:54  JavaTest Message: Test threw exception: java.lang.RuntimeException

18:03:03  Test results: passed: 947; failed: 2
18:03:20  Report written to /home/jenkins/workspace/Test_openjdknext_j9_extended.openjdk_aarch64_linux_Personal/aqa-tests/TKG/output_17152858802048/jdk_security3_0/report/html/report.html
18:03:20  Results written to /home/jenkins/workspace/Test_openjdknext_j9_extended.openjdk_aarch64_linux_Personal/aqa-tests/TKG/output_17152858802048/jdk_security3_0/work
18:03:20  Error: Some tests failed or other problems occurred.
18:03:20  -----------------------------------
18:03:20  jdk_security3_0_FAILED

50x internal grinder - same as #19499

  • all failed
@pshipton
Copy link
Member

@jasonkatonica @KostasTsiounis fyi

@KostasTsiounis
Copy link
Contributor

I added some code through ibmruntimes/openj9-openjdk-jdk#788 that seemed to fix that. Did you try with the latest openj9 branch?

@JasonFengJ9
Copy link
Member Author

The fix was merged yesterday which wasn't included in the failing JVM.
Just launched another JDK23 build.

@JasonFengJ9
Copy link
Member Author

This failure is not seen in the latest JDK23 build aarch64_linux

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

3 participants