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

Exclude intermittent failing PKCS11 tests on Solaris SPARC 11.1 and earlier

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: security-libs
    • Labels:

      Backports

        Description

        Several PKCS11 tests occasionally fail on Solaris SPARC servers running 11.1 or earlier:

            sun/security/pkcs11/Signature/ReinitSignature.java
            sun/security/pkcs11/Signature/TestDSA.java
            sun/security/pkcs11/Signature/TestRSAKeyLength.java
            sun/security/pkcs11/Signature/TestDSAKeyLength.java
            sun/security/pkcs11/Signature/ByteBuffers.java
            sun/security/pkcs11/rsa/TestSignatures.java
            sun/security/pkcs11/rsa/TestCACerts.java
            sun/security/pkcs11/ec/TestCurves.java
            sun/security/pkcs11/ec/TestECDSA.java
            sun/security/pkcs11/Signature/TestDSAKeyLength.java


        The failures are caused by a CKR_OPERATION_ACTIVE error in PKCS11.
        For example,

        java.security.ProviderException: Initialization failed
        at sun.security.pkcs11.P11Signature.initialize(P11Signature.java:344)
        at sun.security.pkcs11.P11Signature.engineInitSign(P11Signature.java:460)
        at java.security.Signature$Delegate.engineInitSign(Signature.java:1182)
        at java.security.Signature.initSign(Signature.java:527)
        at ReinitSignature.main(ReinitSignature.java:52)
        at PKCS11Test.premain(PKCS11Test.java:117)
        at PKCS11Test.testDefault(PKCS11Test.java:179)
        at PKCS11Test.main(PKCS11Test.java:127)
        at ReinitSignature.main(ReinitSignature.java:40)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:504)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
        at java.lang.Thread.run(Thread.java:746)

        Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_OPERATION_ACTIVE
        at sun.security.pkcs11.wrapper.PKCS11.C_SignInit(Native Method)
        at sun.security.pkcs11.P11Signature.initialize(P11Signature.java:336)
        ... 14 more


        The root cause is a Solaris bug already fixed in Solaris 11.2

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vinnie Vincent Ryan
                  Reporter:
                  vinnie Vincent Ryan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: