From owner-freebsd-hackers@FreeBSD.ORG Fri May 9 08:28:32 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3679EC04; Fri, 9 May 2014 08:28:32 +0000 (UTC) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id CE20288D; Fri, 9 May 2014 08:28:31 +0000 (UTC) Received: from Mail-PC.tdx.co.uk (storm.tdx.co.uk [62.13.130.251]) (authenticated bits=0) by mail.tdx.com (8.14.3/8.14.3/) with ESMTP id s498STe0063398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 May 2014 09:28:29 +0100 (BST) Date: Fri, 09 May 2014 09:28:29 +0100 From: Karl Pielorz To: Konstantin Belousov , Daniel Eischen Subject: Re: Stuck CLOSED sockets / sshd / zombies... Message-ID: <45E85B0B7769CBE623165498@Mail-PC.tdx.co.uk> In-Reply-To: <20140411183949.GX21331@kib.kiev.ua> References: <20140409111917.GH21331@kib.kiev.ua> <851413886E3982D2CCFEA9D9@Mail-PC.tdx.co.uk> <20140410184855.GP21331@kib.kiev.ua> <211BD03C086DDB1A07FDF036@Mail-PC.tdx.co.uk> <20140411131649.GR21331@kib.kiev.ua> <652B8CA4866C0B9E4650430B@Mail-PC.tdx.co.uk> <20140411141526.GT21331@kib.kiev.ua> <464979E8F6FCBD7EA7DAA38B@Mail-PC.tdx.co.uk> <20140411160628.GV21331@kib.kiev.ua> <20140411183949.GX21331@kib.kiev.ua> X-Mailer: Mulberry/4.0.8 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2014 08:28:32 -0000 --On 11 April 2014 21:39 +0300 Konstantin Belousov 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