-
Bug
-
Resolution: Fixed
-
P3
-
1.1.1
-
b01
-
x86
-
solaris_2.5.1
-
Not verified
allan.jacobs@Eng 1997-04-11
The JCK-111A tests RandomAccessFile0050, RandomAccessFile0051, RandomAccessFile0058, and RandomAccessFile0059 fail JITed and work unJITed. The problem is on x86 alone and exists in both green and native threads.
The following script was run on an x86 using the JIT group's version of JDK 1.1.1.
#!/bin/ksh
JDKHOME=/set/jit/jit2/javavm11-gate/buildbin
HOST=`/bin/hostname`
echo ${HOST}
export PATH=${JDKHOME}/bin:/usr/xpg4/bin:/bin:.
echo ${HOST}'% export PATH='${PATH}
export THREADS_FLAG=green
echo ${HOST}'% export THREADS_FLAG='${THREADS_FLAG}
JCK111=/net/mulder/export/mulder3/JCK-111a
export CLASSPATH=${JCK111}/classes:${JDKHOME}/lib/classes.zip:.
echo ${HOST}'% export CLASSPATH='${CLASSPATH}
echo ${HOST}'% which java'
which java
echo ${HOST}'% java -version'
java -version
echo ${HOST}'% cp '${JCK111}'/tests/api/java_io/RandomAccessFile/EquivClass.html .'
cp ${JCK111}/tests/api/java_io/RandomAccessFile/EquivClass.html .
echo ${HOST}'% sed -e "s/^package/\/\/package/" '${JCK111}'/tests/api/java_io/RandomAccessFile/WriteTests.java > ./WriteTests.java'
sed -e "s/^package/\/\/package/" ${JCK111}/tests/api/java_io/RandomAccessFile/WriteTests.java > ./WriteTests.java
echo ${HOST}'% javac -d . -J-Djava.compiler=none WriteTests.java'
javac -d . -J-Djava.compiler=none WriteTests.java
echo ${HOST}'% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0050'
java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0050
echo ${HOST}'% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0051'
java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0051
echo ${HOST}'% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0058'
java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0058
echo ${HOST}'% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0059'
java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0059
echo ${HOST}'% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0050'
java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0050
echo ${HOST}'% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0051'
java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0051
echo ${HOST}'% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0058'
java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0058
echo ${HOST}'% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0059'
java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0059
The script generated the following output:
x86-sirius
x86-sirius% export PATH=/set/jit/jit2/javavm11-gate/buildbin/bin:/usr/xpg4/bin:/bin:.
x86-sirius% export THREADS_FLAG=green
x86-sirius% export CLASSPATH=/net/mulder/export/mulder3/JCK-111a/classes:/set/jit/jit2/javavm11-gate/buildbin/lib/classes.zip:.
x86-sirius% which java
/set/jit/jit2/javavm11-gate/buildbin/bin/java
x86-sirius% java -version
java version "tcm:03/21/21-20:00"
x86-sirius% cp /net/mulder/export/mulder3/JCK-111a/tests/api/java_io/RandomAccessFile/EquivClass.html .
x86-sirius% sed -e "s/^package/\/\/package/" /net/mulder/export/mulder3/JCK-111a/tests/api/java_io/RandomAccessFile/WriteTests.java > ./WriteTests.java
x86-sirius% javac -d . -J-Djava.compiler=none WriteTests.java
x86-sirius% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0050
Creating file RandomAccessFile0050
file created
pos=0; value=-10
file verification passed
STATUS:Passed. OKAY
x86-sirius% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0051
pos=0; value=-10
file verification passed
STATUS:Passed. OKAY
x86-sirius% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0058
Creating file RandomAccessFile0058
file created
pos=0; value=-10
file verification passed
STATUS:Passed. OKAY
x86-sirius% java -Djava.compiler=none WriteTests -TestCaseID RandomAccessFile0059
pos=0; value=-10
file verification passed
STATUS:Passed. OKAY
x86-sirius% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0050
Creating file RandomAccessFile0050
file created
pos=0; value=-10
File verification failed at byte 0
expected: -82
read from file: -10
STATUS:Failed. file verification failed
x86-sirius% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0051
pos=0; value=-10
File verification failed at byte 0
expected: -82
read from file: -10
STATUS:Failed. file verification failed
x86-sirius% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0058
Creating file RandomAccessFile0058
file created
pos=0; value=-10
File verification failed at byte 0
expected: -82
read from file: -10
STATUS:Failed. file verification failed
x86-sirius% java -Djava.compiler=sunwjit WriteTests -TestCaseID RandomAccessFile0059
pos=0; value=-10
File verification failed at byte 0
expected: -82
read from file: -10
STATUS:Failed. file verification failed
allan.jacobs@Eng 1997-04-18
Also fails on Windows NT 4.0.
- relates to
-
JDK-4055282 JCK-111A tests RandomAccessFile0050, 0051, 0058, 0059 fail on NT.
-
- Closed
-