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

Bug 86465

Summary: glibc fails with segfault with the simple sanity check
Product: Gentoo Linux Reporter: Chad Granum <granum>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: blocker CC: deathwing00, hall.list, jon, mail, me, paul, se.witt, thomas.herold, Vasilii.Alferov, xero
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chad Granum 2005-03-23 21:14:18 UTC
* Installing Info pages...
make -r PARALLELMFLAGS="-j2" CVSOPTS="" -C /var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3 objdir=`pwd` info
make[1]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make -j2 -C manual info
make[2]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/manual'
make[2]: Nothing to be done for `info'.
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/manual'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
* Installing locales in /etc/locales.build...
make -r PARALLELMFLAGS="-j2 -j1" CVSOPTS="" -C /var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3 objdir=`pwd` localedata/install-locales
make[1]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make -j2 -j1 -C localedata install-locales
make[2]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
.././scripts/mkinstalldirs /var/tmp/portage/glibc-2.3.4.20041102-r1/image//usr/lib/locale
mkdir /var/tmp/portage/glibc-2.3.4.20041102-r1/image/usr/lib/locale
en_US.ISO-8859-1... done
en_US.UTF-8... done
ja_JP.EUC-JP... done
ja_JP.UTF-8... done
ja_JP.EUC-JP... done
en_HK.ISO-8859-1... done
en_PH.ISO-8859-1... done
de_DE.ISO-8859-1... done
de_DE.ISO-8859-15@euro... done
es_MX.ISO-8859-1... done
fa_IR.UTF-8... done
fr_FR.ISO-8859-1... done
fr_FR.ISO-8859-15@euro... done
it_IT.ISO-8859-1... done
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
* Installing man pages and docs...
/usr/lib/portage/bin/ebuild.sh: line 1874: 11838 Segmentation fault env LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} >/dev/null

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function src_install, Line 1008, Exitcode 139
!!! simple run test (ls) failed

running bootstrap again reproduces problem, using stage 1 tarball, nothing extra, just installed th etarball and followed handbook exactly. I have done this several times before with no porblems

Reproducible: Always
Steps to Reproduce:
1.get a stage1 configured
2.chroot to stage1
3.bootstrap system

Actual Results:  
glibc gave segfault:
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
make[1]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
* Installing man pages and docs...
/usr/lib/portage/bin/ebuild.sh: line 1874: 11838 Segmentation fault env
LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} >/dev/null 

Expected Results:  
finished compiling/installing

livecd portage # emerge info                                                   
                                                                               
          
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.2, unavailable,
2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:               [2.3.4 (#1, Oct 28 2004, 03:17:30)]
dev-lang/python:     [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  2.15.90.0.1.1-r3
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon64 -pipe"
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="-O2 -march=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acpi alsa berkdb bitmap-fonts cdr crypt dvd dvdr font-server fortran
gif gpm ipv6 jp2 jpeg lzw lzw-tiff mmxext mp3 ncurses nls nvidia opengl oss pam
pcre perl png python readline spell ssl tcpd tiff truetype truetype-fonts
type1-fonts usb userlocales xinerama xml2 xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Marco Steinacher 2005-03-24 02:39:49 UTC
Same thing here with 'emerge --update world' on x86:

[...]
zu_ZA.ISO-8859-1... done
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
 * Installing man pages and docs...
/usr/lib/portage/bin/ebuild.sh: line 1874: 11408 Segmentation fault      env LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} >/dev/null

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function src_install, Line 1008, Exitcode 139

Running 'emerge --update world' or 'emerge glibc' reproduces the problem.
Other people have confirmed this bug too:
http://forums.gentoo.org//viewtopic-t-313260-highlight-glibc.html?sid=cab489f55d995be7f10cd36d57dae917


goedel root # emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r7 i686)
=================================================================
System uname: 2.4.26-gentoo-r7 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 21 2005, 23:33:49)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.4_p6, 1.8.5-r3, 1.9.4, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4, 1.4.3-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.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/X11/xkb /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="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://distfiles.gentoo.org http://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.de.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 alsa apm arts avi berkdb bitmap-fonts cdda cddb cdparanoia cdr crypt cups curl divx4linux dts dvd dvdread emboss encode esd faad fam ffmpeg flac font-server foomaticdb fortran freetype gdbm gif gimpprint gnome gstreamer gtk gtk2 guile imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad matroska mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang snmp spell sse ssl stream svga tcpd tetex tiff truetype truetype-fonts type1-fonts vcd vorbis wxwindows xml xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 2 Bjørn Magnus Mathisen 2005-03-24 06:28:04 UTC
i also get the exact same error message during bootstrap from 2004.3...

# emerge info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.12-rc1-love1 x86_64)
=================================================================
System uname: 2.6.12-rc1-love1 x86_64 
Gentoo Base System version 1.4.16
Python:               [2.3.4 (#1, Oct 28 2004, 03:17:30)]
dev-lang/python:     [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -pipe -fforce-addr -fomit-frame-pointer -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -fPIC"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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 -O3 -pipe -fforce-addr -fomit-frame-pointer -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.gentoo.no ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="no_NO"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/fluidportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib acl acpi alsa apm artworkextra avi berkdb bitmap-fonts cdinstall cdparanoia cdr crypt cscope cups dga divx4linux dvd dvdr dvdread edl emacs encode esd fbcon flac flash font-server fortran ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml hal imap imlib ipv6 java jp2 jpeg libcaca live lzo lzw lzw-tiff maildir mmap mng mozilla mp3 mpeg multilib ncurses network nls nptl nptlonly ntpl nvidia oggvorbis opengl oss pam pdflib perl pgn pic png python qt quicktime readline real samba sdl speex ssl svg tcpd tga theora tiff truetype truetype-fonts type1-fonts usb userlocales wmf xine xinerama xml xml2 xmmms xpm xprint xrandr xv xvid xvmc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 3 Craig Bradney 2005-03-24 06:35:12 UTC
Same here:
mkdir /var/tmp/portage/glibc-2.3.4.20041102-r1/image/usr/lib/locale 
 en_AU.ISO-8859-1... done 
 en_AU.UTF-8... done 
 en_GB.ISO-8859-1... done 
 en_GB.UTF-8... done 
 en_US.ISO-8859-1... done 
 en_US.UTF-8... done 
 de_DE.ISO-8859-1... done 
 de_DE.UTF-8... done 
 de_DE.ISO-8859-15@euro... done 
 de_DE.UTF-8@euro.UTF-8... done 
 fr_CH.ISO-8859-1... done 
 fr_CH.UTF-8... done 
 fr_FR.ISO-8859-1... done 
 fr_FR.UTF-8... done 
 fr_FR.ISO-8859-15@euro... done 
 fr_FR.UTF-8@euro.UTF-8... done 
 make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata' 
 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3' 
  * Installing man pages and docs... 
 /usr/lib/portage/bin/ebuild.sh: line 1874:  3200 Segmentation fault      env LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} >/dev/null 
 
 !!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed. 
 !!! Function src_install, Line 1008, Exitcode 139 
 !!! simple run test (ls) failed 
 !!! If you need support, post the topmost build error, NOT this status message. 

Portage 2.0.51.19 (default-linux/x86/2004.2, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 22:16:35)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
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.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -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="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://gentoo.mirror.sdv.fr http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://luxbg/portage"
USE="x86 X acpi alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl divx4linux dvd dvdr dvdread emboss encode esd fam flac font-server foomaticdb fortran gcj gd gdbm gif gnutls gphoto2 gpm gtk gtk2 imagemagick imap imlib innodb ipv6 java jpeg jpeg2k junit kde kdeenablefinal lcms libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime radeon readline samba sdl slang slp spell sse sse2 ssl svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb vhosts wifi xml xml2 xmms xv zlib linguas_en_GB"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 4 Emmanuel Roger 2005-03-24 07:15:20 UTC
same here:

make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
 * Installing man pages and docs...
/usr/lib/portage/bin/ebuild.sh: line 1874:  4729 Segmentation fault      env LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} >/dev/null

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function src_install, Line 1008, Exitcode 139
!!! simple run test (ls) failed
!!! If you need support, post the topmost build error, NOT this status message.

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Intel(R) Celeron(R) CPU 2.53GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 28 2005, 21:19:29)]
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.4_p6, 1.6.3, 1.7.9-r1, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp3.skynet.be/pub/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://kruimel.snt.utwente.nl/gentoo-portage"
USE="x86 X apache2 apm avi berkdb crypt emboss encode faad font-server fortran gd gdbm gif gpm imagemagick imlib ipv6 jpeg libg++ libwww mmx mp3 ncurses nls pam
 pdflib perl plotutils png python readline samba slang snmp spell sse sse2 ssl tcpd tiff truetype-fonts type1-fonts xml xml2 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 5 Bjørn Magnus Mathisen 2005-03-24 07:50:54 UTC
it seems it is a general bug, not only contained to bootstrapping..
Comment 6 Greg Tassone 2005-03-24 08:46:52 UTC
I am now having this problem on several of our machines with this build for glibc.  You are correct that this has NOTHING to do with bootstrapping... these machines have been running stable now for a while with no problems.

I can reproduce this problem at will: I simply synced the portage tree and tried to run a system update.  I won't bother posting the failure output again.

I think it bears repeating that this is a very generalized, widespread problem.  It definitely has earned the "blocker" status.
Comment 7 Bjørn Magnus Mathisen 2005-03-24 08:53:06 UTC
another note, mayb to the maintainers and the ones handling this bug:
it is not constrained to amd64 either! x86 boxes are falling victim to this bug.
Comment 8 Anand S Bisen 2005-03-24 12:19:45 UTC
same here on an IBM Think PAD T42 but a little different error 

make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
 * Installing man pages and docs...
ls: relocation error: /var/tmp/portage/glibc-2.3.4.20041102-r1/image//lib/libc.so.6: symbol ___tls_get_addr, version GLIBC_2.3 not defined in file ld-linux.so.2 with link time reference

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed. 
!!! Function src_install, Line 1008, Exitcode 127
!!! simple run test (ls) failed 
!!! If you need support, post the topmost build error, NOT this status message. 



Comment 9 Jason Dyer 2005-03-24 12:46:03 UTC
Same problem, trying to do 'emerge -u world' on an x86.
Comment 10 Simon Simonsen 2005-03-24 13:01:15 UTC
Same problem.

One work-around is to remove the failing code in the ebuild:
sys-libs/glibc/glibc-2.3.4.20041102-r1.ebuild line 1006:

for x in ls ps date ; do
  env LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} > /dev/null \
  || die "simple run test (${x}) failed"
done

Commenting those lines out makes glibc install. At bootstrap I don't have a 'ps', does that make it fail?
Comment 11 Sven Wegener gentoo-dev 2005-03-24 13:57:11 UTC
*** Bug 86577 has been marked as a duplicate of this bug. ***
Comment 12 Sven Wegener gentoo-dev 2005-03-24 14:22:32 UTC
*** Bug 86581 has been marked as a duplicate of this bug. ***
Comment 13 Sven Wegener gentoo-dev 2005-03-24 15:00:46 UTC
*** Bug 86587 has been marked as a duplicate of this bug. ***
Comment 14 Stefan Knoblich (RETIRED) gentoo-dev 2005-03-24 15:08:51 UTC
ok, not perfect but should fix the __tls_* and missing ps breackage:

for x in ls date ; do
  env LD_LIBRARY_PATH="${D}/$(get_libdir)" \
      ${D}/$(get_libdir)/ld-linux.so.2 /bin/${x} > /dev/null \
      || die "simple run test (${x}) failed"
done

2 problems:
* be careful about the right ld-linux.so.* name
* ld-linux.so needs the full path to the program that it should run
  (hence the /bin/${x} thing)

maybe there's something else we can use as a "ps" replacement for the test(?)
Comment 15 SpanKY gentoo-dev 2005-03-24 15:29:35 UTC
added a $(type -p ${x}) check to handle the bootstrap case ... i'll do some testing to check out the ld-linux touchup
Comment 16 Mike DeSimone 2005-03-24 16:26:12 UTC
I have this same problem as well, building glibc-2.3.4.20041102-r1.  I have tried it both before and after the "emerge system" step of my stage 2 install, and once with linux-headers and again with linux26-headers (I'm using gentoo-dev-sources).

Regarding Simon's ps-is-missing hypothesis: I have ps installed at /bin/ps now, and it still fails.  Also, it fails looking for ls, and doesn't get to ps.

FYI, in my case:
  ${D}=/var/tmp/portage/glibc-2.3.4.20041102-r1/image
and
  $(get_libdir)=lib

Rebuilding with the following version of the test worked:

for x in ls ps date ; do
  env LD_LIBRARY_PATH="${D}/$(get_libdir)" \
      ${D}/$(get_libdir)/ld-linux.so.* $(type -p ${x}) > /dev/null \
      || die "simple run test (${x}) failed"
done

So... what is this test checking for, anyway?  And why does it need ld-linux.so.*?
Comment 17 SpanKY gentoo-dev 2005-03-24 16:29:08 UTC
the simple sanity check is to make sure the built glibc isnt a piece of crap which just segfaults all over the place ... see Bug 85555 as an example

we'd much rather have a glibc that fails src_install() than a glibc which eats your box :)
Comment 18 Paul Tourville 2005-03-24 16:40:56 UTC
At the risk of "metoo"ing... Me, too.

My fresh build on a dual Xeon 2.8GHz

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.4, unavailable, 2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:               [2.3.4 (#1, Oct 24 2004, 00:50:52)]
dev-lang/python:     [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -mcpu=i686 -mfpmath=sse -msse2 -pipe -ftracer"
CHOST="i686-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=pentium4 -O3 -mcpu=i686 -mfpmath=sse -msse2 -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 acpi apache2 apm berkdb bitmap-fonts crypt emacs emboss exif font-server fortran freetype gd gdbm gif imlib innodb ipv6 jpeg libwww lm_sensors log4j maildir ming mp3 mssql ncurses pam pdflib perl php png python readline regexp spell ssl tcpd threads truetype truetype-fonts type1-fonts userlocales xml2 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


make[2]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
.././scripts/mkinstalldirs /var/tmp/portage/glibc-2.3.4.20041102-r1/image//usr/lib/locale
mkdir /var/tmp/portage/glibc-2.3.4.20041102-r1/image/usr/lib/locale
en_US.ISO-8859-1... done
en_US.UTF-8... done
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
 * Installing man pages and docs...
ls: relocation error: /var/tmp/portage/glibc-2.3.4.20041102-r1/image//lib/libc.so.6: symbol ___tls_get_addr, version GLIBC_2.3 not defined in file ld-linux.so.2 with link time reference

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function src_install, Line 1008, Exitcode 127
!!! simple run test (ls) failed
!!! If you need support, post the topmost build error, NOT this status message.

Comment 19 Stefan Knoblich (RETIRED) gentoo-dev 2005-03-24 19:41:42 UTC
update:

   if [ "$(get_libdir)" != "lib32" ]; then
       for x in ls date ; do
            env LD_LIBRARY_PATH="${D}/$(get_libdir)" \
                 ${D}/$(get_libdir)/ld-${PV}.so /bin/${x} > /dev/null \
                 || die "simple run test (${x}) failed"
       done
   fi

this fixes (i hope, pretty tired atm) two remaining issues:

1. now uses ld-${PV}.so (which is the real linker instead of the symlink,
   e.g. amd64, 64bit ld-linux-x86-64.so.2 vs. ld-linux.so.2 which are both
   symlinks to ld-${PV}.so in different directories (lib32 / lib64))

2. multilib fix, test is skipped in 32bit mode because we won't have 32bit
   versions of ls, date... around to test with

Comment 20 Bill Atkins 2005-03-24 20:32:05 UTC
So is this fixed now?  Can I sync and bootstrap?
Comment 21 Stefan Knoblich (RETIRED) gentoo-dev 2005-03-24 20:34:12 UTC
last update:

${D}/$(get_libdir)/ld-${PV}.so /bin/${x} > /dev/null \

change
ld-${PV}.so -> ld-${NEW_PV}.so
Comment 22 Tiago Vieira Machado 2005-03-24 20:38:59 UTC
I think i've got the same problem here:

morpheus linux # emerge -uDav world  

(...A lot of output goes here, and them...)

 * Installing Info pages...
make -r PARALLELMFLAGS="-j2" CVSOPTS="" -C /var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3 objdir=`pwd` info
make[1]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make -j2 -C manual info
make[2]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/manual'
make[2]: Nothing to be done for `info'.
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/manual'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
 * Installing locales in /etc/locales.build...
