From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 10 18:49:02 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 C4217734; Thu, 10 Apr 2014 18:49:02 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 654E8160B; Thu, 10 Apr 2014 18:49:02 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.8/8.14.8) with ESMTP id s3AImu7K073648; Thu, 10 Apr 2014 21:48:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua s3AImu7K073648 Received: (from kostik@localhost) by tom.home (8.14.8/8.14.8/Submit) id s3AImttr073647; Thu, 10 Apr 2014 21:48:55 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 10 Apr 2014 21:48:55 +0300 From: Konstantin Belousov To: Karl Pielorz Subject: Re: Stuck CLOSED sockets / sshd / zombies... Message-ID: <20140410184855.GP21331@kib.kiev.ua> References: <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> <851413886E3982D2CCFEA9D9@Mail-PC.tdx.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YQQMu+1WUtOZ6W1X" Content-Disposition: inline In-Reply-To: <851413886E3982D2CCFEA9D9@Mail-PC.tdx.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home 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: Thu, 10 Apr 2014 18:49:02 -0000 --YQQMu+1WUtOZ6W1X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 09, 2014 at 03:30:44PM +0100, Karl Pielorz wrote: >=20 >=20 > --On 09 April 2014 14:19 +0300 Konstantin Belousov = =20 > wrote: >=20 > > 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=3D-g and patch > > applied and install (again with DEBUG_FLAGS=3D-g). > > > > Second, the debugging information in your libthr.so.3 is partial. > > Could you, please rebuild it and install with DEBUG_FLAGS=3D-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 mor= e. > > Sorry, but the current backtrace is not useful. >=20 > Ok, I tried all the above - I now get a minimal backtrace :( I just rechecked with in-tree gdb and stock build of gdb 7.6, I can see frames after _rtld_bind_start() properly. >=20 > I have an identical 'clone' of this system (with the same issue) - is the= re=20 > something I can put in '/etc/make.conf' and rebuild the world [with your= =20 > patch] with debug stuff enabled everywhere, on that clone? You should put DEBUG_FLAGS=3D-g either in make.conf or src.conf, I am not sure which one is correct. >=20 > It may be easier to rebuild with debug on everything, install it all, and= =20 > reproduce the issue (knowing debug is on everywhere). I can do that leavi= ng=20 > the other copy of this machine 'as-is'. >=20 > Also, if we're doing that is it worth turning off optimisation's? (If so,= =20 > how?) No. --YQQMu+1WUtOZ6W1X Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJTRueXAAoJEJDCuSvBvK1BFNoP/Rrly4uYOzOmu/WuR23pMwId pWthwPinASv6HiMOtoTroRDfWwaPF0YJIBAkF6ensd3d6pZGd5FUzEHAnLHjciav KG+CPazZ7q8xuh4yWxbdXqnzC421n4BtxhvzAkStt1whdYWWXroOrK1lXNqnLU2D bDcceHW9Lyf6b4LYmiBKUMrEQVy1xuVYXPzKOTNdQeS7MfMSkuD+Z/jmiB6MJ7R1 f9JpOQk1yEKlZpI49ozn+Uw9nzZbzqOpoBQab1rJ306JtgJiRBfwaTNwzNoCMj3B Y6MOTzEBnNz8Xxww+giwhw9S6Tr74DbZ2BB+evHop6nGQ/2i9amL+fAEbOshdaPV D04UnodiQ4aH1CwPWmL8HbLDJfxfSkY5Xby+SJjMKIzuLl5sMJ0iGCwsPf9dewtT MnBYqshmWEfUWOD4kkpWMR1RyC+PhUnFzH8NK7wD69QZ04HeGMrJP2W0qzCaQZwL nszqI4jAfdF/EBjVjLmmOlkWM3LdMM+lKkg7KaK1k9vLTMeeGc4wlHjKnI0Y5BO1 fPk65oMzLLuhtxZ11LXet7xDzFBEAExw6hQItEcU4EqJE2NgIoM0+hcPUi1Pq4Mc K0sE2qJTm9lbOGvLAlysiUndwNl6WG/UwdYeD0J21bzKndmeZQzKoqV0fsSDsP11 YOg16KRPqwpPfM65vSBa =94ct -----END PGP SIGNATURE----- --YQQMu+1WUtOZ6W1X--