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

Bug 81813

Summary: /sbin/ldconfig segfaults (gcc-4)
Product: Gentoo Linux Reporter: Priit Laes (IRC: plaes) <plaes>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: VERIFIED LATER    
Severity: normal    
Priority: High    
Version: 2004.3   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Priit Laes (IRC: plaes) 2005-02-12 17:57:38 UTC
amd@decoder ~ $ /sbin/ldconfig
Segmentation fault



Reproducible: Always
Steps to Reproduce:





sys-libs/glibc-2.3.4.20041102
sys-devel/gcc-3.4.3.20050110

Portage 2.0.51-r15 (default-linux/x86/2004.2, gcc-4.0.0,
glibc-2.3.4.20041102-r0, 2.6.11-rc3 i686)
=================================================================
System uname: 2.6.11-rc3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 17:56:03)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.4, 1.4_p6, 1.6.3, 1.5, 1.8.5-r3, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=pentium3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/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 -mtune=pentium3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/mygentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 acpi alsa apache2 avi bcmath berkdb bidi bitmap-fonts blas
bonobo bzip2 bzlib c++ cdparanoia cdr cjk crypt cscope cups curl dba dga
divx4linux dmx dri dvd dvdread eds encode erandom evo exif expat f2c f77 faad
fam flac flash font-server foomaticdb fortran fpx ftp gcj gd gdbm gif gimpprint
glx gmp gnome gnomedb gnutls gphoto2 graphviz gstreamer gtk gtk2 gtkhtml guile
hal howl iconv imagemagick imap imlib innodb ipv6 java jpeg kde lapack lcms ldap
libg++ libgda libwww live lzo mad mcal mikmod mmap mmx mmx2 mng mono motif
mozilla mp3 mpeg mysql ncurses net network nls nntp nptl objc offensive ofx
oggvorbis opengl oss pam pcmcia pcre pda pdflib perl php pic plotutils png pnp
print pwdb python qemu-fast qt quicktime readline real rogue rtc ruby samba sasl
sdk sdl slang slp smartcard smime sockets softmmu spell sse ssl svg tcpd tetex
tga theora tiff timidity truetype truetype-fonts trusted type1-fonts unicode usb
v4l v4l2 vim-with-x wmf xatrix xinerama xml xml2 xmlrpc xosd xprint xsl xv xvid
zlib linguas_et"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Priit Laes (IRC: plaes) 2005-02-12 17:58:29 UTC
decoder ~ # gcc -v
Using built-in specs.
Configured with: /var/tmp/portage/gcc-4.0.0_alpha20050130/work/gcc-4.0-20050130/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.0.0 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.0/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.0 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.0/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.0/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.0/include/g++-v4 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --enable-java-awt=gtk --enable-languages=c,c++,f95,objc,java
Thread model: posix
gcc version 4.0.0 alpha20050130 (Gentoo Linux 4.0.0_alpha20050130)
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-13 17:29:03 UTC
please attach a backtrace from gdb.
Comment 3 Priit Laes (IRC: plaes) 2005-02-13 23:41:37 UTC
gdb output is meaningless, I better attach strace

decoder ~ # strace /sbin/ldconfig
execve("/sbin/ldconfig", ["/sbin/ldconfig"], [/* 39 vars */]) = 0
uname({sys="Linux", node="decoder", ...}) = 0
brk(0)                                  = 0x80d4000
brk(0x80f5000)                          = 0x80f5000
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\377\207\221\360", 4)          = 4
close(3)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

decoder ~ # ls -l /dev/urandom
crw-rw-rw-  1 root users 1, 9 Feb 13 12:43 /dev/urandom
Comment 4 SpanKY gentoo-dev 2005-02-14 18:50:55 UTC
you're using gcc-4 ... please track down the bug on your system and get back to us
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 01:28:47 UTC
or better yet, file the bug here: http://gcc.gnu.org/bugzilla/