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

JDK17 Windows jdk_security4_0_FAILED ProviderException: Could not load dependent ock library #20321

Closed
JasonFengJ9 opened this issue Oct 8, 2024 · 7 comments

Comments

@JasonFengJ9
Copy link
Member

Failure link

From internal Test_openjdk17_j9_sanity.openjdk_x86-64_windows_fips140_3_openjceplusfips_testList_1 (win19x86-rtp-rt7-1)

openjdk version "17.0.13" 2024-10-15
IBM Semeru Runtime Open Edition 17.0.13.0-m1 (build 17.0.13+10)
Eclipse OpenJ9 VM 17.0.13.0-m1 (build v0.48.0-release-8899b66789, JRE 17 Windows Server 2019 amd64-64-Bit Compressed References 20241015_811 (JIT enabled, AOT enabled)
OpenJ9   - 8899b66789
OMR      - f8f0d789a
JCL      - 8e2f05376ed based on jdk-17.0.13+10)

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

Optional info

Failure output (captured from console output)

[2024-10-07T18:13:11.907Z] variation: Mode150
[2024-10-07T18:13:13.269Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog  -Dsemeru.fips=true -Dsemeru.customprofile=OpenJCEPlusFIPS

[2024-10-07T18:17:50.191Z] TEST: sun/security/krb5/auto/principalProperty/PrincipalSystemPropTest.java

[2024-10-07T18:17:50.219Z] Caused by: java.lang.ExceptionInInitializerError
[2024-10-07T18:17:50.219Z] 	at java.base/java.lang.J9VMInternals.ensureError(J9VMInternals.java:206)
[2024-10-07T18:17:50.219Z] 	at java.base/java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:195)
[2024-10-07T18:17:50.219Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.OCKContext.createContext(OCKContext.java:38)
[2024-10-07T18:17:50.219Z] 	at openjceplus/com.ibm.crypto.plus.provider.OpenJCEPlusFIPS.initializeContext(OpenJCEPlusFIPS.java:760)
[2024-10-07T18:17:50.219Z] 	... 43 more
[2024-10-07T18:17:50.220Z] Caused by: java.security.ProviderException: Could not load dependent ock library
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface.preloadOCK(NativeInterface.java:314)
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface$1.run(NativeInterface.java:54)
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface$1.run(NativeInterface.java:47)
[2024-10-07T18:17:50.220Z] 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:692)
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface.<clinit>(NativeInterface.java:47)
[2024-10-07T18:17:50.220Z] 	... 45 more
[2024-10-07T18:17:50.220Z] 
[2024-10-07T18:17:50.220Z] JavaTest Message: Test threw exception: java.lang.ExceptionInInitializerError

[2024-10-07T18:53:34.541Z] Test results: passed: 147; failed: 1
[2024-10-07T18:54:08.137Z] Report written to C:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_fips140_3_openjceplusfips_testList_1\aqa-tests\TKG\output_17283221842901\jdk_security4_0\report\html\report.html
[2024-10-07T18:54:08.137Z] Results written to C:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_fips140_3_openjceplusfips_testList_1\aqa-tests\TKG\output_17283221842901\jdk_security4_0\work
[2024-10-07T18:54:08.137Z] Error: Some tests failed or other problems occurred.
[2024-10-07T18:54:08.137Z] -----------------------------------
[2024-10-07T18:54:08.137Z] jdk_security4_0_FAILED

There was a similar issue

Copy link

github-actions bot commented Oct 8, 2024

Issue Number: 20321
Status: Open
Recommended Components: comp:jclextensions, comp:vm, comp:gc
Recommended Assignees: jasonfengj9, pshipton, longyuzhang

@pshipton
Copy link
Member

pshipton commented Oct 8, 2024

@jasonkatonica pls take a look. This is from 0.48 M1 testing.

@jasonkatonica
Copy link
Contributor

This test should be ignored once the two remaining PRs for the windows ignore lists are merged into Java 17 and 11:

Windows specific list on 17:

Windows specific list on 11:

I did validate that the FIPS libraries load OK by manually using the builds found here for the M1 .48 release to ensure this is not the same issue we ran into with #19986 where the libraries were completely missing.

@pshipton
Copy link
Member

