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

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/de017e14bcf9
            User: vinnie
            Date: 2015-08-12 13:34:30 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/de017e14bcf9 User: vinnie Date: 2015-08-12 13:34:30 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/de017e14bcf9
            User: lana
            Date: 2015-08-19 22:04:45 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/de017e14bcf9 User: lana Date: 2015-08-19 22:04:45 +0000

              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: