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

sun/security/pkcs11/KeyStore/SecretKeysBasic.sh failed due to libnss3 version cannot be parsed

    Details

      Backports

        Description

        #section:shell
        ----------messages:(3/299)----------
        command: shell SecretKeysBasic.sh To run by hand: %sh SecretKeysBasic.sh Note: . test only runs on solaris at the moment
        reason: User specified action: run shell SecretKeysBasic.sh To run by hand: %sh SecretKeysBasic.sh Note: . test only runs on solaris at the moment
        elapsed time (seconds): 1.179
        ----------System.out:(19/1195)----------
        TESTSRC=/scratch/sparky/jib-data/install/2017-08-11-0042469.igor.ignatyev.jdk10/src.full/jdk/test/sun/security/pkcs11/KeyStore
        TESTCLASSES=/scratch/opt/mach5/mesos/work_dir/slaves/ca9c629f-6e94-4849-b521-b9b7f564c9d3-S3027/frameworks/64239f35-8b28-43aa-8498-b450e7022f9d-0000/executors/8ebb7a70-356f-4843-a987-a8a80ed64376/runs/5161d44d-9495-4d2e-9194-8436a43d8801/testoutput/jtreg/JTwork/classes/4/sun/security/pkcs11/KeyStore/SecretKeysBasic.d
        TESTJAVA=/scratch/sparky/jib-data/install/2017-08-11-0042469.igor.ignatyev.jdk10/linux-x64-open.jdk/jdk-10

        DEBUG=

        libsoftokn3 version = 3.1623. ECC Basic.
        Beginning test run SecretKeysBasic...
        Running test with provider SunPKCS11-nss (security manager disabled) ...
        softkey> javax.crypto.spec.SecretKeySpec@16cd5
        ALGO=AES
        [RAW] VALUE=c8ae54c2806c5b6733781205ad7d2449
        skey1> SunPKCS11-nss DESede secret key, 168 bits (id 1, session object, not sensitive, extractable)
        ALGO=DESede
        [RAW] VALUE=4a3d8670948c8519b5dcead383fbf73b45e3089b3262d6d5
        skey2> SunPKCS11-nss DESede secret key, 168 bits (id 2, session object, not sensitive, extractable)
        ALGO=DESede
        [RAW] VALUE=972fec9bb931e5cb4597bc4cce0d2cf17331261319e30704
        Test against nss Failed!
        ----------System.err:(12/653)----------
        Exception in thread "main" java.lang.StringIndexOutOfBoundsException: begin 593, end -1, length 1000
        at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3118)
        at java.base/java.lang.String.substring(String.java:1886)
        at PKCS11Test.getNSSInfo(PKCS11Test.java:446)
        at PKCS11Test.getLibnss3Version(PKCS11Test.java:381)
        at SecretKeysBasic.doTest(SecretKeysBasic.java:146)
        at SecretKeysBasic.main(SecretKeysBasic.java:83)
        at PKCS11Test.premain(PKCS11Test.java:166)
        at PKCS11Test.testNSS(PKCS11Test.java:522)
        at PKCS11Test.main(PKCS11Test.java:202)
        at PKCS11Test.main(PKCS11Test.java:178)
        at SecretKeysBasic.main(SecretKeysBasic.java:46)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jjiang John Jiang
                  Reporter:
                  iignatyev Igor Ignatyev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: