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

JCK13a 64bit 21 api/java_security tests hang using d64, d64Xint passed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.4.0
    • hotspot
    • sparc
    • solaris_8

      JDK : 1.4.0-beta-b62
      JCK : jck1.3a
      Platform[s] : Solaris Sparc
      switch/Mode : -d64 ---> hang
                       -d64 Xcomp ---> failed. (not hang)
                       client (Xmixed, Xint, Xcomp) ---> passed.
                       server (Xmixed, Xint, Xcomp) ---> passed.
                       -d64 (Xint) ---> passed.

      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
      Failing Test :

       1) api/java_security/KeyFactory/KeyFactoryTests.html#getKeySpecTests
           api/java_security/spec/X509EncodedKeySpec/X509EncodedKeySpecTests.html#CtorGetTests
           api/java_security/spec/PKCS8EncodedKeySpec/PKCS8EncodedKeySpecTests.html#CtorGetTests
           api/java_security/KeyPairGenerator/KeyPairGeneratorTests.html#generateKeyPair
           api/java_security/spec/PKCS8EncodedKeySpec/PKCS8EncodedKeySpecTests.html#getFormatTests
           api/java_security/spec/X509EncodedKeySpec/X509EncodedKeySpecTests.html#getFormatTests
           api/java_security/KeyPair/KeyPairTests.html#getPrivate
           api/java_security/KeyPair/KeyPairTests.html#getPublic
           api/java_security/Signature/SignatureTests.html#initSign
           api/java_security/Signature/SignatureTests.html#initVerify
           api/java_security/Signature/SignatureTests.html#toString
           api/java_security/Signature/SignatureTests.html#update
           api/java_security/Signature/SignatureTests.html#verify
           api/java_security/KeyFactory/KeyFactoryTests.html#generatePrivateTests
           api/java_security/KeyFactory/KeyFactoryTests.html#generatePublicTests
           api/java_security/KeyFactory/KeyFactoryTests.html#miscTests
           api/java_security/SignedObject/SignedObjectTests.html#CtorGetTests
           api/java_security/SignedObject/SignedObjectTests.html#getSignatureTests
           api/java_security/SignedObject/SignedObjectTests.html#verifyTests
           api/java_security/Signer/SignerTests.html#keymethods
      21) api/java_security/Signature/SignatureTests.html#signTests

      Test source location:
      =====================

      1) /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_security/KeyFactory/getKeySpecTests.java



      jtr file location:
      ==================
      1) file:///net/jtgb4u4c/export/sail16/results/merlin/b62/jck13a/sparc/s7_d64_headless_ultraowl/workDir/api/java_security/KeyFactory/KeyFactoryTests_getKeySpecTests.jtr


      How to reproduce:
      ====================
      Run the attached script
          security_KeyFactory.ksh -d64
          security_KeyFactory.ksh -d64 -Xcomp

      --------Script START---------------------
      #!/bin/ksh
      SWITCH=${1+$@}
      JDK=/net/jdk/export/disk8/local.java/jdk1.4
      TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
      JCK=${TESTBASE}/JCK-runtime-13a
      executeClass=javasoft.sqe.tests.api.java.security.KeyFactory.getKeySpecTests
      excludeCmd=
      #executeClassArgs=
      executeTestURL=
      headless=

      #executeContextArgs is used for vm testing.
      executeContextArgs=
      case `uname -s` in
        SunOS)
         ARCH=`uname -p`
         case $ARCH in
          sparc)
            sharedJDK=$JDK/solsparc
            ;;
          i386)
            sharedJDK=$JDK/solx86
            ;;
         esac
         ;;
        Linux)
         sharedJDK=$JDK/linux-i386
         ARCH=linux
         ;;
      esac

      CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
      DISPLAY=${DISPLAY-$HOST:0.0}

      if `echo $SWITCH|grep "\-d64" >/dev/null`; then
        LD_LIBRARY_PATH=${JCK}/lib/sparcv9
      else
        LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
      fi
      PATH=$JDK/bin:$sharedJDK/bin:$PATH
      export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
      echo
      java ${SWITCH} -version
      echo
      java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.rmi.activation.port=${executeClass} -Djava.awt.headless=${headless} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
      --------Script END----------------------

      Test output:
      =============
      No test output. Test hang.




      -d64 -Xcomp error:
      --------------------
      Provider SUN, algorithm DSA: Passed. All KeyFactory.getKeySpec() tests passed.
      java.lang.ArrayIndexOutOfBoundsException
              at COM.rsa.jsafe.fl.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.b([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.b([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fi.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fi.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.da.c([DashoPro-V1.2-120198])
              at com.sun.net.ssl.internal.ssl.JS_KeyPairGenerator.generateKeyPair([DashoPro-V1.2-120198])
              at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:478)
              at javasoft.sqe.tests.api.java.security.KeyFactory.getKeySpecTests.getKeySpec001(getKeySpecTests.java:58)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
              at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
              at java.lang.reflect.Method.invoke(Method.java:306)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:409)
              at javasoft.sqe.jck.lib.ProviderTest.invokeTestCase(ProviderTest.java:125)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:205)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:137)
              at javasoft.sqe.tests.api.java.security.KeyFactory.getKeySpecTests.main(getKeySpecTests.java:201)
      getKeySpec001: Failed. Test case throws exception: java.lang.ArrayIndexOutOfBoundsException
      Provider SUN, algorithm DSA: Passed. All KeyFactory.getKeySpec() tests passed.
      java.lang.ArrayIndexOutOfBoundsException
              at COM.rsa.jsafe.fl.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.b([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.b([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fi.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fi.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.fl.a([DashoPro-V1.2-120198])
              at COM.rsa.jsafe.da.c([DashoPro-V1.2-120198])
              at com.sun.net.ssl.internal.ssl.JS_KeyPairGenerator.generateKeyPair([DashoPro-V1.2-120198])
              at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:478)
              at javasoft.sqe.tests.api.java.security.KeyFactory.getKeySpecTests.getKeySpec002(getKeySpecTests.java:139)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
              at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
              at java.lang.reflect.Method.invoke(Method.java:306)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:409)
              at javasoft.sqe.jck.lib.ProviderTest.invokeTestCase(ProviderTest.java:125)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:205)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:137)
              at javasoft.sqe.tests.api.java.security.KeyFactory.getKeySpecTests.main(getKeySpecTests.java:201)
      getKeySpec002: Failed. Test case throws exception: java.lang.ArrayIndexOutOfBoundsException
       Run test using SUN provider as DSA algorithm provider for KeyPairGenerator engine
      Encoding returned by getKeySpec() is valid.(Passed)
       Run test using SunJSSE provider as RSA algorithm provider for KeyPairGenerator engine
       Run test using SUN provider as DSA algorithm provider for KeyPairGenerator engine
      getKeySpecTests: Expected exception received.(Passed)
      getKeySpecTests: Expected exception received.(Passed)
       Run test using SunJSSE provider as RSA algorithm provider for KeyPairGenerator engine
      STATUS:Failed.tests: 2; failed: 2; first test case failure: getKeySpec001


      Specific Machine Info:
      =====================

       
      SunOS jtg-s120 5.8 Generic sun4u sparc SUNW,Ultra-60




      takwing.cheung@Eng 2001-05-01

            phh Paul Hohensee
            tacheung Tak Wing Cheung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: