-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
5.0
-
x86
-
linux
Name: mmR10223 Date: 09/24/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b20 (passes using JDK1.5.0-b19, JDK1.4.2-b28)
JCK : JCK1.5-runtime (b04)
Platform[s] : Linux
switch/Mode : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
api/java_security/SecureRandom/SecureRandomTests.html#misc [SecureRandom2012]
JCK1.5-runtime api/java_security/SecureRandom/SecureRandomTests.html#misc test fails with JDK1.5.0-b20
on Linux platforms only.
The bug is probably a duplicate of 4927163. But since the tests are from different test suites
and because I am not sure that introduction of sun.security.provider.NativePRNG in Tiger-b20
will not cause specification or test changes I decided to file a separate bug for this failure.
Test source location:
=====================
/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15/tests/api/java_security/SecureRandom/miscTests.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b20/jck15/linux/redhat_advserver21_gnome_smp_server_linux-24/workDir/api/java_security/SecureRandom/SecureRandomTests_misc.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/bash
#KOORI_ONESTOP is your path to koori.sfbay/onestop (/net/koori/onestop, /java/re)
KOORI_ONESTOP="/java/re"
#JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
JCK="$KOORI_ONESTOP/jck/1.5/promoted/beta/b04/binaries/JCK-runtime-15"
#JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"
JDK="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b20/binaries/linux-i586"
CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
$JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.java.security.SecureRandom.miscTests -TestCaseID SecureRandom2012
--- script end ---
Test output:
============
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 javasoft.sqe.tests.api.java.security.SecureRandom.miscTests.SecureRandom2012(miscTests.java:340)
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 javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
at javasoft.sqe.jck.lib.ProviderTest.invokeTestCase(ProviderTest.java:115)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
at javasoft.sqe.tests.api.java.security.SecureRandom.miscTests.main(miscTests.java:30)
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)
... 13 more
SecureRandom2012: Failed. Test case throws exception: java.security.ProviderException: generateSeed() failed
Specific machine info:
======================
Hostname: linux-24
OS: RedHat Advanced Server 2.1 (Gnome)
======================================================================
- duplicates
-
JDK-4919492 SeedGenerator/Fips.java fails on some Linux versions
- Resolved
- relates to
-
JDK-4927163 REGRESSION: sun/security/provider/SeedGenerator/Fips.java failed
- Closed