Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179592 - sys-libs/glibc-2.5-r2 fails to emerge due to segv
Summary: sys-libs/glibc-2.5-r2 fails to emerge due to segv
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 21:54 UTC by Michael Ploujnikov
Modified: 2007-06-13 11:11 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Ploujnikov 2007-05-23 21:54:58 UTC
Updating to glibc-2.5-r2 from glibc-2.4-r4 fails at the postinst step. Consequently my system becomes unusable since everything segfaults. The only solution is to re-install the old glibc by extracting it from the auto-generated binary package.

Reproducible: Always

Steps to Reproduce:
1. emerge -av =sys-libs/glibc-2.5-r2
2. wait
3. wait

Actual Results:  
...
>>> /lib64/libresolv.so.2 -> libresolv-2.5.so
>>> /lib64/libnsl.so.1 -> libnsl-2.5.so
>>> /lib64/libutil.so.1 -> libutil-2.5.so
>>> /lib64/ld-linux-x86-64.so.2 -> ld-2.5.so
>>> /lib64/libcidn.so.1 -> libcidn-2.5.so
>>> /lib64/libBrokenLocale.so.1 -> libBrokenLocale-2.5.so
!!! FAILED postinst: 35584
# ls
Segmentation fault (core dumped)

Expected Results:  
Glibc should emerge properly, and ls should not segfault after that.

# emerge --info
Portage 2.1.2.7 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.4-r4, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 23 May 2007 12:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-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.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -fomit-frame-pointer -O2"
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/php/apache1-php4/ext-active/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -pipe -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.gg3.net/ http://ftp.gentoo.or.kr/ http://mirror.gentoo.gr.jp"
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/binpkg"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/trapni /usr/portage/local/layman/initng"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac alsa amd64 apache2 berkdb bitmap-fonts cli cracklib crypt cups curl dri dvd dvdr dvdread eds emacs emboss encode ffmpeg flac foomaticdb fortran gif gimpprint gpm gstreamer gtk gtk2 i8x0 iconv imagemagick imlib ipv6 isdnlog java jpeg libwww live lzw lzw-tiff mad midi mono mp3 mpeg mudflap musepack ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vhosts vorbis wxwindows x264 xanim xinerama xml 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthias Bethke 2007-06-11 18:11:06 UTC
This looks familiar. I've been fighting glibc-2.5-r2 -r3 for a while and the installation process *crashes* my otherwise rock-solid machine. I logged emerge output using tee and the point where it crashes is also somewhere around BrokenLocale installation:

/usr/bin/install -c -m 644 locale.h /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/include/locale.h
/usr/bin/install -c -m 644 bits/locale.h /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/include/bits/locale.h
/usr/bin/install -c -m 644 langinfo.h /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/include/langinfo.h
/usr/bin/install -c -m 644 xlocale.h /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/include/xlocale.h
/usr/bin/install -c /var/tmp/portage/sys-libs/glibc-2.5-r3/work/build-default-i686-pc-linux-gnu-nptl/locale/localedef /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/bin/localede
f.new
/usr/bin/install -c /var/tmp/portage/sys-libs/glibc-2.5-r3/work/build-default-i686-pc-linux-gnu-nptl/locale/locale /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/bin/locale.new
/usr/bin/install -c /var/tmp/portage/sys-libs/glibc-2.5-r3/work/build-default-i686-pc-linux-gnu-nptl/locale/libBrokenLocale.so /var/tmp/portage/sys-libs/glibc-2.5-r3/image//lib/lib
BrokenLocale-2.5.so.new
mv -f /var/tmp/portage/sys-libs/glibc-2.5-r3/image//lib/libBrokenLocale-2.5.so.new /var/tmp/portage/sys-libs/glibc-2.5-r3/image//lib/libBrokenLocale-2.5.so
/usr/bin/install -c -m 644 /var/tmp/portage/sys-libs/glibc-2.5-r3/work/build-default-i686-pc-linux-gnu-nptl/locale/libBrokenLocale.a /var/tmp/portage/sys-libs/glibc-2.5-r3/image//u
sr/lib/libBrokenLocale.a
mv -f /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/bin/localedef.new /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/bin/localedef
mv -f /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/bin/locale.new /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/bin/locale
: /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/lib/libBrokenLocale.a
echo libBrokenLocale-2.5.so /var/tmp/portage/sys-libs/glibc-2.5-r3/image//lib/libBrokenLocale.so.1 >> /var/tmp/portage/sys-libs/glibc-2.5-r3/work/build-default-i686-pc-linux-gnu-np
tl/elf/symlink.list
rm -f /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/lib/libBrokenLocale.so.new
/bin/sh ../scripts/rellns-sh /var/tmp/portage/sys-libs/glibc-2.5-r3/image//lib/libBrokenLocale.so.1 /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/lib/libBrokenLocale.so.new
mv -f /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/lib/libBrokenLocale.so.new /var/tmp/portage/sys-libs/glibc-2.5-r3/image//usr/lib/libBrokenLocale.so
make[2]: Leaving directory `/mnt/portage/var-tmp-portage/sys-libs/glibc-2.5-r3/work/glibc-2.5/locale'
make -j3 subdir=localedata -C localedata ..=../ subdir_install



My emerge --info:

Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened-r6 i686)
=================================================================
System uname: 2.6.18-hardened-r6 i686 Intel(R) Xeon(TM) CPU 3.06GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 11 Jun 2007 00:50:01 +0000
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
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.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/init.d /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/mnt/portage/distfiles"
FEATURES="distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X acl acpi bash-completion bcmath berkdb bindist bzip2 caps cdb clamav cpdflib cracklib crypt cscope ctype cups curl curlwrappers db2 dba dbase dbm dbx dio emacs ethereal exif expat fam fastcgi fbcon fdftk fftw firebird flatfile foomaticdb freetds ftp gd gdbm geoip gif gmp gnutls gpm gstreamer gtk gtk2 gtkhtml hal hardened hardenedphp howl iconv idea idn imagemagick imap inifile innodb iodbc ipv6 jikes jpeg kerberos ldap libwww lm_sensors logrotate maildir mbox memlimit midi mime mmap mmx mng msql mysql mysqli ncurses nis nls nodrm nptl nptlonly oci8 odbc offensive pam pcntl pcre pdflib perl pic plotutils png posix postgres ppds prelude python qdbm radius readline recode ruby samba sasl sharedmem simplexml skey slang slp smp snmp sockets source sqlite sse sse2 ssl sysvipc szip tcpd threads tiff unicode urandom wmf x86 xfs xml xml2 xorg xpm xprint xsl zlib" 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" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 SpanKY gentoo-dev 2007-06-11 19:04:23 UTC
if your machine crashes then it isnt rock solid

if your kernel is crashing, that is not glibc's or portage's problem, go fix the hardware or have the kernel fixed
Comment 3 Michael Ploujnikov 2007-06-13 11:11:35 UTC
I have just discovered that my system had /lib as an actual directory instead of a symlink to /lib64. After fixing this compiling glibc (and a number of other things started to work).