Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38619 - glibc-2.3.2-r9 failed miserably
Summary: glibc-2.3.2-r9 failed miserably
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-18 10:49 UTC by Eric Harney
Modified: 2004-04-10 07:47 UTC (History)
5 users (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 Eric Harney 2004-01-18 10:49:14 UTC
I went and updated to glibc-2.3.2-r9 today, and it compiled, got to the install stage and did this:

--- /sbin/
>>> /sbin/sln
>>> /sbin/ldconfig
>>> /lib/libpthread.so.0 -> libpthread-0.60.so
                                                                                
 !!! FAILED postinst: 2816


This rendered 90% of the programs on the system unable to start, me unable to login, etc...

I'm running gcc-3.3.2-r5, gentoo-dev-sources-2.6.1r1 and NPTL.  No idea what happened exactly, but this is not a good thing.  /var/tmp/portage/glibc-2.3.2-r9 is still full of everything if details from there would be useful.

Reproducible: Didn't try
Steps to Reproduce:




root # emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r3,2.3.2-r9,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.12
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer
-fstack-protector -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/tex/generic/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config /usr/share/texmf/tex/platex/config/ /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -fomit-frame-pointer
-fstack-protector -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox userpriv"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.oregonstate.edu/distfiles"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X X509 aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt
dedicated dga doc encode esd fbcon foomaticdb gdbm ggi gif gnome gpm gtk gtk2
gtkhtml guile imlib java jpeg kde libg++ libwww mad mbox md5sum mikmod mmx motif
mozilla moznocompose moznoirc moznomail mozp3p mozsvg mpeg ncurses nls nptl
offensive oggvorbis opengl oss pam pda pdflib perl png python qt quicktime
readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype unicode x86
xml2 xmms xv zlib"
Comment 1 Sven Wegener gentoo-dev 2004-01-18 11:41:32 UTC
Hi,

I just updated to glibc-2.3.2-r9 on my productive system and for me it works
without a problem. When looking at the emerge --info output and comparing it to
mine the major difference is, that my USE is without nptl. If this info helps.

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.0-G)
=================================================================
System uname: 2.6.0-G i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.10
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops
-fforce-addr -fmove-all-movables -march=athlon-xp -mmmx -msse -m3dnow"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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/env.d"
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops
-fforce-addr -fmove-all-movables -march=athlon-xp -mmmx -msse -m3dnow
-Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.linux.no/
http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.mirror.at.stealer.net/gentoo-portage"
USE="3dnow X509 acl apache2 berkdb crypt cscope curl evms2 exiscan exiscan-acl
fam flash gd gd-external gdbm gif gpm imap imlib innodb java jpeg kerberos lcms
libg++ libwww lmtp maildir mbox mmx mysql ncurses nls nocd pam passfile pdflib
perl pg-hier php png postgres python readline ruby sasl skey slang snmp sse ssl
tcpd tiff truetype wmf x86 xfs xml xml2 xv zlib"
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-19 09:24:28 UTC
Possible to get the exact failing message posted here?
Comment 3 Eric Harney 2004-01-19 10:53:45 UTC
Hmm, I apparently didn't think to record it. (whoops.)  It was an error such as "failed to load shared libraries: libpthread.so.0" or something similar.  I know that it definitely was libpthread that it was complaining about.
Comment 4 Eric Harney 2004-01-19 10:56:04 UTC
Just to be clear - This is the error when running programs after the emerge failed, not on the emerge itself.  (The emerge itself said nothing more than what was in the first post.)  I assume this is what you meant.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2004-01-19 11:15:54 UTC
Yes, I meant what does the output (if any) from the programs run post look
like?
Comment 6 Eric Harney 2004-01-19 11:30:57 UTC
Yes, they complain about failing to load libpthread.so.
Comment 7 Narada Sage 2004-01-19 13:39:29 UTC
** This should definitely be a blocker bug due to its severity**.  My main machine utterly useless. After performing the glibc update the following items are horribly broken (from what I've tested until now).

* python
* portage
* most applications (openoffice, mozilla, gaim etc etc)

Errors look like below.

# emerge -s glibc
/usr/bin/python: relocation error: /lib/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

$ /opt/OpenOffice.org1.1.0/program/swriter  
/opt/OpenOffice.org1.1.0/program/javaldx: relocation error: /lib/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
/opt/OpenOffice.org1.1.0/program/soffice.bin: relocation error: /lib/libpthread.so.0: symbol errno, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

I really hope there is some way to repair this without reinstalling OS as I can't downgrade glibc for obvious reasons.
Comment 8 Spider (RETIRED) gentoo-dev 2004-01-19 14:03:22 UTC
Chinstrap binaries for x86 work nicely (Been tested both on build/rebuild + live systems)  so I think the glibc in itself is ok.


Though chinstrap uses -march=i686 -O2 , and no more insanity than that.
Comment 9 Narada Sage 2004-01-19 14:03:57 UTC
I just want to add that my main machine is only booting half way now till 'Calculating module dependencies' and then produce a stream of errors. And although I can login eventually I can't do anything after having logged in (stuff like `ls`).  X won't run either.  Is there any way to retrieve my data from this system?  I'm now resigned full time to WinXP until this gets worked out.  What a shock.  In the absence of emerge info I should add that I'm on x86 stable tree with all base applications on stable versions except portage which is on 2.0.50_pre.
Comment 10 Spider (RETIRED) gentoo-dev 2004-01-19 14:11:45 UTC
boot with init=/bin/sash should have you a basic system

Check if tar/bzip2/wget works, if thats the case you can get a known working glibc  GRP build here :

http://chinstrap.alternating.net/files/binaries/i686/glibc-2.3.2-r3.tbz2
http://chinstrap.alternating.net/files/binaries/i686/glibc-2.3.2-r9.tbz2


if those don't work, boot from cd, mount your root file system from there and then download and install the files from there.  

Comment 11 Narada Sage 2004-01-19 16:48:55 UTC
I tried all that and after several recovery attempts my system's screwed beyond recognition.
Comment 12 Narada Sage 2004-01-24 03:40:39 UTC
After having lost all of my data and reinstalled using stage3 I'm back where I started.  I have a pending glibc update and many others also.  I have had nptl disabled from the start this time whereas last time I had it enabled all the way until I turned it off before the glibc update.  My question is do we know any more about this horrible bug and should I apply this update on a fresh install?  Also, what precautions should I take in case portage stops working like before?  Many thanks.
Comment 13 Narada Sage 2004-01-28 13:20:27 UTC
So far from what I've heard it seems to be perfectly working with every instance of an AMD machine and problematic occassionally with Intel machines.
Comment 14 Eric Harney 2004-01-28 14:52:26 UTC
Actually mine was on an athlon-xp.

I think the answer lies in the source of the "FAILED postinst" message, but I don't know what created that...
Comment 15 Rodney Brown 2004-01-31 07:36:39 UTC
Here's the error I'm getting:

making executable: /usr/lib/libpthread.so
>>> Completed installing into /var/tmp/portage/glibc-2.3.2-r9/image/
 
>>> Merging sys-libs/glibc-2.3.2-r9 to /
--- /etc/
>>> /etc/rpc
>>> /etc/nscd.conf
--- /lib/
>>> /lib/libnss_files-2.3.2.so
>>> /lib/libnss_nis.so.2 -> libnss_nis-2.3.2.so
>>> /lib/libm.so.6 -> libm-2.3.2.so
>>> /lib/librt-2.3.2.so
>>> /lib/libnss_nisplus-2.3.2.so
>>> /lib/libnss_files.so.2 -> libnss_files-2.3.2.so
>>> /lib/libresolv.so.2 -> libresolv-2.3.2.so
>>> /lib/libnss_nis-2.3.2.so
>>> /lib/libnsl.so.1 -> libnsl-2.3.2.so
>>> /lib/libm-2.3.2.so
>>> /lib/libutil.so.1 -> libutil-2.3.2.so
>>> /lib/libthread_db-1.0.so
!!! Failed to move /var/tmp/portage/glibc-2.3.2-r9/image/lib/libpcprofile.so to /lib/libpcprofile.so
!!! [Errno 13] Permission denied

Mine seems to be a permissions problem...

And here is my emerge info (I'm using an internal rsync mirror):

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.24)
=================================================================
System uname: 2.4.24 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo http://www.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://stargate/gentoo-portage"
USE="3dnow X aalib alsa apache2 apm arts avi berkdb crypt cups dv dvd encode esd foomaticdb freetype gdbm gif glut gnome gpm gstreamer gtk gtk2 imlib java jpeg kde libg++ libwww lirc mad maildir mikmod motif mozilla mpeg mysql ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd transcode truetype usb v4l x86 xml2 xmms xv zlib"
Comment 16 Rodney Brown 2004-01-31 08:01:15 UTC
My other two machines are fine and have glibc-2.3.2-r9 installed, here is the emerge info for:

My server:

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.22-gentoo-r2)
=================================================================
System uname: 2.4.22-gentoo-r2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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/env.d"
CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow apache2 apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk2 imlib jpeg libg++ libwww mad maildir mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"


