Multiple simultaneous ping do not work
- A brief description Opening a powershell admin window, running bash and then running ping works fine. Opening second window the same way, while keeping the first window opened with running ping, and running another ping in the second window causes errors in both windows.
- Expected results Multiple pings shall work simultaneously.
- Actual results (with terminal output if applicable)
ping: recvmsg: Invalid argument
ping: recvmsg: Invalid argument
ping: recvmsg: Invalid argument
ping: recvmsg: Invalid argument
- Your Windows build number 14393.351
- Steps / All commands required to reproduce the error from a brand new installation
- Open powershell admin window1
- Run
bashin window1 - Run
ping google.comin window1 - Open powershell admin window2
- Run
bashin window2 - Run
ping google.comin window2; runningping time.nist.govproduces the same result
- Strace of the failing command
- Required packages and commands to install WSL
See our contributing instructions for assistance.
@GoodMirek I realize this in no way helps your current build of Windows; but I do not experience this issue running on build 14955. Perhaps someone else can confirm this is a problem with your build of Windows and not on 14955.
Guessing this was quietly addressed in 14926, though I don't think there is/was an issue# for the problem specifically.
@therealkenc I'm still able to reproduce this on new builds, there's still an issue here. Tagging @sunilmut so he is aware.
@GoodMirek Thanks for reporting the issue and thanks @benhillis for tagging. It looks like this is reproducible even with a single ping. I have opened a bug to track this.
After upgrade to 14955 I can confirm that simultaneous ping works. However, ping occassionally reports incorrect round trip time 0.000ms, see below; correct value is definitelly over 1ms, rather 10+ ms. I am connected via home wifi, which is connected via another wifi to a local ISP, thus it is technically impossible to have lower than 1 ms rounf trip time for ping to google.com. Also, the correct value is what real Linux shows on the same hardware and internet connection. Sometimes the incorrect value is not plain zero, but rather around half a millisecond. I did not use preload option of ping.
ping google.com
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=94 ttl=50 time=23.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=95 ttl=50 time=25.3 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=96 ttl=50 time=0.000 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=97 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=98 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=99 ttl=50 time=16.2 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=100 ttl=50 time=0.000 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=101 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=102 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=103 ttl=50 time=0.519 ms
@GoodMirek - The 0ms ping issue has already been fixed and the fix barely missed the 14955 build. It should be in the next release for sure. If in the next release you are still seeing 0ms ping, do let us know. As for the ping: recvmsg: Invalid argument error, I think that is intermittent and still exists. Thanks for all the feedback and trying out WSL!
The original issue has been fixed internally (recvmsg EINVAL).
Closing since this has been fixed in the Insider builds.