make -r PARALLELMFLAGS="-j2 -j1" CVSOPTS="" -C /var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3 objdir=`pwd` localedata/install-locales
make[1]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
make -j2 -j1 -C localedata install-locales
make[2]: Entering directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
.././scripts/mkinstalldirs /var/tmp/portage/glibc-2.3.4.20041102-r1/image//usr/lib/locale
mkdir /var/tmp/portage/glibc-2.3.4.20041102-r1/image/usr/lib/locale
en_US.ISO-8859-1... done
en_US.UTF-8... done
ja_JP.EUC-JP... done
ja_JP.UTF-8... done
ja_JP.EUC-JP... done
en_HK.ISO-8859-1... done
en_PH.ISO-8859-1... done
de_DE.ISO-8859-1... done
de_DE.ISO-8859-15@euro... done
es_MX.ISO-8859-1... done
fa_IR.UTF-8... done
fr_FR.ISO-8859-1... done
fr_FR.ISO-8859-15@euro... done
it_IT.ISO-8859-1... done
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3/localedata'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20041102-r1/work/glibc-2.3.3'
 * Installing man pages and docs...
/usr/lib/portage/bin/ebuild.sh: line 1874:  3377 Segmentation fault      env LD_LIBRARY_PATH="${D}/$(get_libdir)" ${x} >/dev/null

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function src_install, Line 1008, Exitcode 139
!!! simple run test (ls) failed
!!! If you need support, post the topmost build error, NOT this status message.


