msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.28k stars 486 forks source link

netcat response `Aborted (core dumped)` #1030

Open eromoe opened 6 years ago

eromoe commented 6 years ago

When I nc -zv xxx yyy

It shows

assertion "ret == 0" failed: file "core.c", line 372, function: core_tcp_connect
Aborted (core dumped)

In ubuntu shows:

nc: connect to xxxx port yyy (tcp) failed: Connection refused
eromoe commented 6 years ago

Ok, looks like openbsd-netcat-1.130-3 works better. So why there are two netcat , why not just keep the better one ?

akhiljalagam commented 2 years ago

I can reproduce this by blocking traffic in firewall. make sure there is no firewall rule blocking the port yyy

1480c1 commented 2 years ago

Ok, looks like openbsd-netcat-1.130-3 works better. So why there are two netcat , why not just keep the better one ?

Generally speaking, most distributions keep both GNU netcat and openbsd's netcat since I don't think they are entirely interchangeable in some places