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

Bug 104506

Summary: sys-libs/glibc-2.3.5-r1 builds and installs a segfaulting version
Product: Gentoo Linux Reporter: Juan J. García de Soria <skandalfo>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Juan J. García de Soria 2005-09-01 12:01:21 UTC
I'm rebuilding my AMD64 gentoo box because when it got upgraded glibc got
corrupt and even bash would segfault. I thought this to be related to a full
partition while upgrading so...

After trying the rescue glibc binaries to no avail, I proceeded to bootstrap
again from stage1, but glibc-2.3.5-r1 would fail in the same way: it would
compile, install, and then I'd got this output (after merging):

...
>>> /lib64/tls/libpthread.so.0 -> libpthread-2.3.5.so
>>> /lib32/tls/libthread_db.so.1 -> libthread_db-1.0.so
>>> /lib64/tls/libthread_db.so.1 -> libthread_db-1.0.so
!!! FAILED postinst: 2816
livecd portage # 


It would seem that everything breaks after the binaries get installed. The
bootstrap script now directly segfaults. emerge info seems to work still, though.

I don't know if any of these in my CFLAGS could be the one to blame: -O3
-fomit-frame-pointer -ggdb3 ...


Reproducible: Always
Steps to Reproduce:
1.Bootstrap from stage1
2.
3.

Actual Results:  
At the end of the merging of compiled files:

!!! FAILED postinst: 2816


Now it seems that the installed version of glibc is corrupt, and even bash
segfaults.



Expected Results:  
glibc-2.3.5-r1 would emerge successfully, and the installed version would
actually work.

livecd portage # emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4,
glibc-2.3.5-r0,glibc-2.3.5-r1, 2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -fomit-frame-pointer -mtune=athlon64 -march=athlon64 -ggdb3"
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="-O3 -pipe -fomit-frame-pointer -mtune=athlon64 -march=athlon64 -ggdb3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks nostrip sandbox sfperms strict"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa apache2 audiofile avi berkdb bitmap-fonts bmp bzlib
c++ cdr crypt ctype cups curl dbm dga doc dvd dvdr dvdread eds encode esd exif
fam fbcon flac flash foomaticdb fortran ftp gcj gdbm gif gimpprint gnome gnutls
gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imlib ipv6 java
javascript joystick jpeg libg++ lirc lzw lzw-tiff mad mbox mikmod mime mjpeg
mmap mng mozilla mp3 mpeg ncurses new-login nls nptl nvidia oggvorbis openal
opengl pam pcmcia pcre pdflib perl png pnp postgres ppds python quicktime
readline recode samba sasl scanner sdl sharedmem sndfile sockets speex spell
sqlite ssl svg tcpd tetex theora threads tiff transcode truetype truetype-fonts
type1-fonts unicode usb wmf xine xosd xpm xv xvid xvmc zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-01 15:08:53 UTC

*** This bug has been marked as a duplicate of 75640 ***