Stuck CLOSED sockets / sshd / zombies...

Konstantin Belousov kostikbel at gmail.com
Fri May 9 10:59:42 UTC 2014


On Fri, May 09, 2014 at 09:28:29AM +0100, Karl Pielorz wrote:
> 
> --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."
It was committed in r265313 to stable/10, and in r265314 to stable/9,
although the later was not strictly neccessary.

> 
> 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
>  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20140509/036336e4/attachment.sig>


More information about the freebsd-hackers mailing list