I have encountered this issue during emerge -D -u -v world. All other updates went successfully, only this coreutils build fails when emerging world. My system is fairy old and I have only remote access to it, if anything goes seriously wrong (=problems with booting) I will have serious troubles with fixing it. That is why I prefer to have tests enabled and I did not try to proceed with the installation with tests disabled. Here is my emerge info: Portage 2.0.54 (default-linux/x86/no-nptl/2.4, gcc-3.3.6, glibc-2.3.5-r3, 2.4.31-gentoo-r1 i686) ================================================================= System uname: 2.4.31-gentoo-r1 i686 Celeron (Mendocino) Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/tomcat5/webapps /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict test" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apache2 bash-completion bzip2 bzlib cli crypt ctype curl dba dri exif expat fastbuild force-cgi-redirect ftp gd gdbm gencertdaily gif gmp idn imagemagick imap jpeg libg++ libwww maildir memlimit mhash ncurses nls no-htdocs noauthcram pam pcre perl php png posix postgres qmail readline session simplexml slang soap sockets spell spl ssl tcpd tidy tiff tokenizer unicode xml xml2 xsl zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Created attachment 84829 [details] log from emerging coreutils
And the failed test is: make[3]: Entering directory `/var/tmp/portage/coreutils-5.94-r1/work/coreutils-5.94/tests/shred' ./remove: /var/tmp/portage/coreutils-5.94-r1/work/coreutils-5.94/tests/shred: not writable by user `nobody' ./remove: skipping this test SKIP: remove ./exact: line 25: 23017 Segmentation fault shred --remove $opt a b ./exact: line 25: 23018 Segmentation fault shred --remove $opt c FAIL: exact
might want to see about updating your gcc to latest stable 3.4.x
I have tried with gcc 3.4.5 without any improvement. I have also sent this error to bug-coreutils@gnu@org maillist and here is the response http://www.mail-archive.com/bug-coreutils@gnu.org/msg06578.html I have applied the requested patch to shred.c and the problem is fixed, shred works, all make check tests are passed. Probably will need to update shred in coreutils also.
added to current 5.94 patchset ... it'll be in the next release thanks for getting this tracked down
I have checked and confirmed that it works