On all four of my Sparc64 systems, upgrading glibc to version 2.14.1-r3 (which is the latest stable at the time of writing) failed with a segmentation fault in the post-install, after which many basic commands (even ls) started segfaulting as well, rendering the system completely unusable. I can reliably reproduce this on all the Sparc64 systems I own. =syslibs/glibc-2.15-r2 does not seem to have this issue. Reproducible: Always Steps to Reproduce: 1. Upgrade to glibc-2.14.1-r3 2. Have fun restoring the system from backup! 3. Actual Results: segfault in post-install and an unusable system as described above Expected Results: glibc should install and work normally Portage 2.1.10.49 (default/linux/sparc/10.0, gcc-4.5.3, glibc-2.15-r2, 3.2.12-gentoo sparc64) ================================================================= System uname: Linux-3.2.12-gentoo-sparc64-sun4u-with-gentoo-2.0.3 Timestamp of tree: Sun, 27 May 2012 00:45:01 +0000 distcc 3.1 sparc-unknown-linux-gnu [disabled] app-shells/bash: 4.2_p20 dev-lang/python: 2.7.3-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.15-r2 Repositories: gentoo x-portage ACCEPT_KEYWORDS="sparc" ACCEPT_LICENSE="* -@EULA" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc3 -frename-registers -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -mcpu=ultrasparc3 -frename-registers -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv" FFLAGS="" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/linux/gentoo http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude lost+found" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.pearlgates.net/gentoo-portage" USE="berkdb bzip2 cli cracklib crypt cups cxx dri fortran gcc64 gdbm iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre pppd readline session smp sparc ssl tcpd unicode xorg zlib" ALSA_CARDS="none" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="none" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="none" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
your `emerge --info` says glibc-2.15. i'm guessing that isn't the same system you're describing crashing with glibc-2.14 ?
It is the same system, (I actually get it on all my Sparc systems, this is but one of them), just after I upgraded to unstable glibc-2.15 to see if it had the same problem. (It doesn't, I only get it with 2.14.) I can revert the system to glibc-2.13, I still have that situation on a backup, but I doubt that changes the output of emerge --info significantly.
Just to be perfectly clear: The problem occurred when I upgraded glibc from (stable) 2.13 to (stable) 2.14. It did not happen when I upgraded from (stable) 2.13 to (unstable) 2.15. I've tried five times; twice on this system and three times on three other Sparc64 systems, always with the same result: an unusable system. I have *not* attempted anything stupid like downgrade glibc, it was a regular upgrade (emerge --update --deep @system) every time.
Created attachment 313671 [details] build errors
Im seeing similar errors on compile phase. (see attached logs) Ive tried sane CHOSTS and nor MAKEOPTS. I have simlar emerge --info as below. I'm continuing to investigate
In my case the compile actually completes, the segfaults happen after the new library files are copied into place and affect most commands, not just the build.
Yep, same problem here. I was wondering what hosed my system. Good to know upgrading to glibc-2.15 resolves this. Apparently glibc 2.14 installs, but then all commands start failing and the symlinks aren't updated. From a static busybox shell on a hosed system: ~ # ls -l /etc/make.profile lrwxrwxrwx 1 root root 63 Jun 7 17:39 /etc/make.profile -> /usr/portage/profiles/default/linux/sparc/experimental/multilib ~ # /bin/bash sh: /bin/bash: not found ~ # ls -l /bin/bash -rwxr-xr-x 1 root root 691156 Mar 28 21:05 /bin/bash ~ # ls -l /lib32/ | grep 2.13 lrwxrwxrwx 1 root root 10 Jun 7 17:39 ld-linux.so.2 -> ld-2.13.so lrwxrwxrwx 1 root root 23 Jun 7 17:39 libBrokenLocale.so.1 -> libBrokenLocale-2.13.so lrwxrwxrwx 1 root root 14 Jun 7 17:39 libanl.so.1 -> libanl-2.13.so lrwxrwxrwx 1 root root 12 Jun 7 17:39 libc.so.6 -> libc-2.13.so lrwxrwxrwx 1 root root 15 Jun 7 17:39 libcidn.so.1 -> libcidn-2.13.so lrwxrwxrwx 1 root root 16 Jun 7 17:39 libcrypt.so.1 -> libcrypt-2.13.so lrwxrwxrwx 1 root root 13 Jun 7 17:39 libdl.so.2 -> libdl-2.13.so lrwxrwxrwx 1 root root 12 Jun 7 17:39 libm.so.6 -> libm-2.13.so lrwxrwxrwx 1 root root 14 Jun 7 17:39 libnsl.so.1 -> libnsl-2.13.so lrwxrwxrwx 1 root root 21 Jun 7 17:39 libnss_compat.so.2 -> libnss_compat-2.13.so lrwxrwxrwx 1 root root 18 Jun 7 17:39 libnss_dns.so.2 -> libnss_dns-2.13.so lrwxrwxrwx 1 root root 20 Jun 7 17:39 libnss_files.so.2 -> libnss_files-2.13.so lrwxrwxrwx 1 root root 21 Jun 7 17:39 libnss_hesiod.so.2 -> libnss_hesiod-2.13.so lrwxrwxrwx 1 root root 18 Jun 7 17:39 libnss_nis.so.2 -> libnss_nis-2.13.so lrwxrwxrwx 1 root root 22 Jun 7 17:39 libnss_nisplus.so.2 -> libnss_nisplus-2.13.so lrwxrwxrwx 1 root root 18 Jun 7 17:39 libpthread.so.0 -> libpthread-2.13.so lrwxrwxrwx 1 root root 17 Jun 7 17:39 libresolv.so.2 -> libresolv-2.13.so lrwxrwxrwx 1 root root 13 Jun 7 17:39 librt.so.1 -> librt-2.13.so lrwxrwxrwx 1 root root 15 Jun 7 17:39 libutil.so.1 -> libutil-2.13.so ~ # ls -l /lib32/ | grep 2.14 -rwxr-xr-x 1 root root 142452 May 14 00:51 ld-2.14.1.so -rwxr-xr-x 1 root root 9504 May 14 00:51 libBrokenLocale-2.14.1.so -rwxr-xr-x 1 root root 9976 May 14 00:51 libanl-2.14.1.so -rwxr-xr-x 1 root root 1468020 May 14 00:51 libc-2.14.1.so -rwxr-xr-x 1 root root 190028 May 14 00:51 libcidn-2.14.1.so -rwxr-xr-x 1 root root 34308 May 14 00:51 libcrypt-2.14.1.so -rwxr-xr-x 1 root root 18008 May 14 00:51 libdl-2.14.1.so -rwxr-xr-x 1 root root 805328 May 14 00:51 libm-2.14.1.so -rwxr-xr-x 1 root root 84692 May 14 00:51 libnsl-2.14.1.so -rwxr-xr-x 1 root root 34760 May 14 00:51 libnss_compat-2.14.1.so -rwxr-xr-x 1 root root 18088 May 14 00:51 libnss_dns-2.14.1.so -rwxr-xr-x 1 root root 51044 May 14 00:51 libnss_files-2.14.1.so -rwxr-xr-x 1 root root 18108 May 14 00:51 libnss_hesiod-2.14.1.so -rwxr-xr-x 1 root root 42888 May 14 00:51 libnss_nis-2.14.1.so -rwxr-xr-x 1 root root 51052 May 14 00:51 libnss_nisplus-2.14.1.so -rwxr-xr-x 1 root root 119341 May 14 00:51 libpthread-2.14.1.so -rwxr-xr-x 1 root root 75924 May 14 00:51 libresolv-2.14.1.so -rwxr-xr-x 1 root root 35276 May 14 00:51 librt-2.14.1.so -rwxr-xr-x 1 root root 9924 May 14 00:51 libutil-2.14.1.so ~ #
if glibc-2.15 works, then i'd say let's not bother looking into 2.14 since we want to stabilize 2.15 now (bug 430346)
My testing system has already been running on 2.15-r2 since this issue, and I have just finished updating the other three. No issues so far, it all seems dandy.
(In reply to comment #9) thanks for following up!