Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56898 - [glibc/tests] makecheck for glibc segfaults with sandbox
Summary: [glibc/tests] makecheck for glibc segfaults with sandbox
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 56815 58475 69209 126071 126178 131481 132624 134185 148480 150756 167416 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-13 07:12 UTC by Cletus Lichte
Modified: 2010-03-27 22:59 UTC (History)
22 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
modify ld library-path in test scripts so tests pass with sandbox enabled (glibc-2.3.6-pass-sandboxed-tests.patch,8.71 KB, patch)
2006-07-08 09:06 UTC, Wormo (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cletus Lichte 2004-07-13 07:12:29 UTC
I get the following when trying to emerge glibc; I've tried this twice now with the same error both times:

/bin/sh -e run-iconv-test.sh /tmp/portage/glibc-2.3.4.20040619/work/build > /tmp/portage/glibc-2.3.4.20040619/work/build/iconvdata/iconv-test.out
run-iconv-test.sh: line 142:  4201 Segmentation fault      $PROG -f $from -t $t testdata/$from >$temp1
make[2]: *** [/tmp/portage/glibc-2.3.4.20040619/work/build/iconvdata/iconv-test.out] Error 1
make[2]: Leaving directory `/tmp/portage/glibc-2.3.4.20040619/work/glibc-2.3.2/iconvdata'
make[1]: *** [iconvdata/tests] Error 2
make[1]: Leaving directory `/tmp/portage/glibc-2.3.4.20040619/work/glibc-2.3.2'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20040619 failed.
!!! Function do_makecheck, Line 238, Exitcode 2
!!! (no error message)


emerge info:

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r9)
=================================================================
System uname: 2.6.7-gentoo-r9 i686 VIA Samuel 2
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=c3 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=c3 -O2 -pipe"
DISTDIR="/tmp/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j1"
PKGDIR="/tmp/usr/portage/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/tmp/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3ds X X509 Xaw3d aalib acpi acpi4linux activefilter alsa apache2 athena atlas audiofile avi berkdb cddb cle266 crypt cscope cups curl dedicated dga dillo divx4linux djbfft dnd dv dvd emacs encode escreen ethereal f77 faac faad fdftk fftw flac flash fltk fluidsynth fmod foomaticdb gd gdbm ggi gif gimpprint glade gpm gstreamer gtk gtk2 icq idl imagemagick imap imlib imlib2 jabber jack jack-caps jack-tmpfs javascript jpeg ladcca lcms libcaca libwww live lufsusermount mad makecheck mbox mcal md5sum mikmod mmx mng motif mozilla moznocompose moznoirc moznomail mozsvg mpeg mpeg4 mpi mplayer msn ncurses net nogcj nomac objc oggvorbis opengl oscar oss pam parse-clocks pcap pda pdflib perl plotutils png ppds python qt quicktime radeon readline ruby ruby18 sdl skey slp sox speex spell sqlite ssl svg tcltk tcpd tetex tiff truetype unicode usb video_cards_radeon videos vim-with-x wmf wxwindows x86 xgetdefault xml xml2 xmms xprint xv xvid yahoo yv12 zlib"
Comment 1 Travis Tilley (RETIRED) gentoo-dev 2004-07-15 01:39:09 UTC
out of curiousity, does this work with FEATURES="-sandbox"?
Comment 2 solar (RETIRED) gentoo-dev 2004-07-15 09:11:33 UTC
I think this is the bug that azarah ran into.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2004-07-15 11:36:21 UTC
Yep.  It is too erratic to pin-point though, but it seems the segfault is
usually on some or other glibc function returning, so i assume it is 
stack corruption somewhere when inside sandbox - it works fine outside ...
Weird thing is that it is only for 'make check' in glibc, and nothing else.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2004-07-15 13:53:24 UTC
*** Bug 56815 has been marked as a duplicate of this bug. ***
Comment 5 SpanKY gentoo-dev 2004-11-23 22:28:25 UTC
*** Bug 58475 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2004-11-23 22:29:13 UTC
*** Bug 69209 has been marked as a duplicate of this bug. ***
Comment 7 Sascha Silbe 2004-11-24 04:52:58 UTC
I'm having the same problem as described in bug #69209 (marked as dupe of this bug), but even with FEATURES=-sandbox:

