Open JasonFengJ9 opened 2 years ago
These failures are occurring in the 0.33 M2 build, in both jdk_security3_0 and jdk_security3_1, on the same machine ub20x64rt1-3. /job/Test_openjdk8_j9_extended.openjdk_x86-64_linux/70/
Trying a single re-run of jdk_security3_0 in a grinder /job/Grinder/25726 (ubu22x86-rt2-1), which failed the same way.
Also this failure sun/security/pkcs11/KeyStore/SecretKeysBasic.sh
08:57:26 Running test with provider SunPKCS11-nss (security manager disabled) ...
08:57:26 softkey> javax.crypto.spec.SecretKeySpec@fffe81a3
08:57:26 ALGO=AES
08:57:26 [RAW] VALUE=6845FA82B7369647DCA94D80CB385FC3
08:57:26 skey1> SunPKCS11-nss DESede secret key, 168 bitssession object, not sensitive, extractable)
08:57:26 ALGO=DESede
08:57:26 [RAW] VALUE=341F51AD29704A7AA252C2C4A7583B315886DC34F264C2A8
08:57:26 skey2> SunPKCS11-nss DESede secret key, 168 bitssession object, not sensitive, extractable)
08:57:26 ALGO=DESede
08:57:26 [RAW] VALUE=790161028CDA9EE0919EB0B32A765D0D6BB6A82620D9C892
08:57:26 libsoftokn3 version not found, set to 0.0: /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
08:57:26 libnss3 version not found, set to 0.0: /usr/lib/x86_64-linux-gnu/nss/libnss3.so
08:57:26 Number of entries: 0
08:57:26 Test against nss Failed!
08:57:26 STDERR:
08:57:26 java.io.FileNotFoundException: /usr/lib/x86_64-linux-gnu/nss/libnss3.so (No such file or directory)
08:57:26 at java.io.FileInputStream.open(FileInputStream.java:195)
08:57:26 at java.io.FileInputStream.<init>(FileInputStream.java:138)
08:57:26 at java.io.FileInputStream.<init>(FileInputStream.java:93)
08:57:26 at PKCS11Test.getNSSInfo(PKCS11Test.java:363)
08:57:26 at PKCS11Test.getLibnss3Version(PKCS11Test.java:329)
08:57:26 at SecretKeysBasic.doTest(SecretKeysBasic.java:144)
08:57:26 at SecretKeysBasic.main(SecretKeysBasic.java:84)
08:57:26 at PKCS11Test.premain(PKCS11Test.java:125)
08:57:26 at PKCS11Test.testNSS(PKCS11Test.java:487)
08:57:26 at PKCS11Test.main(PKCS11Test.java:156)
08:57:26 at PKCS11Test.main(PKCS11Test.java:137)
08:57:26 at SecretKeysBasic.main(SecretKeysBasic.java:47)
08:57:26 Exception in thread "main" java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_SENSITIVE
08:57:26 at sun.security.pkcs11.P11Key$P11SecretKey.getEncodedInternal(P11Key.java:470)
08:57:26 at sun.security.pkcs11.P11Key.getEncoded(P11Key.java:163)
08:57:26 at SecretKeysBasic.checkSecretKeyEntry(SecretKeysBasic.java:121)
08:57:26 at SecretKeysBasic.doTest(SecretKeysBasic.java:167)
08:57:26 at SecretKeysBasic.main(SecretKeysBasic.java:84)
08:57:26 at PKCS11Test.premain(PKCS11Test.java:125)
08:57:26 at PKCS11Test.testNSS(PKCS11Test.java:487)
08:57:26 at PKCS11Test.main(PKCS11Test.java:156)
08:57:26 at PKCS11Test.main(PKCS11Test.java:137)
08:57:26 at SecretKeysBasic.main(SecretKeysBasic.java:47)
08:57:26 Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_SENSITIVE
08:57:26 at sun.security.pkcs11.P11Key$P11SecretKey.getEncodedInternal(P11Key.java:467)
08:57:26 ... 9 more
Ran sun/security/pkcs11/Secmod/GetPrivateKey.java by itself (/job/Grinder/25729 - ub20x64rt1-5, /job/Grinder/25730 - ub20x64rt1-3) which passed.
Running jdk_security3_0 using the 0.32 release build. GetPrivateKey.java & JksSetPrivateKey.java are still failing the same way. /job/Grinder/25731 - ub20x64rt3-8
@alon-sh any ideas about these failures? They only seem to fail when the entire group jdk_security3 is run.
Trying with -Djdk.nativeCrypto=false
/job/Grinder/25737 - cent7x64-1-9 - passed
/job/Grinder/25738 - ub18x64cudavm2 - passed
/job/Grinder/25739 - ub20x64rt4-2 - failed
sun/security/pkcs11/KeyStore/SecretKeysBasic.sh failed with "PKCS11Exception: CKR_ATTRIBUTE_SENSITIVE" This test has been excluded for RI JDK8 - https://github.com/adoptium/aqa-tests/blob/55ffc854ffd54cd3ecca6b838a6d4ba3aea0440e/openjdk/excludes/ProblemList_openjdk8.txt#L295
RI JDK8 failed sun/security/pkcs11/Secmod/GetPrivateKey.java
& sun/security/pkcs11/Secmod/JksSetPrivateKey.java
as well - job/Grinder/25733/console
- ub20x64rt3-9
Will create exclude PR.
@pshipton looks like nss cryptographic library is not installed properly on the machine. it cant find the shared lib.
rpm nss-3.67.0-7.el8_5.x86_64 or similar should be installed on the system. and yeah @JasonFengJ9 is right, the other tests should be excluded.
Created infrastructure/issues/7098
Failure link
From an internal build (
ub20x64rt1-3
):Rerun in Grinder - Change TARGET to run only the failed test targets.
Optional info
Failure output (captured from console output)
50x grinder -
job/Grinder/24536/
&job/Grinder/24537/
- all passed