From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 8 19:34:00 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 5495FE76 for ; Tue, 8 Apr 2014 19:34:00 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2CACE1A42 for ; Tue, 8 Apr 2014 19:34:00 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id BA6DFB93B; Tue, 8 Apr 2014 15:33:58 -0400 (EDT) From: John Baldwin To: Karl Pielorz Subject: Re: Stuck CLOSED sockets / sshd / zombies... Date: Tue, 8 Apr 2014 15:33:53 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <3FE645E9723756F22EF901AE@Mail-PC.tdx.co.uk> <20140408164353.GB21331@kib.kiev.ua> <277FA3F7B4E7A98921F4D631@study64.tdx.co.uk> In-Reply-To: <277FA3F7B4E7A98921F4D631@study64.tdx.co.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201404081533.53990.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 08 Apr 2014 15:33:58 -0400 (EDT) Cc: Konstantin Belousov , freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 19:34:00 -0000 On Tuesday, April 08, 2014 3:18:44 pm Karl Pielorz wrote: > > --On 8 April 2014 19:43:53 +0300 Konstantin Belousov > wrote: > > > The following patch might allow to see the backtrace beyond the binder > > entry point. You might also have better luck with the gdb from ports. > > > > diff --git a/libexec/rtld-elf/amd64/rtld_start.S > > [snip] > > If I apply that I presume I'm going to have to build / start the whole > thing again (i.e. restart sshd at least / possibly the system etc.) and get > it to hang again? > > I might see how far we can get with the current stuff before I have to go > through that again :) I think this patch only changes debug info, so I think you can just build and install and re-attach gdb without having to restart sshd. Also, this patch should only require you to build and install libexec/rtld-elf. -- John Baldwin