passwd fails to change a potentially good password. The output is: (index fread failed) Segmentation fault pam & cracklib are enabled. Reproducible: Always Steps to Reproduce: 1. emerge sync && emerge -u cracklib 2. login and try to change your password Actual Results: (index fread failed) Segmentation fault Expected Results: The password should have been changed # emerge info Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20 i686 Celeron (Coppermine) GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode gif gpm gtk imlib java jpeg kde gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl spell svga truetype X xml2 xmms xv zlib gdbm berkdb slang readline tcpd pam ssl perl python" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 9128 [details, diff] extra.words file in miscfiles-1.3 Should be applied during ebuild unpack
Created attachment 9129 [details, diff] extra.words file in miscfiles-1.3 Should be applied during ebuild unpack
Created attachment 9130 [details, diff] applies miscfiles-1.3.diff patch
thanks, diff applied to 1.3-r1 please test
After some testing, I have found that: * the patch works, i.e. incorporates extra.words into cracklib dictionary and removes cat: no such file message during cracklib build; * it does not solve the problem with passwd failing. Additionally: * passwd fails only if cracklib was built inside of chroot environment and only with specific passwords (they are not weird or bad, just specific, and I just happened to use them) * emerge cracklib after restart into the installed system solved the problem I used Gentoo 1.4_rc2 livecd+grp for pentium3 for installation but not booting form cd. I used existing Slackware system to setup a build environment. I don't know if the problem comes up when booting from cd, nor if the problem persists with 1.4_rc3. If I have time, I'll check that.