RFR: 8080272 Refactor I/O stream copying to use InputStream.transferTo/readAllBytes and Files.copy [v8]
Andrey Turbanov
github.com+741251+turbanoff at openjdk.java.net
Fri Feb 12 21:14:40 UTC 2021
On Fri, 12 Feb 2021 21:06:24 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:
>> Then I tried to run tests separately:
>> ## java/io/File/GetXSpace.java
>>
>>
>> make test TEST="jtreg:test/jdk/java/io/File/GetXSpace.java"
>>
>> STDERR:
>> java.nio.file.InvalidPathException: Illegal char <:> at index 0: :
>> at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
>> at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
>> at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
>> at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
>> at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:230)
>> at java.base/java.io.File.toPath(File.java:2316)
>> at GetXSpace.compare(GetXSpace.java:219)
>> at GetXSpace.testDF(GetXSpace.java:394)
>> at GetXSpace.main(GetXSpace.java:428)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>> at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
>> at java.base/java.lang.Thread.run(Thread.java:831)
>>
>> JavaTest Message: Test threw exception: java.nio.file.InvalidPathException
>> JavaTest Message: shutting down test
>>
>> STDOUT:
>> --- Testing df
>> C:/Programs/cygwin64 350809332 172573816 178235516 50% /
>> D: 3702215676 2812548988 889666688 76% /cygdrive/d
>> E: 3906885628 3544182676 362702952 91% /cygdrive/e
>> F: 250057724 240917056 9140668 97% /cygdrive/f
>>
>>
>> SecurityManager = null
>> C:/Programs/cygwin64:
>> df total= 359228755968 free = 0 usable = 182513168384
>> getX total= 359228755968 free = 182513168384 usable = 182513168384
>> ::
>> df total= 3791068852224 free = 0 usable = 911018688512
>> getX total= 0 free = 0 usable = 0
>>
>> TEST RESULT: Failed. Execution failed: `main' threw exception: java.nio.file.InvalidPathException: Illegal char <:> at index 0: :
>> --------------------------------------------------
>>
>>
>> https://bugs.openjdk.java.net/browse/JDK-8251466 looks like there is already known bug for similar cygwin output.
>
> ## java/net/MulticastSocket/MulticastAddresses.java
>
> make test TEST="jtreg:test/jdk/java/net/MulticastSocket/MulticastAddresses.java"
>
> STDOUT:
> Test: /224.80.80.80 ni: name:eth1 (PANGP Virtual Ethernet Adapter)
> joinGroup(InetAddress) Passed.
> joinGroup(InetAddress,NetworkInterface) Passed.
> Test: /129.1.1.1
> joinGroup(InetAddress)
> Passed: Not a multicast address
> Test: /ff01:0:0:0:0:0:0:1 ni: name:eth10 (VirtualBox Host-Only Ethernet Adapter)
> joinGroup(InetAddress) Failed: No route to host: no further information
> Test: /ff02:0:0:0:0:0:0:1234 ni: name:eth10 (VirtualBox Host-Only Ethernet Adapter)
> joinGroup(InetAddress) Passed.
> joinGroup(InetAddress,NetworkInterface) Passed.
> Test: /ff05:0:0:0:0:0:0:a ni: name:eth10 (VirtualBox Host-Only Ethernet Adapter)
> joinGroup(InetAddress) Passed.
> joinGroup(InetAddress,NetworkInterface) Passed.
> Test: /ff0e:0:0:0:0:0:1234:a ni: name:eth10 (VirtualBox Host-Only Ethernet Adapter)
> joinGroup(InetAddress) Passed.
> joinGroup(InetAddress,NetworkInterface) Passed.
> Test: /0:0:0:0:0:0:0:1
> joinGroup(InetAddress)
> Passed: Not a multicast address
> Test: /0:0:0:0:0:0:8101:101
> joinGroup(InetAddress)
> Passed: Not a multicast address
> Test: /fe80:0:0:0:a00:20ff:fee5:bc02
> joinGroup(InetAddress)
> Passed: Not a multicast address
> STDERR:
> java.lang.Exception: 1 test(s) failed - see log file.
> at MulticastAddresses.runTest(MulticastAddresses.java:93)
> at MulticastAddresses.main(MulticastAddresses.java:138)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
> at java.base/java.lang.Thread.run(Thread.java:831)
>
> JavaTest Message: Test threw exception: java.lang.Exception
> JavaTest Message: shutting down test
>
>
> TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: 1 test(s) failed - see log file.
>
>
> I connected debbuger and got this stack trace:
>
> java.net.NoRouteToHostException: No route to host: no further information
> at java.base/sun.nio.ch.Net.joinOrDrop6(Native Method)
> at java.base/sun.nio.ch.Net.join6(Net.java:734)
> at java.base/sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:1515)
> at java.base/sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:1551)
> at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:532)
> at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:479)
> at java.base/java.net.MulticastSocket.joinGroup(MulticastSocket.java:318)
> at MulticastAddresses.runTest(MulticastAddresses.java:56)
> at MulticastAddresses.main(MulticastAddresses.java:138)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
> at java.base/java.lang.Thread.run(Thread.java:831)
>
> Not sure what actual cause. Will investigate further.
## java/net/MulticastSocket/SetLoopbackMode.java
make test TEST="jtreg:test/jdk/java/net/MulticastSocket/SetLoopbackMode.java"
STDOUT:
IPv6 can be used
Default network interface: null
Test will use multicast group: /ff01:0:0:0:0:0:0:1
NetworkInterface.getByInetAddress(grp): null
STDERR:
java.net.NoRouteToHostException: No route to host: no further information
at java.base/sun.nio.ch.Net.joinOrDrop6(Native Method)
at java.base/sun.nio.ch.Net.join6(Net.java:734)
at java.base/sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:1515)
at java.base/sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:1551)
at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:532)
at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:479)
at java.base/java.net.MulticastSocket.joinGroup(MulticastSocket.java:318)
at SetLoopbackMode.main(SetLoopbackMode.java:132)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:831)
JavaTest Message: Test threw exception: java.net.NoRouteToHostException: No route to host: no further information
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.net.NoRouteToHostException: No route to host: no further information
Cause looks similar to `MulticastAddresses`: virtualbox network interface:
Test: /ff01:0:0:0:0:0:0:1 ni: name:eth10 (VirtualBox Host-Only Ethernet Adapter)
joinGroup(InetAddress) Failed: No route to host: no further information
Will investigate futher.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1853
More information about the security-dev
mailing list