Stuck CLOSED sockets / sshd / zombies...
Karl Pielorz
kpielorz_lst at tdx.co.uk
Fri May 9 08:28:32 UTC 2014
--On 11 April 2014 21:39 +0300 Konstantin Belousov <kostikbel at gmail.com>
wrote:
> BTW, below is the updated patch with the workaround for sshd issue.
>
> diff --git a/secure/usr.sbin/sshd/Makefile b/secure/usr.sbin/sshd/Makefile
> index 4f730a9..b3231a4 100644
> --- a/secure/usr.sbin/sshd/Makefile
> +++ b/secure/usr.sbin/sshd/Makefile
> @@ -57,6 +57,12 @@ CFLAGS+= -DNONE_CIPHER_ENABLED
> DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBZ}
> LDADD+= -lcrypt -lcrypto -lz
>
> +# put the threading library last
> +.if ${MK_KERBEROS_SUPPORT} != "no"
> +DPADD+= ${LIBPTHREAD}
> +LDADD+= -lpthread
> +.endif
> +
> .if defined(LOCALBASE)
> CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE}/bin/xauth\"
> .endif
As far as I can see this hasn't been committed to 10/Stable yet? (or
anywhere?) That means anything we build from 10/Stable is still going to
have this issue - where sshd hangs because "libthr wrapper thr_sighandler()
for the signal handlers is not installed as the recepient of the kernel
signal, which prevents libthr locks for rtld from working properly."
This is causing us issues [as well as some other people running other tools
- not fixed by this patch] - I would raise a PR - but it's not my patch! :)
Thanks,
-Karl
More information about the freebsd-hackers
mailing list