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

sun/security/mscapi/SignatureOffsets.java failed with "SignatureException: error 31, A device attached to the system is not functioning."

XMLWordPrintable

      The following test failed in the JDK20 CI:

      sun/security/mscapi/SignatureOffsets.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/272)----------
      command: main SignatureOffsets SunMSCAPI MD2withRSA
      reason: User specified action: run main SignatureOffsets SunMSCAPI MD2withRSA
      started: Wed Nov 30 22:24:16 UTC 2022
      Mode: agentvm
      Agent id: 28
      finished: Wed Nov 30 22:24:16 UTC 2022
      elapsed time (seconds): 0.081
      ----------configuration:(14/1331)*----------

      <snip>

      ----------System.out:(2/78)----------
      Seed from RandomFactory = 4349104762795176094L
      Testing signature MD2withRSA
      ----------System.err:(18/1014)----------
      java.security.SignatureException: error 31, A device attached to the system is not functioning.

      at jdk.crypto.mscapi/sun.security.mscapi.CSignature.signHash(Native Method)
      at jdk.crypto.mscapi/sun.security.mscapi.CSignature$RSA.engineSign(CSignature.java:220)
      at java.base/java.security.Signature$Delegate.engineSign(Signature.java:1410)
      at java.base/java.security.Signature.sign(Signature.java:713)
      at Offsets.<init>(Offsets.java:70)
      at Offsets.init(Offsets.java:138)
      at Offsets.main(Offsets.java:149)
      at SignatureOffsets.main(SignatureOffsets.java:53)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:1591)

      JavaTest Message: Test threw exception: java.security.SignatureException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.security.SignatureException: error 31, A device attached to the system is not functioning.

            wetmore Bradford Wetmore
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: