| Summary: | kdelibs doesn't compile - segfaults with dcopidl | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexander Skwar <askwar> |
| Component: | [OLD] KDE | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | kde |
| Priority: | High | ||
| Version: | 2005.0 | ||
| Hardware: | All | ||
| OS: | Other | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
strace output of running "../dcop/dcopidl/dcopidl ./kappdcopiface.h"
Kernel configuration /usr/src/linux-2.6.11-ck8-r1/.config |
||
|
Description
Alexander Skwar
2005-06-08 00:36:53 UTC
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. |