From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 8 15:33:11 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2BA7F408; Tue, 8 Apr 2014 15:33:11 +0000 (UTC) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id C48211E6E; Tue, 8 Apr 2014 15:33:10 +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 s38FX3Dx058140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Apr 2014 16:33:04 +0100 (BST) Date: Tue, 08 Apr 2014 16:33:03 +0100 From: Karl Pielorz To: John Baldwin Subject: Re: Stuck CLOSED sockets / sshd / zombies... Message-ID: <63EFBCBD259A410BB4D71742@Mail-PC.tdx.co.uk> In-Reply-To: <201404080936.30651.jhb@freebsd.org> References: <3FE645E9723756F22EF901AE@Mail-PC.tdx.co.uk> <201404071148.10157.jhb@freebsd.org> <9647C5438B5CD4A3058AB1A2@Mail-PC.tdx.co.uk> <201404080936.30651.jhb@freebsd.org> 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.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 15:33:11 -0000 --On 08 April 2014 09:36 -0400 John Baldwin wrote: > Humm, it needs to build new ones with debug symbols. If it doesn't, > you'll need to do 'make clean' before the other makes. I think you > should be fine to do that (make clean then the command above) for those > directories and restart gdb without having to restart your sshd. Please > also add '/usr/src/libexec/rtld-elf' to the list of directories where you > do this. Then do 'detach' in gdb, exit gdb and restart it. Ok, it hit an issue with libc (complained it couldn't find yp.h - but I fixed that) and it compiled up OK then. The rest all recompiled / installed OK, and I included the rtld-elf code. > Hmmm, that is useful even though the debug symbols aren't there. Please > do the rebuilds I asked for above and re-attach gdb and get 'bt' again. Ok, that now nets: " ... [Switching to LWP 100218] 0x00000008038ea89c in __error () from /lib/libthr.so.3 (gdb) bt #0 0x00000008038ea89c in __error () from /lib/libthr.so.3 #1 0x00000008038e104f in __thr_rwlock_rdlock (rwlock=0x803af9480, flags=, tsp=) at /usr/src/lib/libthr/thread/thr_umtx.c:277 #2 0x00000008038e821c in _thr_rtld_rlock_acquire (lock=0x803af9480) at atomic.h:143 #3 0x000000080064f9a2 in rlock_acquire (lock=0x80085fe00, lockstate=0x7fffffffba68) at /usr/src/libexec/rtld-elf/rtld_lock.c:197 #4 0x00000008006498c9 in _rtld_bind (obj=0x800662000, reloff=13008) at /usr/src/libexec/rtld-elf/rtld.c:675 #5 0x00000008006470cd in _rtld_bind_start () at /usr/src/libexec/rtld-elf/amd64/rtld_start.S:99 #6 0x0000000000000246 in ?? () #7 0x0000000000000000 in ?? () " -Karl