Same problem in =net-analyzer/nmap-7.91-r1 as well. In older versions it works fine. How to reproduce: In first terminal: ncat --no-shutdown -t --keep-open -l -U ./testsocket In second terminal: ncat -U ./testsocket --sh-exec "echo -e '123'" fails with segfault error (segmentation fault). There no something strange in strace. Compiled with USE: ncat nping nse ssl
Created attachment 682579 [details] emerge --info
Works fine in 7.80-r2 version and older.
I can confirm the crash. This looks like it's issue https://github.com/nmap/nmap/issues/2154, which as been fixed upstream in https://github.com/nmap/nmap/commit/f6b40614e4a8131394792d590965f8af3c635323.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2d8627328c93bdd62a507f7e78228a8e00de59e commit b2d8627328c93bdd62a507f7e78228a8e00de59e Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-11 18:14:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-11 18:14:02 +0000 net-analyzer/nmap: add upstream patches for ncat Closes: https://bugs.gentoo.org/765148 Closes: https://bugs.gentoo.org/770808 Signed-off-by: Sam James <sam@gentoo.org> net-analyzer/nmap/files/nmap-7.91-ncat-proxy.patch | 37 +++++++ .../nmap/files/nmap-7.91-ncat-unix-sockets.patch | 30 ++++++ net-analyzer/nmap/nmap-7.91-r2.ebuild | 118 +++++++++++++++++++++ 3 files changed, 185 insertions(+)
Thank you - and sorry for missing this until now!