Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 81927

Summary: sys-apps/shadow, sys-libs/glibc: groupadd and usermod fail with "Broken pipe" if nscd is running
Product: Gentoo Linux Reporter: Ivan Todoroski <grnch>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ivan Todoroski 2005-02-13 15:39:58 UTC
Running groupadd/usermod to add/change groups failed with "Broken pipe. Using strace, looks like groupadd/usermod is trying to write to the nscd socket (/var/run/nscd/socket) and failing with a SIGPIPE signal.

As a workaround, if you shutdown nscd (/etc/init.d/nscd stop) before this, everything works fine.

These utils are doing the right thing, they try to inform nscd to refresh its cache, but looks like the socket is closed and nscd not listening on the other side for some reason?


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Relevant versions:
sys-libs/glibc-2.3.4.20041102
sys-apps/shadow-4.0.7

emerge info:
Gentoo Base System version 1.6.9
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 2800+
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 12 2005, 09:09:27)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.9.4, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-pipe -O3 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O3 -march=athlon-xp -fomit-frame-pointer
-fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow aalib acl alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd
dvdr encode f77 fam font-server foomaticdb fortran gif gnutls gpm gstreamer
imlib ipv6 jpeg jpeg2k kde kdeenablefinal libg++ libwww mad mikmod mng mp3 mpeg
ncurses nls nptl oggvorbis opengl oss pam pdflib perl pic png python qt
quicktime readline samba sse ssl tcpd tiff truetype truetype-fonts type1-fonts
xinerama xml2 xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Sven Wegener gentoo-dev 2005-02-13 18:05:31 UTC

*** This bug has been marked as a duplicate of 80413 ***