Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8278099

two sun/security/pkcs11/Signature tests failed with AssertionError

    XMLWordPrintable

    Details

      Backports

        Description

        The following tests failed in the JDK18 CI:

        sun/security/pkcs11/Signature/SignatureTestPSS2.java
        sun/security/pkcs11/Signature/SigInteropPSS2.java

        Here's a snippet from the SignatureTestPSS2.java log file:

        ----------System.err:(23/1377)----------
        java.lang.AssertionError
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.CK_MECHANISM.setParameter(CK_MECHANISM.java:167)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.ensureInitialized(P11PSSSignature.java:234)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.engineUpdate(P11PSSSignature.java:559)
        at java.base/java.security.Signature$Delegate.engineUpdate(Signature.java:1393)
        at java.base/java.security.Signature.update(Signature.java:902)
        at java.base/java.security.Signature.update(Signature.java:871)
        at SignatureTestPSS2.checkSignature(SignatureTestPSS2.java:115)
        at SignatureTestPSS2.test(SignatureTestPSS2.java:92)
        at SignatureTestPSS2.runTest(SignatureTestPSS2.java:85)
        at SignatureTestPSS2.main(SignatureTestPSS2.java:71)
        at PKCS11Test.premain(PKCS11Test.java:174)
        at PKCS11Test.testNSS(PKCS11Test.java:550)
        at PKCS11Test.main(PKCS11Test.java:210)
        at SignatureTestPSS2.main(SignatureTestPSS2.java:56)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:833)

        JavaTest Message: Test threw exception: java.lang.AssertionError
        JavaTest Message: shutting down test

        ----------System.out:(5/190)----------
        Beginning test run SignatureTestPSS2...
        nssLibDir: /usr/lib64/
        Running test with provider SunPKCS11-NSS (security manager disabled) ...
        [KEYSIZE = 2048]
        Testing against SHA224withRSASSA-PSS
        result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError


        Here's a snippet from the SigInteropPSS2.java log file:

        ----------System.out:(5/174)----------
        Beginning test run SigInteropPSS2...
        nssLibDir: /usr/lib64/
        Running test with provider SunPKCS11-NSS (security manager disabled) ...
        Sign: SunPKCS11-NSS
        Verify: SunRsaSign
        ----------System.err:(22/1288)----------
        java.lang.AssertionError
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.CK_MECHANISM.setParameter(CK_MECHANISM.java:167)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.ensureInitialized(P11PSSSignature.java:234)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11PSSSignature.engineUpdate(P11PSSSignature.java:559)
        at java.base/java.security.Signature$Delegate.engineUpdate(Signature.java:1393)
        at java.base/java.security.Signature.update(Signature.java:902)
        at java.base/java.security.Signature.update(Signature.java:871)
        at SigInteropPSS2.runTest(SigInteropPSS2.java:82)
        at SigInteropPSS2.main(SigInteropPSS2.java:71)
        at PKCS11Test.premain(PKCS11Test.java:174)
        at PKCS11Test.testNSS(PKCS11Test.java:550)
        at PKCS11Test.main(PKCS11Test.java:210)
        at SigInteropPSS2.main(SigInteropPSS2.java:48)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:833)

        JavaTest Message: Test threw exception: java.lang.AssertionError
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.AssertionError
        ----------rerun:(37/7856)*----------

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                valeriep Valerie Peng
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: