From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 9 14:30:46 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 A8448A3A; Wed, 9 Apr 2014 14:30:46 +0000 (UTC) Received: from mail.tdx.com (mail.tdx.com [62.13.128.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4A8D31DFC; Wed, 9 Apr 2014 14:30:46 +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 s39EUiDB081555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Apr 2014 15:30:44 +0100 (BST) Date: Wed, 09 Apr 2014 15:30:44 +0100 From: Karl Pielorz To: Konstantin Belousov Subject: Re: Stuck CLOSED sockets / sshd / zombies... Message-ID: <851413886E3982D2CCFEA9D9@Mail-PC.tdx.co.uk> In-Reply-To: <20140409111917.GH21331@kib.kiev.ua> References: <3FE645E9723756F22EF901AE@Mail-PC.tdx.co.uk> <20140408164353.GB21331@kib.kiev.ua> <277FA3F7B4E7A98921F4D631@study64.tdx.co.uk> <201404081533.53990.jhb@freebsd.org> <92366925229B4C5B21B04D81@study64.tdx.co.uk> <20140408212319.GC21331@kib.kiev.ua> <20140409084951.GE21331@kib.kiev.ua> <2A722BB3B12E0D80CA9FF075@Mail-PC.tdx.co.uk> <20140409111917.GH21331@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.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2014 14:30:46 -0000 --On 09 April 2014 14:19 +0300 Konstantin Belousov wrote: > It is still mostly nonsensical, due to bad and missing debugging > information. > > First, my patch seems to be buggy, I miscalculated the offsets of the > saved registers. Hopefully, improved version is at the end of the > message. Also, I suspect that there is a mismatch between installed and > built rtld. Please do the clean build with DEBUG_FLAGS=-g and patch > applied and install (again with DEBUG_FLAGS=-g). > > Second, the debugging information in your libthr.so.3 is partial. > Could you, please rebuild it and install with DEBUG_FLAGS=-g from > the clean state ? > > Also, please rebuild you pam installation with '-g'. > > After this is done, reproduce the issue and take the backtrace once more. > Sorry, but the current backtrace is not useful. Ok, I tried all the above - I now get a minimal backtrace :( I have an identical 'clone' of this system (with the same issue) - is there something I can put in '/etc/make.conf' and rebuild the world [with your patch] with debug stuff enabled everywhere, on that clone? It may be easier to rebuild with debug on everything, install it all, and reproduce the issue (knowing debug is on everywhere). I can do that leaving the other copy of this machine 'as-is'. Also, if we're doing that is it worth turning off optimisation's? (If so, how?) -Karl