My Desktop:

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24)
=================================================================
System uname: 2.4.24 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo http://mirrors.tds.net/gentoo ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://stargate/gentoo-portage"
USE="X alsa apache2 apm arts avi berkdb cdr crypt cups dv dvd dvdr encode esd foomaticdb gdbm gif glut gnome gpm gstreamer gtk2 guile imlib java jpeg kde libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby scanner sdl slang spell sse ssl svga tcpd transcode truetype usb wxwindows x86 xinerama xml2 xmms xv zlib"
Comment 17 Rodney Brown 2004-01-31 09:45:47 UTC
My problem on my pvr machine seems to be with the permissions of /lib/libpcprofile.so

As root, I can't do anything to it, ls, mv, rm, and rm -f all give me permission denied.

Is there any way to forceably remove this file?  Kinda hard when even root can't do it...
Comment 18 Martin Holzer (RETIRED) gentoo-dev 2004-02-07 04:17:11 UTC
how about chmod and/or chown ?
is your filesystem broken ?
Comment 19 Martin Holzer (RETIRED) gentoo-dev 2004-03-18 01:01:06 UTC
FEATURES="sandbox userpriv"


maybe a userpriv issue ?
Comment 20 Martin Holzer (RETIRED) gentoo-dev 2004-04-10 07:47:34 UTC
closing, no info given