root@cube:~# FEATURES=-sandbox emerge -uv --newuse --oneshot --nospinner glibc
[...]
GCONV_PATH=/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/iconvdata LC_ALL=C   /var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/elf/ld-linux.so.2 --library-path /var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/math:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/elf:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/dlfcn:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/nss:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/nis:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/rt:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/resolv:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/crypt:/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/linuxthreads /var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/iconvdata/bug-iconv3  > /var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/iconvdata/bug-iconv3.out
/bin/sh -e run-iconv-test.sh /var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build > /var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/iconvdata/iconv-test.out
make[2]: *** [/var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/iconvdata/iconv-test.out] Error 1
make[2]: Leaving directory `/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3/iconvdata'
make[1]: *** [iconvdata/tests] Error 2
make[1]: Leaving directory `/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/glibc-2.3.3'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20040808-r1 failed.
!!! Function do_makecheck, Line 233, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

root@cube:~# grep FAILED /var/tmp/portage/portage/glibc-2.3.4.20040808-r1/work/build/iconvdata/iconv-test.out 
   test data: ISO-2022-JP-3 -> UTF8 OK/OK -> ISO-2022-JP-3 OK/FAILED
root@cube:~# emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-cube-3 i686)
=================================================================
System uname: 2.6.7-cube-3 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /usr/vice/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf /etc/make.globals /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks maketest sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage"
USE="3dnow X acl afs apm avi berkdb bitmap-fonts cdr crypt doc dvd dvdr encode f77 fam flac foomaticdb fortran gdbm gif gimpprint gtk gtk2 gtkhtml guile hbci imagemagick imap imlib ipv6 j-noaim j-nomsn j-noyahoo jabber jpeg krb4 lcms libg++ libwww lvm1 mad maildir makecheck mbox mikmod mmx monitor mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib plotutils png postgres python qt qtmt quicktime readline samba sdl skey spell sqlite sse ssl tetex tiff truetype unicode x86 xml xml2 xv xvid zlib linguas_en,de"


Trying FEATURES="-sandbox -usersandbox" now...

Comment 8 Sascha Silbe 2004-11-24 05:40:59 UTC
Same result with FEATURES="-sandbox -usersandbox".
Comment 9 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-10 02:35:19 UTC
Could you please test 2.3.4.20050125
Comment 10 SpanKY gentoo-dev 2005-02-10 15:28:30 UTC
ive been punting sandbox in src_test() in newer glibc's ...
Comment 11 Jason Stubbs (RETIRED) gentoo-dev 2005-05-18 21:06:53 UTC
Still an issue with glibc-2.3.4.20040808-r1 under sandbox-1.2.8.
Comment 12 Jason Stubbs (RETIRED) gentoo-dev 2005-05-18 21:07:59 UTC
Apologies. Make that glibc-2.3.5.
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2005-05-20 03:58:56 UTC
The way both's internal's work they just do not play nicely.  Here I do not get
segfaults, but some of the pthread key tests fail due to glibc allocating a key
on preload.
Comment 14 bbkr 2005-08-06 01:54:46 UTC
something similar here:

fresh install. 'stage1 form stage3' tutorial. newest portage tree. 2005.0 stage
3 for amd64.

--------------------
zonk / # emerge glibc -pvt

These are the packages that I would merge, in reverse order:

Calculating dependencies ...done!
[ebuild     U ] sys-libs/glibc-2.3.5-r1 [2.3.4.20041102] -build -erandom
-glibc-compat20 -glibc-omitfp +hardened* -linuxthreads-tls (-multilib) +nls
-nptl -nptlonly -pic -profile (-selinux) +userlocales* 0 kB

Total size of downloads: 0 kB
--------------------

and...

--------------------
x86_64-pc-linux-gnu-gcc macintosh.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=k8 -pipe -mpreferred-stack-boundary=2
 -fPIC    -I../include -I.
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata
-I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED    
-DNOT_IN_libc -o
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/macintosh.os
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/macintosh.os.dt
-MT
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/macintosh.os


