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

REGRESSION: sun/security/provider/SeedGenerator/Fips.java failed

    Details

      Description



      Name: aaR10208 Date: 09/23/2003



      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b20
      Testbase : RegTest-test
      Platform[s] : Mercury
      switch/Mode : -server
      Falling test[s]: sun/security/provider/SeedGenerator/Fips.java

      RegTest-test sun/security/provider/SeedGenerator/Fips.java test fails on JDK1.5.0-b20 on Linux platform.
      The test passed with jdk1.5.0-b19 and jdk1.4.2-b28.


      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/all/b20/ws/j2se/test/sun/security/provider/SeedGenerator/Fips.java

      jtr file location:
      ==================
      /net/jtgb4u4c/export/sail15/results.2/tiger/b20/regtest/linux/mercury/workDir/test/sun/security/provider/SeedGenerator/Fips.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/sh
      #JDKHOME=/net/koori/onestop/jdk/1.5.0/promoted/all/b19
      JDKHOME=/net/koori/onestop/jdk/1.5.0/promoted/all/b20
      JDK=${JDKHOME}/binaries/linux-i586
      TESTBASE=${JDKHOME}/ws/j2se/test
      TEST=Fips
      TESTCLASSES=.
      TESTSRC=${TESTBASE}/sun/security/provider/SeedGenerator
      TESTJAVA=${JDK}
      export TESTCLASSES
      export TESTSRC
      export TESTJAVA
      cp ${TESTSRC}/${TEST}.java .
      ${JDK}/bin/javac ${TEST}.java
      ${JDK}/bin/java -showversion ${TEST}
      --- script end ---

      Script output:
      ==============
      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b20)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b20, mixed mode)

      This utility will generate 20,000 random bits
      and perform the statistical random number
      generator tests specified in
      NIST's FIPS PUB 140-2 section 4.9.1.
      platform [Linux] is either linux or solaris:
        set java.security.egd to file:/dev/urandom
      Generating 20,000 random bits. This will take SOME time...
      Exception in thread "main" java.security.ProviderException: generateSeed() failed
              at sun.security.provider.NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:208)
              at sun.security.provider.NativePRNG$RandomIO.access$300(NativePRNG.java:106)
              at sun.security.provider.NativePRNG.engineGenerateSeed(NativePRNG.java:100)
              at java.security.SecureRandom.generateSeed(SecureRandom.java:450)
              at java.security.SecureRandom.getSeed(SecureRandom.java:437)
              at Fips.generate(Fips.java:32)
              at Fips.main(Fips.java:218)
      Caused by: java.io.IOException: Could not read from /dev/u[random]
              at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:196)
              at sun.security.provider.NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:205)
              ... 6 more

      Test output (jtr part):
      =======================
      ----------System.err:(23/1360)----------
      java.security.ProviderException: generateSeed() failed
      at sun.security.provider.NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:208)
      at sun.security.provider.NativePRNG$RandomIO.access$300(NativePRNG.java:106)
      at sun.security.provider.NativePRNG.engineGenerateSeed(NativePRNG.java:100)
      at java.security.SecureRandom.generateSeed(SecureRandom.java:450)
      at java.security.SecureRandom.getSeed(SecureRandom.java:437)
      at Fips.generate(Fips.java:32)
      at Fips.main(Fips.java:218)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
      at java.lang.Thread.run(Thread.java:549)
      Caused by: java.io.IOException: Could not read from /dev/u[random]
      at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:196)
      at sun.security.provider.NativePRNG$RandomIO.implGenerateSeed(NativePRNG.java:205)
      ... 12 more

      ...
      Specific machine info:
      ======================
      Hostname: jtg-li111
      OS: Mercury (Linux jtg-li111 2.4.19-4GB #1 Fri Aug 29 14:46:49 UTC 2003 i686 unknown)


      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Sterbenz
                Reporter:
                sundrsunw Sundr Sundr (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: