JDK-6367321 : Regression Test: ScatteringRead Test fails for 64 bit but passing for 32 bit jdk on sol10-AMD
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 1.4.2_11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2005-12-26
  • Updated: 2014-02-27
  • Resolved: 2006-01-02
Related Reports
Duplicate :  
Description
Synopsis: (Regression Test) FileChannel ,ScatteringRead Test fails for 64 bit but passing for 32 bit on sol10-AMD for 142_11-b02 , 142_11-b01 & 142_11-b00.


Test Case:
==========
java/nio/channels/FileChannel/ScatteringRead.java

JAVA -version:
==============
java version "1.4.2_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b02)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_11-b02, mixed mode)

uname -a:
=========
SunOS urti020 5.10 Generic_118844-22 i86pc i386 i86pc

more /etc/release :
===================
 Solaris 10 1/06 s10x_u1wos_17 X86
           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 25 October 2005

To Reproduce:
=============
1) Install 64 bit jdk in testing machine.
2) Copy the test case ScatteringRead.java to the testing machine. (which is attached to the bugster).
3) Compile the files as <JAVA-HOME>/bin/javac *.java 
4) Run it as <JAVA-HOME>/bin/java -d64 ScatteringRead


ERROR thrown on run time:
=========================
Exception in thread "main" java.lang.RuntimeException: Test 3 failed
        at ScatteringRead.test3(ScatteringRead.java:114)
        at ScatteringRead.main(ScatteringRead.java:22)

OUT-PUT for 142_11-b02 64 bit:
==============================
/export/updates/jdks/j2sdk1.4.2_11/bin/java -d64 ScatteringRead
Exception in thread "main" java.lang.RuntimeException: Test 3 failed
        at ScatteringRead.test3(ScatteringRead.java:114)
        at ScatteringRead.main(ScatteringRead.java:22)
bash-3.00$ echo $?
1

OUT-PUT for 142_11-b02 32 bit:
===============================
/export/updates/jdks/j2sdk1.4.2_11/bin/java ScatteringRead
bash-3.00$ echo $?
0

When Using Jtreg tool for testing for 142_11-b02 64bit JDK:
==========================================================
ERROR out-put:
==============
java.lang.RuntimeException: Test 3 failed
	at ScatteringRead.test3(ScatteringRead.java:114)
	at ScatteringRead.main(ScatteringRead.java:22)
	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:83)
	at java.lang.Thread.run(Thread.java:534)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test 3 failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test 3 failed

Comments
EVALUATION The test was updated in tiger to work on 64-bit (see 4869859). I check 1.4.2_11 and it passes with the correct tested. It may be that the updated test needs to be brought over to the 1.4.2_xx workspace.
26-12-2005