morpheus linux # emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 15 2005, 07:02:49)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.4, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4"
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 /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="-Os -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.las.ic.unicamp.br/gentoo http://mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.osuosl.org/ ftp://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aac aalib accessibility acpi acpi4linux alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cddb cdr crypt cups curl divx divx4linux dmx dvd dvdread emacs emboss encode esd fam ffmpeg flac flash font-server foomaticdb fortran freetype gdbm gif gmail gphoto2 gpm gtk gtk2 gtkhtml guile icq imagemagick imlib ipv6 jabber java jpeg kde ldap libg++ libwww live lm_sensors mad md5sum mikmod mmap mmx mmx2 mng motif mp3 mpeg mpeg4 mplayer msn mysql ncurses nls nvidia offensive oggvorbis opengl oss pam pdflib perl php png posix python qt quicktime readline real samba sdl snmp spell sse sse2 ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts unicode vidix wmf xfs xine xinerama xml xml2 xmms xscreensaver xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

morpheus linux #   
Comment 23 Bill Atkins 2005-03-24 20:54:39 UTC
There seem to be two separate issues going on here:

1) the broken glibc causes segfaults
2) the glibc with sanity check causes the __tls_get_addr error

Should this bug be split off?

And what exactly is the status of it?  I've seen several fixes posted, but no information on whether or not the ebuild can be used yet.
Comment 24 Jordan 2005-03-24 21:44:56 UTC
Something definitely has to be done, this is currently marked x86 and is terribly broken. I had it first make my system completely unusable to the point I had to untar a new glibc into my system to get it going again, then finally I could get an older glibc compiled. Then when I go to retry installing the new version, of course I get this bug. Eitherway it's lost compile time, and a broken system at the worst. Not too fun.
Comment 25 Bill Atkins 2005-03-24 21:59:49 UTC
I agree.  This is way-ultra high priority.  This has been broken for over 24 hours now.  That's inexcusable.  Roll back to a working version or do something temporary.  There are all kinds of people having problems, and no one knows what's going on.  Maybe we need stricter restrictions on making changes to core ebuilds.  Obviously, whatever was changed was not well-tested if this happened.