pshipton commented Oct 9, 2024

The jdk17 exclude list is merged now, and also included in the v0.48.0-release branch.

@pshipton pshipton closed this as completed Oct 9, 2024
Copy link

github-actions bot commented Oct 9, 2024

Issue Number: 20321
Status: Closed
Actual Components: test failure, comp:crypto
Actual Assignees: No one :(
PR Assignees: No one :(

@sebm123
Copy link

sebm123 commented Jan 4, 2025

Failure link

From internal Test_openjdk17_j9_sanity.openjdk_x86-64_windows_fips140_3_openjceplusfips_testList_1 (win19x86-rtp-rt7-1)

openjdk version "17.0.13" 2024-10-15
IBM Semeru Runtime Open Edition 17.0.13.0-m1 (build 17.0.13+10)
Eclipse OpenJ9 VM 17.0.13.0-m1 (build v0.48.0-release-8899b66789, JRE 17 Windows Server 2019 amd64-64-Bit Compressed References 20241015_811 (JIT enabled, AOT enabled)
OpenJ9   - 8899b66789
OMR      - f8f0d789a
JCL      - 8e2f05376ed based on jdk-17.0.13+10)

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

Optional info

Failure output (captured from console output)

[2024-10-07T18:13:11.907Z] variation: Mode150
[2024-10-07T18:13:13.269Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog  -Dsemeru.fips=true -Dsemeru.customprofile=OpenJCEPlusFIPS

[2024-10-07T18:17:50.191Z] TEST: sun/security/krb5/auto/principalProperty/PrincipalSystemPropTest.java

[2024-10-07T18:17:50.219Z] Caused by: java.lang.ExceptionInInitializerError
[2024-10-07T18:17:50.219Z] 	at java.base/java.lang.J9VMInternals.ensureError(J9VMInternals.java:206)
[2024-10-07T18:17:50.219Z] 	at java.base/java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:195)
[2024-10-07T18:17:50.219Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.OCKContext.createContext(OCKContext.java:38)
[2024-10-07T18:17:50.219Z] 	at openjceplus/com.ibm.crypto.plus.provider.OpenJCEPlusFIPS.initializeContext(OpenJCEPlusFIPS.java:760)
[2024-10-07T18:17:50.219Z] 	... 43 more
[2024-10-07T18:17:50.220Z] Caused by: java.security.ProviderException: Could not load dependent ock library
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface.preloadOCK(NativeInterface.java:314)
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface$1.run(NativeInterface.java:54)
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface$1.run(NativeInterface.java:47)
[2024-10-07T18:17:50.220Z] 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:692)
[2024-10-07T18:17:50.220Z] 	at openjceplus/com.ibm.crypto.plus.provider.ock.NativeInterface.<clinit>(NativeInterface.java:47)
[2024-10-07T18:17:50.220Z] 	... 45 more
[2024-10-07T18:17:50.220Z] 
[2024-10-07T18:17:50.220Z] JavaTest Message: Test threw exception: java.lang.ExceptionInInitializerError

[2024-10-07T18:53:34.541Z] Test results: passed: 147; failed: 1
[2024-10-07T18:54:08.137Z] Report written to C:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_fips140_3_openjceplusfips_testList_1\aqa-tests\TKG\output_17283221842901\jdk_security4_0\report\html\report.html
[2024-10-07T18:54:08.137Z] Results written to C:\Users\jenkins\workspace\Test_openjdk17_j9_sanity.openjdk_x86-64_windows_fips140_3_openjceplusfips_testList_1\aqa-tests\TKG\output_17283221842901\jdk_security4_0\work
[2024-10-07T18:54:08.137Z] Error: Some tests failed or other problems occurred.
[2024-10-07T18:54:08.137Z] -----------------------------------
[2024-10-07T18:54:08.137Z] jdk_security4_0_FAILED

There was a similar issue

@JasonFengJ9
Copy link
Member Author

Eclipse OpenJ9 VM 17.0.13.0-m1 (build v0.48.0-release-8899b66789, JRE 17 Windows Server 2019 amd64-64-Bit Compressed References 20241015_811 (JIT enabled, AOT enabled)

This is a m1 build. The test has been excluded in release and head streams.

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

4 participants