when i try command the comand: time DISPLAY="" LD_DEBUG=statistics <name_of_an_existing_aplication_on _my_system> , it returns a segmentation fault Reproducible: Always Steps to Reproduce: 1.time DISPLAY="" LD_DEBUG=statistics <name_of_an_existing_aplication_on _my_system> 2. 3. Actual Results: for gaim, for example (it returns the same segmentation for any aplication that is installed on ly system): george@xardas george $ time DISPLAY="" LD_DEBUG=statistics gaim 10054: 10054: runtime linker statistics: 10054: total startup time in dynamic loader: 137989556 clock cycles 10054: time needed for relocation: 6447041 clock cycles (4.6%) Segmentation fault real 0m0.103s user 0m0.005s sys 0m0.004s Expected Results: no segmentation fault, some real statistics gaim works o.k on my computer i use it every day. i think it is a ldflags bug. i have a burton 2500+, asus nforce2, 512M DDR root@xardas george # emerge --info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 6 2005, 20:34:10)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fprefetch-loop-arrays -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fprefetch-loop-arrays -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org http://ftp.lug.ro/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm avi berkdb bitmap-fonts crypt cups curl divx4linux eds emboss encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk/gtk2 gtk2 hal imlib ipv6 java jpeg libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl pic png python quicktime readline sdl spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Not getting that error here (although gaim will fail to start up because DISPLAY is unset, it does not segfault, and if I don't unset DISPLAY it works fine). Have you tried rebuilding your whole system with a simple "-march=athlon-xp -O2 -pipe -fomit-frame-pointer"? Doesn't -momit-leaf-frame-pointer mess more with debug? I know -fomit-frame-pointer does, but it doesn't seem to do anything here with whatever that command is supposed to do. -Jeff
my whole system war rebuit with "-march=athlon-xp -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -fprefetch-loop-arrays -fforce-addr"
one thing that i forgot to mention and i think it is important. few days ago i tried to rebuilt my system with LDFLAGS="-Wl,-O1" set in make.config. i didn't try command "time DISPLAY="" LD_DEBUG=statistics gaim" before, but i get that error since then. first i tougtht yhe error is because of the LDFLAGS setting and i removed the LDFLAGS="-Wl,-O1" from my make.conf and rebuild the system once more but it seems that i have the same error now.
try glibc-2.3.5 or 2.3.6, with LDFLAGS="", and with CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"