From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 4 17:54:06 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C923A106564A; Tue, 4 Oct 2011 17:54:06 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 79FE58FC22; Tue, 4 Oct 2011 17:54:06 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id CBA241FFC39; Tue, 4 Oct 2011 17:54:05 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id AFE08845E2; Tue, 4 Oct 2011 19:54:05 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Artem Belevich References: <86sjn84wco.fsf@ds4.des.no> <86obxw4s4w.fsf@ds4.des.no> Date: Tue, 04 Oct 2011 19:54:05 +0200 In-Reply-To: (Artem Belevich's message of "Tue, 4 Oct 2011 10:16:32 -0700") Message-ID: <86fwj84p8i.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org, Trond =?utf-8?Q?Endrest=C3=B8l?= Subject: Re: Does anyone use nscd? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2011 17:54:06 -0000 Artem Belevich writes: > And I do have a way to reproduce the SIGPIPE problem. Populate ~30K > entries in NIS passwd database, enable nscd and then run top. In my > case top used to die with SIGPIPE pretty reliably. I've fixed the > issue locally by setting SO_NOSIGPIPE on the socket in > __open_cached_connection() in lib/libc/net/nscachedcli.c and I've been > running with the fix for few months now. Any chance of getting a backtrace from an unpatched nscd? Ideally with the change described here: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dbin/136073#reply1 To test, stop nscd, then run it from the command line like so: $ su - # cd /tmp # ulimit -c 0 # /usr/sbin/nscd -nst (do something in another terminal that causes it to crash) # echo backtrace | gdb -batch -x /dev/stdin /usr/sbin/nscd nscd.core and send me the output from both nscd and gdb once it crashes.=20=20 DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no