../iconv/skeleton.c: In function `gconv':
../iconv/skeleton.c:801: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.


x86_64-pc-linux-gnu-gcc iec_p27-1.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=k8 -pipe -mpreferred-stack-boundary=2
 -fPIC    -I../include -I.
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata
-I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED    
-DNOT_IN_libc -o
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/iec_p27-1.os
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/iec_p27-1.os.dt
-MT
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/iec_p27-1.os
x86_64-pc-linux-gnu-gcc asmo_449.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=k8 -pipe -mpreferred-stack-boundary=2
 -fPIC    -I../include -I.
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata
-I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED    
-DNOT_IN_libc -o
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/asmo_449.os
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/asmo_449.os.dt
-MT
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/asmo_449.os
x86_64-pc-linux-gnu-gcc ansi_x3.110.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=k8 -pipe -mpreferred-stack-boundary=2
 -fPIC    -I../include -I.
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata
-I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED    
-DNOT_IN_libc -o
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/ansi_x3.110.os
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/ansi_x3.110.os.dt
-MT
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/ansi_x3.110.os
x86_64-pc-linux-gnu-gcc csn_369103.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -march=k8 -pipe -mpreferred-stack-boundary=2
 -fPIC    -I../include -I.
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata
-I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu
-I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -isystem /usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DSHARED    
-DNOT_IN_libc -o
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/csn_369103.os
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/csn_369103.os.dt
-MT
/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/csn_369103.os
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: ***
[/var/tmp/portage/glibc-2.3.5-r1/work/build-x86-x86_64-pc-linux-gnu-linuxthreads/iconvdata/iso-2022-jp.os]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5/iconvdata'
make[1]: *** [iconvdata/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.5-r1 failed.
!!! Function toolchain-glibc_src_compile, Line 226, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
--------------------

notice internal compiler error and Segfault (i've made empty lines around them)

some info:

--------------------
zonk / # emerge info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.12.2 x86_64)
=================================================================
System uname: 2.6.12.2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  4 2005, 20:56:19)]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe -s -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -s -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa apache2 audiofile avi berkdb bindist bitmap-fonts
bzlib cdr crypt cups dba dv dvd dvdread eds encode ffmpeg flac foomaticdb
fortran ftp gd gif gphoto2 gpm gstreamer gtk gtk2 hardened imlib ipv6 jpeg
jpeg2k kde lirc lm_sensors logitech-mouse lzw lzw-tiff mad mime mp3 mpeg mysql
ncurses nls ogg opengl pam pcre pdflib perl png python qt quicktime readline
real sasl sdl spell ssl tcpd threads tiff truetype truetype-fonts type1-fonts
unicode usb userlocales v4l xpm xv xvid zlib linguas_pl userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
--------------------

--------------------
zonk / # uname -a
Linux zonk 2.6.12.2 #19 Thu Aug 18 15:30:53 BST 2005 x86_64 AMD Athlon(tm) 64
Processor 3000+ AuthenticAMD GNU/Linux
--------------------

--------------------
zonk / # gcc -v
Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/specs
Configured with: /var/tmp/portage/gcc-3.4.3-r1/work/gcc-3.4.3/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3
--host=x86_64-pc-linux-gnu --disable-altivec --enable-nls
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu
--with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-shared --enable-threads=posix
--enable-multilib --disable-libgcj --enable-languages=c,c++
Thread model: posix
gcc version 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
--------------------

--------------------
zonk / # cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 47
model name      : AMD Athlon(tm) 64 Processor 3000+
stepping        : 0
cpu MHz         : 1808.359
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow
pni lahf_lm
bogomips        : 3579.90
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
--------------------

--------------------
hardware:
- AMD64 3000+ Venice core
- DFI LAN Party Ultra-D NForce 4
- 1GB DDR 400 Dual Channel RAM
- two Samsung disk in RAID 0 Array
SYSTEM IS NOT OVERCLOCKED
DEFAULT MEMORY TIMINGS
DEFAULT VOLTAGES
--------------------


i've tried:
- using 2 different Live CD's (install-amd64-minimal-2005.0.iso and
livecd64-ahorn5.iso, both with 2.6.11 kernels)
- using installed on other disc slackware current with 2.6.12.2 kernel
- using different filesystems (ReiserFS 3.6 and 4.0)
- simpler flags such as "-O0 -march=k8"
- simpler features, like disabling sandbox
- setting /proc/sys/kernel/randomize_va_space to 0 (compiler crashed earlier,
many many registers printed on the screen :)

i've checked
- swap (active 1GB, but not even hitted once such i have 1GB ram)
- hardware seems to be fine. i've ran memtest86, no errors.
- /dev and /proc are binded (/dev is for raid md* devices)
- md5 checksums
- temperatures: 35 Celsius on CPU under heavy load (watercooled). good memory
and disks cooling. chipset temp is around 40 deg.

ERROR IS REPRODUCTABLE
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-02-19 08:58:20 UTC
Still broken with glibc-2.3.6-r3

/bin/sh -e run-iconv-test.sh /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl > /var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/iconvdata/iconv-test.out
      3336:     &#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;"&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;`&#271;&#380;&#733;&#271;&#380;&#733;"&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;"&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;&#271;&#380;&#733;run-iconv-test.sh: line 61:  3336 Segmentation fault      $PROG -f $from -t $t testdata/$from >$temp1