Please someone get this working however you can.  If it worked two days ago, go back to that.  If that's not possible, let everyone know.  Announce it on gentoo.org and in the Announcements section of the forum.  Gentoo is pretty much broken until this gets resolved.
Comment 26 SpanKY gentoo-dev 2005-03-24 22:17:21 UTC
you know, i was wondering if i should fix this bug, but until you said something, i wasn't sure

so before this degrads into another bitching session, ive incorporated stkn's suggestions into fix added to cvs

people who merge a glibc and their / is now broken should move to Bug 85555
Comment 27 SpanKY gentoo-dev 2005-03-25 05:41:11 UTC
*** Bug 86608 has been marked as a duplicate of this bug. ***
Comment 28 Tomas Rollo 2005-03-25 05:48:18 UTC
So is this bug solved or not?

It says RESOLVED and FIXED in the header, but even yesterday (20050324) portage snapshot shows not difference for glibc (I'm unable to get 20050325 as it's not on my mirror yet). If it's fixed, what should I do - 
make portage redownload glibc-2.3.4.20041102-r1 or wait for glibc-2.3.4.20050125-r2? The glibc-2.3.4.20050125-r1 segfaults as well.

Thanks for info
Comment 29 Kamil Gornik 2005-03-25 06:32:25 UTC
Same problem :(

I'm trying to re-fetch patches:
rm /usr/portage/distfiles/glibc-2.3.4*
emerge --fetchonly glibc

Today night I'll try to complie this and report it.
Comment 30 Daniel Drake (RETIRED) gentoo-dev 2005-03-25 06:48:46 UTC
*** Bug 86644 has been marked as a duplicate of this bug. ***
Comment 31 Daniel Drake (RETIRED) gentoo-dev 2005-03-25 06:49:35 UTC
It is definately fixed for me, with CVS revision 1.5 of glibc-2.3.4.20041102-r1.ebuild
Comment 32 Joshua Banks 2005-03-25 08:20:59 UTC
So do we just "emerge --sync" and "emerge -uDv world" for the fix?
Comment 33 Joshua Banks 2005-03-25 09:06:15 UTC
How do we know if this is fixed. I just did "emerge --sync" and "emerge -uDvp world" and portage is still pulling in the same version that was borked before. Or maybe its not pulling anything in because I already have the latest and greatest sys-libs/glibc according to portage. So do I need to:
rm /usr/portage/distfiles/glibc-2.3.4.20041102-r1 and then resync the portage tree and update my world file? 

sys-libs/glibc-2.3.4.20041102-r1

So how are we supposed to know if this fixed. Are the trailing numbers supposed to change from -r1 to -r2 for example? Or will the numbers stay the same and the pkgspec's "Changelog" is updated?

I'm not a programmer so please let me know how one usually handles a situation like this. Thanks.
Comment 34 Marco Steinacher 2005-03-25 09:07:56 UTC
Yes. I did "emerge --sync" and "emerge -uDv world" some hours ago and can confirm that this issue is fixed for me now.
Comment 35 Sven Wegener gentoo-dev 2005-03-25 15:48:30 UTC
*** Bug 86714 has been marked as a duplicate of this bug. ***
Comment 36 Sven Wegener gentoo-dev 2005-03-25 16:00:25 UTC
*** Bug 86717 has been marked as a duplicate of this bug. ***
Comment 37 Bob 2005-03-25 16:32:46 UTC
bug 86717 was filed for glibc-2.3.4.20050125-r1 and seems to relate to missing files.  this thread is about 20041102-r1, and segfaults.  are they really the same bug, or was the new bug report just glossed over?
Comment 38 Joshua Banks 2005-03-27 05:56:39 UTC
emerge --snyc and then emerge -uDv world worked for me. Thanks dev's and everyone else who worked on this. Much appreciated.
Comment 39 Sven Wegener gentoo-dev 2005-03-29 07:28:16 UTC
*** Bug 87106 has been marked as a duplicate of this bug. ***
Comment 40 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-29 11:01:18 UTC
*** Bug 90836 has been marked as a duplicate of this bug. ***
Comment 41 Sander Knopper 2005-09-10 04:19:59 UTC
I'm having the exact same issue with the glibc-2.3.5-r1 ebuild.

Output:

make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5/localedata'
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5-r1/work/glibc-2.3.5'
 * Installing man pages...
/usr/portage/sys-libs/glibc/glibc-2.3.5-r1.ebuild: line 496:  1435 Segmentation
fault      "${D}"/$(get_libdir)/ld-*.so --library-path "${D}"/$(get_libdir) ${x}
>/dev/null

!!! ERROR: sys-libs/glibc-2.3.5-r1 failed.
!!! Function toolchain-glibc_src_install, Line 505, Exitcode 139
!!! simple run test (/bin/date) failed
!!! If you need support, post the topmost build error, NOT this status message.



emerge info:

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r0,
2.6.12.5 i686)
=================================================================
System uname: 2.6.12.5 i686 VIA Samuel 2
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=c3 -m3dnow -mmmx -Os -fomit-frame-pointer -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=c3 -m3dnow -mmmx -Os -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 3dnow acpi apache2 crypt cups curl eds foomaticdb ftp gd gdbm gif
glibc-omitfp gstreamer imagemagick imap jpeg libwww maildir mmx mpm-prefork
mysql mysqli ncurses nls ogg pcntl pcre php png posix ppds readline samba
session sftplogging sharedext slang sockets ssl tcpd truetype truetype-fonts
type1-fonts unicode usb vorbis xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY