When I try to change password to "asdf1asd" passwd ends with Segmentaion fault and there are more password combinations when passwd fails. Fortunately it is not completely broken, because when I try to change password to "nitram" everything works fine. # results if I type asdf1asd $ passwd martin New UNIX password: (index fread failed): Operation not permited Segmentation fault $ # results if I type nitram $ passwd martin New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: $ Reproducible: Always Steps to Reproduce: 1. passwd martin 2. enter asdf1asd as password 3. Actual Results: (index fread failed): Operation not permited Segmentation fault Expected Results: Retype new UNIX password: I have just installed and compiled gentoo from stage2 # emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22) ================================================================= System uname: 2.4.22 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://ftp.snt.utwente.nl/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/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 oss apm avi crypt cups encode foomaticdb gif jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt opengl acpi cdr dvd innodb jikes mozilla usb xinerama gtk2 -svga"
Sorry to say, but this bug did not get that much attention. I'm also not able to reproduce the problem. Can it still be reproduced? Please reopen this bug if it can still be reproduced. In the mean time, I'm closing it as TEST-REQUEST.
I have same problem. If i change password like: # passwd New UNIX password: jedi44 (index fread failed): Success Segmentation fault I try "jedi(some 2 digits)" with the same result. When i swap "jedi" for somethings other, it work well. I try it on 2 other systems. 1 work good, 1 crash like this one. All 3 systems are gentoo compiled from stage-1, updated all software weekly. Kernel: 2.4.22-gentoo-r7 emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r7-d1) ================================================================= System uname: 2.4.22-gentoo-r7-d1 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium3 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium3 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acl apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gpm gtk imlib jpeg kde libg++ libwww linguas_cs mad matrox mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype video_cards_matrox x86 xml2 xmms xv zlib" It was compiled without distcc.
Don't know if this is related but it also crashes for me. I found out that this has something to do with /etc/passwd parsing. If there are colons missing on an entry passwd segfaults on it. Minimal example: whisper ~ # grep test /etc/passwd ; passwd test test:x:2000:2000:: Segmentation fault whisper ~ # grep test /etc/passwd ; passwd test test:x:2000:2000: Segmentation fault whisper ~ # grep test /etc/passwd ; passwd test test:x:2000:2000::: passwd: Authentication token manipulation error