make[2]: *** [/var/tmp/portage/glibc-2.3.6-r3/work/build-default-i686-pc-linux-gnu-nptl/iconvdata/iconv-test.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6/iconvdata'
make[1]: *** [iconvdata/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r3/work/glibc-2.3.6'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.3.6-r3 failed.
Call stack:
  ebuild.sh, line 1909:   Called dyn_test
  ebuild.sh, line 1023:   Called src_test
  glibc-2.3.6-r3.ebuild, line 1274:   Called toolchain-glibc_src_test
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2006-02-20 22:29:40 UTC
Yes, it wont work.  Same type of thing as not being able to use -Bdirect or whatever with glibc.
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-03-13 13:49:19 UTC
*** Bug 126071 has been marked as a duplicate of this bug. ***
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-03-14 10:03:02 UTC
*** Bug 126178 has been marked as a duplicate of this bug. ***
Comment 19 Jakub Moc (RETIRED) gentoo-dev 2006-04-27 10:09:35 UTC
*** Bug 131481 has been marked as a duplicate of this bug. ***
Comment 20 Jakub Moc (RETIRED) gentoo-dev 2006-05-07 15:41:41 UTC
*** Bug 132624 has been marked as a duplicate of this bug. ***
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-05-24 03:42:08 UTC
*** Bug 134185 has been marked as a duplicate of this bug. ***
Comment 22 jieryn 2006-05-24 03:47:05 UTC
Since this keeps cropping up, why don't we filter the appropriate FEATURES or bail out with an error? People have been running into this for literally two years now......
Comment 23 Wormo (RETIRED) gentoo-dev 2006-07-08 09:06:18 UTC
Created attachment 91210 [details, diff]
modify ld library-path in test scripts so tests pass with sandbox enabled

This patch fixes the test failure due to having sandbox enabled, but note there is   a requirement that you have connectivity to a DNS server in /etc/resolv.conf while the glibc test stage is running or else it will fail at a different place (a test for memory leaks in name resolution...)
Comment 24 Martin Schlemmer (RETIRED) gentoo-dev 2006-07-08 14:44:36 UTC
(In reply to comment #23)
> Created an attachment (id=91210) [edit]
> modify ld library-path in test scripts so tests pass with sandbox enabled
> 
> This patch fixes the test failure due to having sandbox enabled, but note there
> is   a requirement that you have connectivity to a DNS server in
> /etc/resolv.conf while the glibc test stage is running or else it will fail at
> a different place (a test for memory leaks in name resolution...)
> 

It works here with sandbox-1.2.20_alpha1-r2 and glibc-2.4-r3 without above patch.  Not sure if anybody else want to confirm, or test with older glibc's.  Sorry, I mentioned it in another bug, but forgot about this one.
Comment 25 Martin Schlemmer (RETIRED) gentoo-dev 2006-07-08 15:07:45 UTC
(In reply to comment #24)
> (In reply to comment #23)
> > Created an attachment (id=91210) [edit]
> > modify ld library-path in test scripts so tests pass with sandbox enabled
> > 
> > This patch fixes the test failure due to having sandbox enabled, but note there
> > is   a requirement that you have connectivity to a DNS server in
> > /etc/resolv.conf while the glibc test stage is running or else it will fail at
> > a different place (a test for memory leaks in name resolution...)
> > 
> 
> It works here with sandbox-1.2.20_alpha1-r2 and glibc-2.4-r3 without above
> patch.  Not sure if anybody else want to confirm, or test with older glibc's. 
> Sorry, I mentioned it in another bug, but forgot about this one.
> 

Hmm, no, 2.3.6 at least still fails with the segfault, so guess the patch for it is in order.
Comment 26 Martin Schlemmer (RETIRED) gentoo-dev 2006-07-08 16:07:17 UTC
Checked again, and at least here on glibc-2.4-r3 with sandbox-1.2.20_alpha1-r2 it works fine.  Even the pthread key creation problem in comment #13 is resolved.  I will see if I have time to check with older sandbox versions.

Comment 27 Wormo (RETIRED) gentoo-dev 2006-07-09 21:44:59 UTC
The problem was occuring for me with sandbox 1.2.17 and glibc 2.3.6-r4
Comment 28 SpanKY gentoo-dev 2006-07-09 22:08:29 UTC
resolv issue isnt specific to sandbox, it'd fail anyways

neat idea updating lib paths ... wonder if there's somewhere more common we could do this so we wouldnt have to update everything ?  maybe replace the ld.so that gets executed with a wrapper script that appends the dlfcn path automatically ?
Comment 29 Martin Schlemmer (RETIRED) gentoo-dev 2006-07-10 10:48:31 UTC
(In reply to comment #28)

> neat idea updating lib paths ... wonder if there's somewhere more common we
> could do this so we wouldnt have to update everything ?  maybe replace the
> ld.so that gets executed with a wrapper script that appends the dlfcn path
> automatically ?
> 

No on the common place.  Sure on the wrapper, but it seems fixed in 2.4, and its only a small number of the tests that uses the scripts. So not sure if its worth it.

Comment 30 Wormo (RETIRED) gentoo-dev 2006-07-15 14:00:28 UTC
So what's the decision? Going to accept the patch basically as-is or are you holding out for an ld wrapper instead?
Comment 31 SpanKY gentoo-dev 2006-07-16 01:02:19 UTC
maybe something like this:
...
    mv elf/ld.so elf/ld.so.bin
    cp "${WORKDIR}"/extras/ld.so.sh elf/ld.so
    sed -i "s:@DLFCN_PATH@:${PWD}/dlfcn:" elf/ld.so
    make check
    mv elf/ld.so.bin elf/ld.so
...

and the ld.so.sh would look like:
#!/bin/bash
exec \
        ${0/.sh/.bin} \
        $(echo "$@" | sed \
                's|\(--library-path [^ \t]*\)|\1:@DLFCN_PATH@|')

or is this too hackish ? :)
Comment 32 SpanKY gentoo-dev 2006-07-19 21:12:49 UTC
yeah that doesnt work ... i forgot that when running make check, glibc compiles the tests against the ld.so and then runs them ... trying to replace the ELF ld.so with the shell script certainly wont cut it

i'll test out the original patch ;)
Comment 33 Paolo Pedroni 2006-08-25 03:26:26 UTC
(In reply to comment #25)
> (In reply to comment #24)
> > (In reply to comment #23)
> > > Created an attachment (id=91210) [edit]
> > > modify ld library-path in test scripts so tests pass with sandbox enabled
> > > 
> > > This patch fixes the test failure due to having sandbox enabled, but note there
> > > is   a requirement that you have connectivity to a DNS server in
> > > /etc/resolv.conf while the glibc test stage is running or else it will fail at
> > > a different place (a test for memory leaks in name resolution...)
> > > 
> > 
> > It works here with sandbox-1.2.20_alpha1-r2 and glibc-2.4-r3 without above
> > patch.  Not sure if anybody else want to confirm, or test with older glibc's. 
> > Sorry, I mentioned it in another bug, but forgot about this one.
> > 
> 
> Hmm, no, 2.3.6 at least still fails with the segfault, so guess the patch for
> it is in order.
> 

Here it does not work with glibc-2.4-r3 and sandbox-1.2.20_alpha1-r2 or sandbox-1.2.20_alpha2.
Comment 34 Drake Wyrm 2006-09-02 15:17:23 UTC
I noticed this bug when upgrading from sys-libs/glibc-2.3.6-r4 to sys-libs/glibc-2.4-r3, but this particular test completes successfully on my system when compiling sys-libs/glibc-2.4-r3 with itself. To get past this particular bug, install with FEATURES=-test and then recompile with tests enabled. Note, however, that _different_ tests still fail.

Emerge logs are available, if potentially useful.

Gentoo Base System version 1.12.4
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) processor
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict test"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.arcticnetwork.ca/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/"
LINGUAS="en en_US"
MAKEOPTS="-j2 -w"
PKGDIR="/usr/share/packages/portage"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/boxed-main /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl alsa bash-completion berkdb bzip2 cjk crypt dga directfb doc esd fbcon flac gdbm gif gnome gpm gtk gtk2 imagemagick ipv6 java jpeg ldap mad mbox mmx mpeg mysql ncurses nls nptl nptlonly offensive ogg oggvorbis opengl oss pam perl png python readline sdl skey slang ssl svga tcl tcltk tcpd tetex tiff tk truetype unicode xv zlib elibc_glibc input_devices_evdev input_devices_jamstudio input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_en_US userland_GNU video_cards_fbdev video_cards_r128 video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Currently, gcc and glibc are installed thusly:
sys-devel/gcc-4.1.1  USE="doc fortran gtk nls -bootstrap -build -gcj -hardened -ip28 -ip32r10k -mudflap -multislot -nocxx -objc -objc++ -objc-gc -test -vanilla"
sys-libs/glibc-2.4-r3  USE="nls nptl nptlonly -build -glibc-omitfp -hardened -profile"
Comment 35 Stuart Shelton 2006-09-04 18:08:50 UTC
With or without sandboxing, the latest glibc test suite fails... although seemingly at different places.  If the non-sandbox run stops because of an issue related to resolv.conf (which is correct) then what is needed for it to succeed?


ebuild /usr/portage/sys-libs/glibc/glibc-2.4-r3.ebuild test

...
/bin/sh -e run-iconv-test.sh /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl > /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/iconvdata/iconv-test.out
run-iconv-test.sh: line 61: 26091 Segmentation fault      $PROG -f $from -t $t testdata/$from >$temp1
make[2]: *** [/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/iconvdata/iconv-test.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/iconvdata'
make[1]: *** [iconvdata/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.4-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_test
  ebuild.sh, line 987:   Called src_test
  glibc-2.4-r3.ebuild, line 1199:   Called toolchain-glibc_src_test
  glibc-2.4-r3.ebuild, line 295:   Called die

!!! nptl glibc did not pass make check


FEATURES="-sandbox -userpriv -usersandbox" ebuild /usr/portage/sys-libs/glibc/glibc-2.4-r3.ebuild test

...
GCONV_PATH=/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/iconvdata LC_ALL=C MALLOC_TRACE=/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/tst-leaks.mtrace  /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library-path /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nptl /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/tst-leaks  > /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/tst-leaks.out
Timed out: killed the child process
make[2]: *** [/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/tst-leaks.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/resolv'
make[1]: *** [resolv/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.4-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_test
  ebuild.sh, line 987:   Called src_test
  glibc-2.4-r3.ebuild, line 1199:   Called toolchain-glibc_src_test
  glibc-2.4-r3.ebuild, line 295:   Called die

!!! nptl glibc did not pass make check


resolv.conf:
# Generated by dhcpcd for interface wlan0
domain rt.dnsalias.com
nameserver 10.1.100.254
nameserver 194.168.8.100
nameserver 194.168.4.100


emerge --info
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System version 1.12.4
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
<snip>
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox"
Comment 36 Stuart Shelton 2006-09-04 18:22:56 UTC
... and with a "domain" entry in resolv.conf of "dnsalias.net" rather than "rt.dnsalias.com" (is that invalid?) I instead get:

GCONV_PATH=/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/iconvdata LC_ALL=C   /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library-path /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/math:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nss:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nis:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/rt:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/crypt:/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nptl /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nptl/test-as-const-lowlevelrobustlock  > /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nptl/test-as-const-lowlevelrobustlock.out
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/nptl'
make  subdir=resolv -C resolv ..=../ tests
make[2]: Entering directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/resolv'
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/resolv'
make[2]: Entering directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/resolv'
/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/malloc/mtrace /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/tst-leaks.mtrace > /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/mtrace-tst-leaks
make[2]: *** [/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/mtrace-tst-leaks] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/resolv'
make[1]: *** [resolv/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.4-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_test
  ebuild.sh, line 987:   Called src_test
  glibc-2.4-r3.ebuild, line 1199:   Called toolchain-glibc_src_test
  glibc-2.4-r3.ebuild, line 295:   Called die

!!! nptl glibc did not pass make check

... and /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/resolv/mtrace-tst-leaks contains:

Memory not freed:
-----------------
   Address     Size     Caller
0x8001f378     0x1c  at 0xb7f2e6a8
0x8001f398     0x1c  at 0xb7f2e6a8

... which looks like a legitimate test failure.
Comment 37 Brant Gurganus 2006-09-04 18:54:40 UTC
I also had the latest glibc fail at different places, however running it by hand, I could run make check and it would continue where it left off and eventually finish. All of the failures I saw were timeouts so it looks like things were actually finishing correctly, just slower than expected. For that reason, I did FEATURES="-test" for upgrading glibc.
Comment 38 Stuart Shelton 2006-09-05 01:03:16 UTC
I've retried the build with gcc-3.4.6 instead of gcc-4.1.1, and then re-run the tests manually when they fail.  They still stop at the same point:

Memory not freed:
-----------------
   Address     Size     Caller
0x8001d378     0x1c  at 0xb7ff22a4
0x8001d398     0x1c  at 0xb7ff22a4

The caller address has changed, but the address and size are identical to the automated tests.

Since CFLAGS are stripped for this build and this happens with multiple compiler versions, what could be causing the memory leaks?
Comment 39 Stuart Shelton 2006-09-05 01:26:06 UTC
... continuing the tests after the previous error:

/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/check-localplt /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/libc.so \
                /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/math/libm.so /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/nptl/libpthread.so \
                /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/rt/librt.so \
                /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/dlfcn/libdl.so | \
  LC_ALL=C sort | \
  diff -u ../scripts/data/localplt-i386-linux-gnu.data - > /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/check-localplt.out
make[2]: *** [/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/check-localplt.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4/elf'
make[1]: *** [elf/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r3/work/glibc-2.4'
make: *** [check] Error 2


/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/elf/check-localplt.out:

--- ../scripts/data/localplt-i386-linux-gnu.data        2006-01-11 21:06:19.000000000 +0000
+++ -   2006-09-05 09:09:26.139459000 +0100
@@ -1,4 +1,5 @@
 libc.so: _Unwind_Find_FDE
+libc.so: __bzero
 libc.so: calloc
 libc.so: free
 libc.so: malloc
Comment 40 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 03:03:04 UTC
*** Bug 148480 has been marked as a duplicate of this bug. ***
Comment 41 Philipp Riegger 2006-09-25 06:22:58 UTC
(In reply to comment #34)
> I noticed this bug when upgrading from sys-libs/glibc-2.3.6-r4 to
> sys-libs/glibc-2.4-r3, but this particular test completes successfully on my
> system when compiling sys-libs/glibc-2.4-r3 with itself.

Is this true for stable sandbox or just for 1.2.20 alpha?
Comment 42 Drake Wyrm 2006-09-25 09:18:50 UTC
Currently installed:

[ebuild   R   ] sys-apps/sandbox-1.2.18.1  0 kB 
Comment 43 Jakub Moc (RETIRED) gentoo-dev 2006-10-10 10:33:14 UTC
*** Bug 150756 has been marked as a duplicate of this bug. ***
Comment 44 Keno 2007-02-16 10:33:13 UTC
Similar error building the glibc-2.5 on AMD64:

FEATURES=test emerge -vp sys-libs/glibc
[ebuild   R   ] sys-libs/glibc-2.5  USE="nls nptl nptlonly -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB

[...]
GCONV_PATH=/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/iconvdata LC_ALL=C   /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library-path /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/tst-cancel1  > /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/tst-cancel1.out
Didn't expect signal from child: got `Aborted'
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl/tst-cancel1.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5/nptl'
make[1]: *** [nptl/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_test
  ebuild.sh, line 1026:   Called qa_call 'src_test'
  environment, line 4161:   Called src_test
  glibc-2.5.ebuild, line 1134:   Called src_test
  glibc-2.5.ebuild, line 1142:   Called toolchain-glibc_src_test 'nptl'
  glibc-2.5.ebuild, line 272:   Called die

!!! make check failed for x86-x86_64-pc-linux-gnu-nptl
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.5/temp/build.log'.

The file tst-cancel1.out is empty.

emerge --info:
Portage 2.1.2-r9 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.17-gentoo-r8_TyanVX50_smp_4_modules_gcc3.4.6r1 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8_TyanVX50_smp_4_modules_gcc3.4.6r1 x86_64 Dual Core AMD Opteron(tm) Processor 875
Gentoo Base System release 1.12.8
Timestamp of tree: Thu, 15 Feb 2007 15:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe -msse -msse2 -mmmx -m3dnow"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=opteron -O2 -pipe -msse -msse2 -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks metadata-transfer sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.inf.elte.hu ftp://gentoo.inf.elte.hu   ftp://ftp.nyx.hu/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo   ftp://gd.tuwien.ac.at/opsys/linux/gentoo   ftp://ftp.tu-clausthal.de/pub/linux/gentoo   ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo   http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror   ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror   http://ftp.uni-erlangen.de/pub/mirrors/gentoo   ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo   ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo   ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo   ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo   http://mirrors.sec.informatik.tu-darmstadt.de/gentoo   http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo   ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo   ftp://ftp.gentoo.mesh-solutions.com/gentoo   http://pandemonium.tiscali.de/pub/gentoo   ftp://pandemonium.tiscali.de/pub/gentoo   ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles   http://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo   http://gentoo.intergenia.de http://gentoo.inode.at   ftp://gentoo.inode.at/source   http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnowex X a52 aac aalib accessibility acpi alsa amd64 ao apm arts asf audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr clamav cli cpudetection cracklib crypt cups curl curlwrappers divx4linux dlloader doc dri dv dvd dvdr dvdread eds emacs emboss encode esd exif fam fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp gd gdbm ggi gif gmp gphoto2 gpm gstreamer gtk gtk2 hal iconv idn ieee1394 imagemagick imlib isdnlog java javascript jpeg kde kdeenablefinal lm_sensors lzw lzw-tiff mad midi ming mng mozilla mp3 mpeg mpi mule mysql ncurses nls nptl nptlonly nsplugin odbc ogg oggvorbis opengl oss pam pcmcia pcre pdf perl plotutils pmu png pppd python qt qt3 qt4 quicktime readline reflection samba scanner sdl session slp sndfile spell spl ssl tcl tcltk tcpd theora tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vorbis wifi wmf xine xinerama xml xml2 xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm fbdev fglrx mach64 r128 radeon vesa vga vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 45 Keno 2007-02-16 11:58:29 UTC
... trying to build with:
FEATURES="test -sandbox -usersandbox" emerge -v sys-libs/glibc

The output changes, but the tst-pselect.out is also empty:
Q: Maybe is it a new bug?

[...]
GCONV_PATH=/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/iconvdata LC_ALL=C   /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library-path /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/misc/tst-pselect  > /var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/misc/tst-pselect.out
Timed out: killed the child process
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.5/work/build-x86-x86_64-pc-linux-gnu-nptl/misc/tst-pselect.out] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5/misc'
make[1]: *** [misc/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_test
  ebuild.sh, line 1026:   Called qa_call 'src_test'
  environment, line 4160:   Called src_test
  glibc-2.5.ebuild, line 1134:   Called src_test
  glibc-2.5.ebuild, line 1142:   Called toolchain-glibc_src_test 'nptl'
  glibc-2.5.ebuild, line 272:   Called die

!!! make check failed for x86-x86_64-pc-linux-gnu-nptl
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.5/temp/build.log'.

Comment 46 Jakub Moc (RETIRED) gentoo-dev 2007-02-18 07:09:33 UTC
*** Bug 167416 has been marked as a duplicate of this bug. ***
Comment 47 Jesus de Santos Garcia 2007-02-18 11:09:15 UTC
Hit this bug when emerging glibc-2.3.5 

-----------------------------

/bin/sh -e run-iconv-test.sh
/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i686-pc-linux-gnu-nptl >
/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i686-pc-linux-gnu-nptl/iconvdata/iconv-test.out
run-iconv-test.sh: line 61: 30737 Segmentation fault      $PROG -f $from -t $t
testdata/$from >$temp1
make[2]: ***
[/var/tmp/portage/sys-libs/glibc-2.5/work/build-default-i686-pc-linux-gnu-nptl/iconvdata/iconv-test.out]
Error 1
make[2]: Leaving directory
`/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5/iconvdata'
make[1]: *** [iconvdata/tests] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5/work/glibc-2.5'
make: *** [check] Error 2

!!! ERROR: sys-libs/glibc-2.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_test
  ebuild.sh, line 1026:   Called qa_call 'src_test'
  environment, line 4090:   Called src_test
  glibc-2.5.ebuild, line 1142:   Called toolchain-glibc_src_test 'nptl'
  glibc-2.5.ebuild, line 272:   Called die

--------------------------------

Portage 2.1.2-r9 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4,
2.6.18-gentoo-r2 i686)
=================================================================
System uname: 2.6.18-gentoo-r2 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.12.6
Timestamp of tree: Sat, 17 Feb 2007 02:20:01 +0000
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/share/X11/xkb
/usr/share/logwatch/default.conf /var/www/localhost/htdocs/cacti/include
/var/www/localhost/htdocs/wordpress"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -pipe -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox
sfperms strict test"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://linuv.uv.es/mirror/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US"
LC_ALL="en_US"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt dlloader
dri eds emboss encode fam foomaticdb gdbm gif gnome gstreamer gtk gtk2 iconv
imlib isdnlog jpeg libg++ libwww mad midi mikmod mmx motif mp3 mpeg ncurses nls
nptl nptlonly ogg pam pcre perl png pppd python qt3 qt4 quicktime readline
reflection samba sdl session snmp spl sse sse2 ssl svg test tiff truetype
truetype-fonts type1-fonts usb vorbis x86 xml xorg zlib" ALSA_CARDS="ali5451
als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370
ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident
usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy
dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear
meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 48 Jesus de Santos Garcia 2007-02-27 20:52:29 UTC
Is it an acceptable solution to disable the tests while emerging this package?

I need to update this package and this bugs doesn't seem that is going to be closed soon.
Comment 49 SpanKY gentoo-dev 2007-03-13 06:29:49 UTC
patch has been merged with glibc-2.5-r1, cheers !