JDK-8133647 : (ch) Test java/nio/channels/AsynchronousSocketChannel/StressLoopback.java fails for Windows XP
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 8u60
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2015-08-14
  • Updated: 2016-01-14
  • Resolved: 2015-09-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u72 b01Fixed
Related Reports
Relates :  
Relates :  
Description
Testsuite name:jdk_core (jtreg)
Test name(s):java/nio/channels/AsynchronousSocketChannel/StressLoopback.java
Product(s) tested:1.8.0_65b09 
OS/architecture:Windows XP/i586

Reproducible: Always

Is it a Regression: No
Regression introduced in release/build:
Test result on the last GAed release for this train: Passes on 1.8.0_51b16
Test result on FCS: Passes on 1.8.0 b132 

Is it a platform specific issue: Yes
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: Yes
[If new configuration testing] Issue specific to execution mode or OS/browser version: 

Exception/Error from Log:

----------System.out:(0/0)----------
----------System.err:(20/1410)----------
java.net.SocketException: Invalid argument: fastLoopback
	at sun.nio.ch.Net.socket0(Native Method)
	at sun.nio.ch.Net.serverSocket(Net.java:415)
	at sun.nio.ch.AsynchronousServerSocketChannelImpl.<init>(AsynchronousServerSocketChannelImpl.java:71)
	at sun.nio.ch.WindowsAsynchronousServerSocketChannelImpl.<init>(WindowsAsynchronousServerSocketChannelImpl.java:69)
	at sun.nio.ch.WindowsAsynchronousChannelProvider.openAsynchronousServerSocketChannel(WindowsAsynchronousChannelProvider.java:83)
	at java.nio.channels.AsynchronousServerSocketChannel.open(AsynchronousServerSocketChannel.java:145)
	at java.nio.channels.AsynchronousServerSocketChannel.open(AsynchronousServerSocketChannel.java:166)
	at StressLoopback.main(StressLoopback.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.net.SocketException: Invalid argument: fastLoopback
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.net.SocketException: Invalid argument: fastLoopback


Steps to reproduce:
See comments

Comments
Review thread: http://mail.openjdk.java.net/pipermail/nio-dev/2015-September/003310.html
03-09-2015

A pertinent thread is here: http://mail.openjdk.java.net/pipermail/jdk7u-dev/2015-January/010157.html in particular from this message: http://mail.openjdk.java.net/pipermail/jdk7u-dev/2015-January/010176.html A potential fix is at line 159 of the new version of Net.c here: http://cr.openjdk.java.net/~coffeys/webrev.8060170.7u.v2/webrev/src/windows/native/sun/nio/ch/Net.c.frames.html
28-08-2015

A better link for system requirements is http://www.oracle.com/technetwork/java/javase/certconfig-2095354.html.
28-08-2015

Windows XP is not a supported platform for Java 8: http://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_system_requirements.html#BABHGIJF https://www.java.com/en/download/help/sysreq.xml
20-08-2015