[09:09:30 alexander@server:~] $ LC_ALL=C sudo emerge -vat kdelibs These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild N ] kde-base/kdelibs-3.4.1-r1 +alsa -arts +cups -debug -doc -jpeg2k +kdeenablefinal -kerberos -openexr +spell +ssl +tiff -xinerama -zeroconf 0 kB [...] /bin/sh ../libtool --silent --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I. -I../kio/kssl -I../kdefx -I../kdecore/network -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I. -I/usr/kde/3.4/include -I/usr/include/libart-2.0 -DQT_THREAD_SUPPORT -D_REENTRANT -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -O2 -march=athlon-xp -pipe -Wformat-security -Wmissing-format-attribute -c -o vsnprintf.lo `test -f 'vsnprintf.c' || echo './'`vsnprintf.c ../dcop/dcopidl/dcopidl ./ksycoca.h > ksycoca.kidl || ( rm -f ksycoca.kidl ; false ) ../dcop/dcopidl/dcopidl ./kappdcopiface.h > kappdcopiface.kidl || ( rm -f kappdcopiface.kidl ; false ) /bin/sh: line 1: 12543 Segmentation fault ../dcop/dcopidl/dcopidl ./ksycoca.h >ksycoca.kidl make[4]: *** [ksycoca.kidl] Error 1 make[4]: *** Waiting for unfinished jobs.... /bin/sh: line 1: 12562 Segmentation fault ../dcop/dcopidl/dcopidl ./kappdcopiface.h >kappdcopiface.kidl make[4]: *** [kappdcopiface.kidl] Error 1 make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.4.1-r1/work/kdelibs-3.4.1/kdecore' [...] This seems to be somewhat related to bug #52533. There, arts doesn't get compiled as it segfaults when ../mcopidl/mcopidl -t ../flow/artsflow.idl is run. I suppose it might be somewhat related, beause in both packages, the segfault comes when mcopidl/dcopidl is run. I'll attach the strace output from the invocation of "../dcop/dcopidl/dcopidl ./kappdcopiface.h". [09:12:23 alexander@server:~] $ emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-ck8-r1.ASN.003.reiser4.module i686) ================================================================= System uname: 2.6.11-ck8-r1.ASN.003.reiser4.module i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache collision-protect distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distfiles.gentoo.org/" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X acl alsa apache2 apm async avi bash-completion bluetooth bzlib cairo calendar caps cdda cddb cdparanoia cdr cdrom codecs crypt cscope css cups dga divx4linux dvdread eds encode esd ethereal exif faad fam fbcon fbdev ffmpeg fftw firefox flash foomaticdb ftp fwdzone gd gdbm gif gimp gimpprint gmail gnokii gnome gphoto2 gpm gs gstreamer gtk gtk2 guile hal iconv idn imagemagick imap imlib java javascript jpeg kde kdeenablefinal kdexdeltas libedit libwww logitech-mouse logrotate lufsusermount lzo lzw lzw-tiff mad maildir matroska matrox mbox mime mmap mmx mng mozdevelop mozilla moznocompose moznoirc mozp3p mozsvg mp3 mpeg mplayer ncurses network nls no-old-linux no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro nopop3d noregexp norhino noxalan noxerces nptl offensive ofx ogg oggvorbis opengl oss pam parse-clocks pcntl pcre pda pdflib perl pic pie png posix ppds python qt quicktime quotes rdesktop readline real recode samba sasl shared slang sockets speex spell sse ssl svg symlink sysvipc tcltk tcpd theora tidy tiff truetype truetype-fonts type1-fonts unicode usb usepackagedmakefiles vcd videos vim vim-pager vim-with-x vorbis wmf wsconvert x11vnc xchattext xfs xine xml2 xmms xv xvid zlib video_cards_matrox linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, PORTDIR_OVERLAY
Created attachment 60825 [details] strace output of running "../dcop/dcopidl/dcopidl ./kappdcopiface.h"
Don't know if it helps, but here's the output of gdb. As described in bug #52533 comment #11, I did: FEATURES="nostrip keepwork keeptemp" CFLAGS="-g -ggdb" CXXFLAGS="-g -ggdb" LDFLAGS="-ggdb" ebuild /usr/portage/kde-base/kdelibs/kdelibs-3.4.1-r1.ebuild clean unpack compile [09:47:02 alexander@server:/var/tmp/portage/kdelibs-3.4.1-r1/work/kdelibs-3.4.1/kdecore] $ gdb ../dcop/dcopidl/dcopidl core GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `../dcop/dcopidl/dcopidl'. Program terminated with signal 11, Segmentation fault. warning: current_sos: Can't read pathname for load map: Eingabe-/Ausgabefehler Reading symbols from /usr/qt/3/lib/libqt-mt.so.3...done. Loaded symbols for /usr/qt/3/lib/libqt-mt.so.3 Reading symbols from /usr/lib/libmng.so.1...done. Loaded symbols for /usr/lib/libmng.so.1 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/lib/libXi.so.6...done. Loaded symbols for /usr/lib/libXi.so.6 Reading symbols from /usr/lib/libXrender.so.1...done. Loaded symbols for /usr/lib/libXrender.so.1 Reading symbols from /usr/lib/libXrandr.so.2...done. Loaded symbols for /usr/lib/libXrandr.so.2 Reading symbols from /usr/lib/libXcursor.so.1...done. Loaded symbols for /usr/lib/libXcursor.so.1 Reading symbols from /usr/lib/libXft.so.2...done. Loaded symbols for /usr/lib/libXft.so.2 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/lib/libfontconfig.so.1...done. Loaded symbols for /usr/lib/libfontconfig.so.1 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libpng.so.3...done. Loaded symbols for /usr/lib/libpng.so.3 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/lib/libXext.so.6...done. Loaded symbols for /usr/lib/libXext.so.6 Reading symbols from /usr/lib/libX11.so.6...done. Loaded symbols for /usr/lib/libX11.so.6 Reading symbols from /usr/lib/libSM.so.6...done. Loaded symbols for /usr/lib/libSM.so.6 Reading symbols from /usr/lib/libICE.so.6...done. Loaded symbols for /usr/lib/libICE.so.6 Reading symbols from /lib/tls/libpthread.so.0...done. Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.4/libstdc++.so.6...done. Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 Reading symbols from /lib/tls/libm.so.6...done. Loaded symbols for /lib/tls/libm.so.6 Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1...done. Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libgcc_s.so.1 Reading symbols from /usr/lib/libc.so.6...done. Loaded symbols for /usr/lib/libc.so.6 Reading symbols from /usr/lib/liblcms.so.1...done. Loaded symbols for /usr/lib/liblcms.so.1 Reading symbols from /usr/lib/libexpat.so.0...done. Loaded symbols for /usr/lib/libexpat.so.0 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0xb749cf0c in memcpy () from /usr/lib/libc.so.6 (gdb) bt full #0 0xb749cf0c in memcpy () from /usr/lib/libc.so.6 No symbol table info available. #1 0xb74f60df in __libc_pthread_init () from /usr/lib/libc.so.6 No symbol table info available. #2 0xb764879f in __pthread_initialize_minimal_internal () from /lib/tls/libpthread.so.0 No symbol table info available. #3 0xb7648348 in call_initialize_minimal () from /lib/tls/libpthread.so.0 No symbol table info available. #4 0xb7647ef8 in _init () from /lib/tls/libpthread.so.0 No symbol table info available. #5 0xb7ff6914 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 No symbol table info available. #6 0xb7ff6a60 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2 No symbol table info available. #7 0xb7feb86f in ?? () from /lib/ld-linux.so.2 No symbol table info available.
Have you tried with another kernel?
Created attachment 60827 [details] Kernel configuration /usr/src/linux-2.6.11-ck8-r1/.config No, I haven't - but what should I change? Because of those problems with kdelibs and arts, I did a "emerge -e world" and was able to compile everythign - besides kdelibs and arts. So I doubt that the kernel is broken. But if you could tell me, what I should change, I'd be happy to do so. Attached, you can find my kernel configuration from /usr/src/linux-2.6.11-ck8-r1/.config. I'm using ck-sources-2.6.11_p8-r1.
The crash is in deep into glibc/kernel, so we cannot do much to help. You better turn off ccache and try again with a different compiler setup, and with a vanilla kernel.
I dont' see your emerge info, but it's definitely looks to be a glibc issue, possibly nptl thread related.
(In reply to comment #6) > I dont' see your emerge info, It's in the initial report (comment #0 ?). > but it's definitely looks to be a glibc issue, > possibly nptl thread related. Yes, I do use nptl. Should I try "USE=-nptl emerge glibc kdelibs"?
Sorry - completed missed it. I think you've definitely stumbled onto something interesting. My hunch is that another glibc/gcc combination, possibly without nptl, will fix this issue. You may also want to try using -j1 in your MAKEOPTS just to rule out anything. I'd also turn off ccache ( and possibly remove your cache before starting this emerge ). Some combination of these things should fix the problem.
I've now rebuild my system with "USE=-nptl" and subsequently was able to compile kdelibs. Now I'm going to rebuild my system again with "USE=nptl" and see if kdelibs is compileable.
I now re-compiled the system several times with USE=nptl and with USE=-nptl using emwrap.sh from http://forums.gentoo.org/viewtopic.php?t=282474&start=0&postdays=0&postorder=asc&highlight=. All the times, I compiled it with USE=nptl, I could not build kdelibs and/or arts. All the times, I compiled it with USE=-nptl, kdelibs/arts was compileable. I still doubt, that it is kernel related, because I went from 2.6.11-ck8-r1 to now 2.6.11-ck10. During the recompiles, I did not change the USE flags (well, besides nptl, of course *G*). So it seems to be somehow related to glibc and/or gcc.
Might still be a kde/qt issue if they use threading wrongly which only nptl exposes. Only way to know for sure will be to rebuild glibc+qt+kdelibs with -ggdb and not stip them ....
Is this still a problem with the newest stable kde? It has worked fine for me.