$ make TEST=sun/security/pkcs11/Signature/SignatureTestPSS.java test CONF=linux-x86_64-server-fastdebug Using exact match for CONF=linux-x86_64-server-fastdebug (other matches are possible) Building target 'test' in configuration 'linux-x86_64-server-fastdebug' Test selection 'sun/security/pkcs11/Signature/SignatureTestPSS.java', will run: * jtreg:test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java Running test 'jtreg:test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java' [0.000s][warning][cds] The shared archive file version 0x11 does not match the required version 0x12. [0.002s][warning][cds] The shared archive file version 0x11 does not match the required version 0x12. [0.002s][warning][cds] The shared archive file has the wrong version. -------------------------------------------------- TEST: sun/security/pkcs11/Signature/SignatureTestPSS.java TEST JDK: /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/jdk ACTION: build -- Passed. Build successful REASON: Named class compiled on demand TIME: 1.727 seconds messages: command: build SignatureTestPSS reason: Named class compiled on demand started: Thu Jul 20 10:30:00 NZST 2023 Test directory: compile: SignatureTestPSS finished: Thu Jul 20 10:30:02 NZST 2023 elapsed time (seconds): 1.727 ACTION: compile -- Passed. Compilation successful REASON: .class file out of date or does not exist TIME: 1.726 seconds messages: command: compile /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java reason: .class file out of date or does not exist started: Thu Jul 20 10:30:00 NZST 2023 Additional options from @modules: --add-modules jdk.crypto.cryptoki Mode: agentvm Agent id: 1 finished: Thu Jul 20 10:30:02 NZST 2023 elapsed time (seconds): 1.726 configuration: Boot Layer (javac runtime environment) class path: /home/vladimirp/git/jtreg/build/images/jtreg/lib/javatest.jar /home/vladimirp/git/jtreg/build/images/jtreg/lib/jtreg.jar patch: java.base /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/patches/java.base javac compilation environment add modules: jdk.crypto.cryptoki source path: /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature /home/vladimirp/git/jdk/test/lib /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 class path: /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11 rerun: cd /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/scratch/0 && \ DISPLAY=:1 \ GNOME_DESKTOP_SESSION_ID=this-is-deprecated \ HOME=/home/vladimirp \ LANG=en_US.UTF-8 \ LC_ALL=C \ PATH=/bin:/usr/bin:/usr/sbin \ TEST_IMAGE_DIR=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/test \ XMODIFIERS=@im=ibus \ _JVM_DWARF_PATH=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/symbols \ /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/jdk/bin/javac \ -J-Xmx768m \ -J-XX:MaxRAMPercentage=1.5625 \ -J-Dtest.boot.jdk=/usr/lib/jvm/java-21-openjdk-amd64 \ -J-Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/tmp \ -J-ea \ -J-esa \ -J-Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=1.5625 -Dtest.boot.jdk=/usr/lib/jvm/java-21-openjdk-amd64 -Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/tmp -ea -esa' \ -J-Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=1.5625 -J-Dtest.boot.jdk=/usr/lib/jvm/java-21-openjdk-amd64 -J-Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/tmp -J-ea -J-esa' \ -J-Dtest.compiler.opts= \ -J-Dtest.java.opts= \ -J-Dtest.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/jdk \ -J-Dcompile.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/jdk \ -J-Dtest.timeout.factor=4.0 \ -J-Dtest.nativepath=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/test/jdk/jtreg/native \ -J-Dtest.root=/home/vladimirp/git/jdk/test/jdk \ -J-Dtest.name=sun/security/pkcs11/Signature/SignatureTestPSS.java \ -J-Dtest.file=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java \ -J-Dtest.src=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature \ -J-Dtest.src.path=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 \ -J-Dtest.classes=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d \ -J-Dtest.class.path=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11 \ -J-Dtest.class.path.prefix=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11 \ -J-Dtest.modules=jdk.crypto.cryptoki \ --add-modules jdk.crypto.cryptoki \ -d /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d \ -sourcepath /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 \ -classpath /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11 /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java direct: /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:172: warning: [removal] SecurityManager in java.lang has been deprecated and marked for removal System.setSecurityManager(new SecurityManager()); ^ /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:172: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal System.setSecurityManager(new SecurityManager()); ^ /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:184: warning: [removal] setSecurityManager(SecurityManager) in System has been deprecated and marked for removal System.setSecurityManager(null); ^ /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/PKCS11Test.java:930: warning: [removal] Policy in java.security has been deprecated and marked for removal Policy.setPolicy(null); // Clear the policy created by JIB if any ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 warnings ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.security.InvalidKeyException: java.security.ProviderException: Initialization failed REASON: User specified action: run main SignatureTestPSS TIME: 0.511 seconds messages: command: main SignatureTestPSS reason: User specified action: run main SignatureTestPSS started: Thu Jul 20 10:30:02 NZST 2023 Mode: agentvm Agent id: 2 finished: Thu Jul 20 10:30:02 NZST 2023 elapsed time (seconds): 0.511 configuration: Boot Layer class path: /home/vladimirp/git/jtreg/build/images/jtreg/lib/javatest.jar /home/vladimirp/git/jtreg/build/images/jtreg/lib/jtreg.jar /home/vladimirp/git/jtreg/build/images/jtreg/lib/junit-platform-console-standalone-1.8.2.jar /home/vladimirp/git/jtreg/build/images/jtreg/lib/testng-7.3.0.jar /home/vladimirp/git/jtreg/build/images/jtreg/lib/guice-4.2.3.jar /home/vladimirp/git/jtreg/build/images/jtreg/lib/jcommander-1.78.jar patch: java.base /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/patches/java.base Test Layer class path: /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib /home/vladimirp/git/jdk/test/lib /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11 /home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 rerun: cd /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/scratch/0 && \ DISPLAY=:1 \ GNOME_DESKTOP_SESSION_ID=this-is-deprecated \ HOME=/home/vladimirp \ LANG=en_US.UTF-8 \ LC_ALL=C \ PATH=/bin:/usr/bin:/usr/sbin \ TEST_IMAGE_DIR=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/test \ XMODIFIERS=@im=ibus \ _JVM_DWARF_PATH=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/symbols \ /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/jdk/bin/java \ -Dtest.vm.opts='-Xmx768m -XX:MaxRAMPercentage=1.5625 -Dtest.boot.jdk=/usr/lib/jvm/java-21-openjdk-amd64 -Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/tmp -ea -esa' \ -Dtest.tool.vm.opts='-J-Xmx768m -J-XX:MaxRAMPercentage=1.5625 -J-Dtest.boot.jdk=/usr/lib/jvm/java-21-openjdk-amd64 -J-Djava.io.tmpdir=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/tmp -J-ea -J-esa' \ -Dtest.compiler.opts= \ -Dtest.java.opts= \ -Dtest.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/jdk \ -Dcompile.jdk=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/jdk \ -Dtest.timeout.factor=4.0 \ -Dtest.nativepath=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/images/test/jdk/jtreg/native \ -Dtest.root=/home/vladimirp/git/jdk/test/jdk \ -Dtest.name=sun/security/pkcs11/Signature/SignatureTestPSS.java \ -Dtest.file=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java \ -Dtest.src=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature \ -Dtest.src.path=/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11 \ -Dtest.classes=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d \ -Dtest.class.path=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11 \ -Dtest.class.path.prefix=/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11 \ -Dtest.modules=jdk.crypto.cryptoki \ -classpath /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11/Signature/SignatureTestPSS.d:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11/Signature:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/test/lib:/home/vladimirp/git/jdk/test/lib:/home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/classes/0/sun/security/pkcs11:/home/vladimirp/git/jdk/test/jdk/sun/security/pkcs11:/home/vladimirp/git/jtreg/build/images/jtreg/lib/javatest.jar:/home/vladimirp/git/jtreg/build/images/jtreg/lib/jtreg.jar \ SignatureTestPSS STDERR: java.lang.RuntimeException: java.security.InvalidKeyException: java.security.ProviderException: Initialization failed at SignatureTestPSS.test(SignatureTestPSS.java:100) at SignatureTestPSS.runTest(SignatureTestPSS.java:88) at SignatureTestPSS.main(SignatureTestPSS.java:75) at PKCS11Test.premain(PKCS11Test.java:178) at PKCS11Test.testNSS(PKCS11Test.java:554) at PKCS11Test.main(PKCS11Test.java:214) at SignatureTestPSS.main(SignatureTestPSS.java:60) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312) at java.base/java.lang.Thread.run(Thread.java:1570) Caused by: java.security.InvalidKeyException: java.security.ProviderException: Initialization failed at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.engineInitSign(P11PSSSignature.java:547) at java.base/java.security.Signature$Delegate.engineInitSign(Signature.java:1357) at java.base/java.security.Signature.initSign(Signature.java:636) at SignatureTestPSS.checkSignature(SignatureTestPSS.java:140) at SignatureTestPSS.test(SignatureTestPSS.java:97) ... 10 more Caused by: java.security.ProviderException: Initialization failed at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.initialize(P11PSSSignature.java:344) at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.engineInitSign(P11PSSSignature.java:545) ... 14 more Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_MECHANISM_PARAM_INVALID at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_SignInit(Native Method) at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.initialize(P11PSSSignature.java:337) ... 15 more JavaTest Message: Test threw exception: java.lang.RuntimeException JavaTest Message: shutting down test STDOUT: Beginning test run SignatureTestPSS... Cannot resolve artifact, please check if JIB jar is present in classpath. nssLibDir: /usr/lib/x86_64-linux-gnu/ Running test with provider SunPKCS11-NSS (security manager disabled) ... [KEYSIZE = 2048] Testing against SHA-224 and MGF1_SHA-224 Testing against SHA-224 and MGF1_SHA-256 Testing against SHA-224 and MGF1_SHA-384 Testing against SHA-224 and MGF1_SHA-512 Testing against SHA-224 and MGF1_SHA3-224 TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.security.InvalidKeyException: java.security.ProviderException: Initialization failed -------------------------------------------------- Test results: failed: 1 Report written to /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-results/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java/html/report.html Results written to /home/vladimirp/git/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java Error: Some tests failed or other problems occurred. Finished running test 'jtreg:test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java' Test report is stored in build/linux-x86_64-server-fastdebug/test-results/jtreg_test_jdk_sun_security_pkcs11_Signature_SignatureTestPSS_java ============================== Test summary ============================== TEST TOTAL PASS FAIL ERROR jtreg:test/jdk/sun/security/pkcs11/Signature/SignatureTestPSS.java >> 1 0 1 0 << ============================== TEST FAILURE make[1]: *** [/home/vladimirp/git/jdk/make/Init.gmk:327: main] Error 1 make: *** [/home/vladimirp/git/jdk/make/Init.gmk:189: test] Error 2