JDK-8194260 : Point-to-point interface should be excluded from java/net/ipv6tests/*
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 10,11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-12-29
  • Updated: 2021-06-09
  • Resolved: 2018-04-18
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 11 JDK 8 Other
11 b10Fixed 8u301Fixed openjdk8u312Unresolved
Related Reports
Relates :  
Description
utun0 is introduced by "Back to My Mac". Its ipv6 address looks to be problematic.

For instance, I can use bind/connect to "en0" via socket. Or ping6.
But ping6 to utun0 address prompts " No route to host". I didn't add ip mapping to /etc/hosts.

So I think it is necessary to exclude such interface in ipv6 tests.
Found with self-built development builds and also reproduced with JDK 10 b37 promoted build.


Test output (removed real address):

binding to /[xxxx_ipv6_addr]%utun0:0
----------System.err:(23/1526)----------
java.net.ConnectException: Operation timed out (Connection timed out)
	at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:400)
	at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:243)
	at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:225)
	at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:402)
	at java.base/java.net.Socket.connect(Socket.java:591)
	at java.base/java.net.Socket.connect(Socket.java:540)
	at java.base/java.net.Socket.<init>(Socket.java:436)
	at java.base/java.net.Socket.<init>(Socket.java:246)
	at TcpTest.test2(TcpTest.java:142)
	at TcpTest.main(TcpTest.java:66)
Comments
The tests in java/net/ipv6/ do not use the "new" jdk.test.lib.NetworkConfiguration library to determine interfaces on the machine. NetworkConfiguration does filter out some problematic network interfaces, but not utun0. Although it does filter out point-to-point, and utun0 is point-to-point. Maybe filtering out `!nif.isUp() || nif.isPointToPoint()` would be sufficient here?
11-04-2018

java/net/ipv6tests/UdpTest.java suffers too.
29-12-2017