From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 26 17:30:02 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FAB11065675 for ; Fri, 26 Jun 2009 17:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DD6498FC26 for ; Fri, 26 Jun 2009 17:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5QHU1Es083879 for ; Fri, 26 Jun 2009 17:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5QHU1XC083876; Fri, 26 Jun 2009 17:30:01 GMT (envelope-from gnats) Resent-Date: Fri, 26 Jun 2009 17:30:01 GMT Resent-Message-Id: <200906261730.n5QHU1XC083876@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Stevenson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A03EC106568A; Fri, 26 Jun 2009 17:20:31 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from mtagate5.uk.ibm.com (mtagate5.uk.ibm.com [195.212.29.138]) by mx1.freebsd.org (Postfix) with ESMTP id 1A1AF8FC16; Fri, 26 Jun 2009 17:20:30 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate5.uk.ibm.com (8.14.3/8.13.8) with ESMTP id n5QH2A4i189282; Fri, 26 Jun 2009 17:02:10 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n5QH1vtl1495074; Fri, 26 Jun 2009 18:02:10 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n5QH1vt3003864; Fri, 26 Jun 2009 18:01:57 +0100 Received: from anu.hursley.ibm.com (emmi.hursley.ibm.com [9.20.217.22]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n5QH1vGM003861 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Jun 2009 18:01:57 +0100 Received: from anu.hursley.ibm.com (localhost [127.0.0.1]) by anu.hursley.ibm.com (8.14.3/8.14.3) with ESMTP id n5QGannu003914; Fri, 26 Jun 2009 17:36:51 +0100 (BST) (envelope-from astevens@localhost.hursley.ibm.com) Received: (from astevens@localhost) by anu.hursley.ibm.com (8.14.3/8.14.3/Submit) id n5QGahJn003911; Fri, 26 Jun 2009 17:36:43 +0100 (BST) (envelope-from astevens) Message-Id: <200906261636.n5QGahJn003911@anu.hursley.ibm.com> Date: Fri, 26 Jun 2009 17:36:43 +0100 (BST) From: Andrew Stevenson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: des@FreeBSD.org Subject: bin/136073: recent nscd changes cause client processes to die with SIGPIPE X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andrew Stevenson List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 17:30:02 -0000 >Number: 136073 >Category: bin >Synopsis: recent nscd changes cause client processes to die with SIGPIPE >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 26 17:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Andrew Stevenson >Release: FreeBSD 7.2-STABLE i386 >Organization: UgH! >Environment: System: FreeBSD anu.hursley.ibm.com 7.2-STABLE FreeBSD 7.2-STABLE #14: Thu Jun 25 12:28:57 BST 2009 root@anu.hursley.ibm.com:/usr/obj/usr/src/sys/ANU i386 >Description: After upgrading to stable as of 2 days ago I have found that processes trying to fetch password data frequently die with SIGPIPE. My nsswitch.conf contains: passwd: files cache ldap group: files cache ldap Removing cache makes the problem go away, as does reverting to nscd from 7.2-RELEASE. If I run nscd -nst (nscd from stable) it logs the error: E3 from on_mp_write_session_write_response_write1: write failed when the problem occurs. I had a quick look at the code but didn't understand the structure well enough to know what it was supposed to be doing. I have 2 ldap servers configured both using ldaps. This prevented me from logging into the machine after the upgrade though I had console access so could recover. >How-To-Repeat: Any password checking process seems to suffer - e.g. try to log on from the console or via XDM or su from an existing shell. Oddly ssh, even when using passwords seems unaffected. I used "logins" to do most of my testing. >Fix: Work around is to revert to nscd from 7.2-RELEASE or to change nsswitch.conf to not use cache. >Release-Note: >Audit-Trail: >Unformatted: