Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126078 - qt's designer and uic: segfault as user when loading kde-3.5.1 plugins
Summary: qt's designer and uic: segfault as user when loading kde-3.5.1 plugins
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-13 14:15 UTC by Jonas Bähr
Modified: 2007-01-31 22:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
strace output when running qt's designer (desinger.strace,171.67 KB, text/plain)
2006-03-17 08:09 UTC, Jonas Bähr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Bähr 2006-03-13 14:15:49 UTC
Hi,

I've got a very strange problem: I emerged kde-3.5.1 (using qt-3.3.3). After that, qt's designer crashes on starting with the only message in the console "segmentation fault" (on my german system: "Speicherzugriffsfehler" ). Also no KDE-related configure-script run completly. it stops with an error, saying that it can't find KDE's uic plugins and that I have to install kdelibs. (two lines above, configure finds kdelibs and headers in /usr/kde/3.5/{libs,include}). Additionaly, all the plugins are available in /usr/kde/3.5/libs/kde3/plugins/designer. They got the same rights like in 3.4, which had no problems.
Then I tried to run configure as root. No problems there. Also emerge (as root) has no problems compiling KDE programs

I also tried to upgraded qt to 3.3.4_r8 and reemerged kdelibs afterwards. This did not solved the problem as described in bug #81066

I assume that the is a problem with the access-rights somewhere. I've spend two days without success to find the problem. I don't use any acl-stuff.

Here are the rights for /usr/kde/3.5/lib/kde3/plugins/designer/*
-rwxr-xr-x    1 root     root         1928 11. M
Comment 1 Jonas Bähr 2006-03-13 14:15:49 UTC
Hi,

I've got a very strange problem: I emerged kde-3.5.1 (using qt-3.3.3). After that, qt's designer crashes on starting with the only message in the console "segmentation fault" (on my german system: "Speicherzugriffsfehler" ). Also no KDE-related configure-script run completly. it stops with an error, saying that it can't find KDE's uic plugins and that I have to install kdelibs. (two lines above, configure finds kdelibs and headers in /usr/kde/3.5/{libs,include}). Additionaly, all the plugins are available in /usr/kde/3.5/libs/kde3/plugins/designer. They got the same rights like in 3.4, which had no problems.
Then I tried to run configure as root. No problems there. Also emerge (as root) has no problems compiling KDE programs

I also tried to upgraded qt to 3.3.4_r8 and reemerged kdelibs afterwards. This did not solved the problem as described in bug #81066

I assume that the is a problem with the access-rights somewhere. I've spend two days without success to find the problem. I don't use any acl-stuff.

Here are the rights for /usr/kde/3.5/lib/kde3/plugins/designer/*
-rwxr-xr-x    1 root     root         1928 11. Mär 08:53 /usr/kde/3.5/lib/kde3/plugins/designer/kdepimwidgets.la
-rwxr-xr-x    1 root     root        24844 11. Mär 08:53 /usr/kde/3.5/lib/kde3/plugins/designer/kdepimwidgets.so
-rwxr-xr-x    1 root     root         1755 13. Mär 16:18 /usr/kde/3.5/lib/kde3/plugins/designer/kdewidgets.la
-rwxr-xr-x    1 root     root       109908 13. Mär 16:18 /usr/kde/3.5/lib/kde3/plugins/designer/kdewidgets.so
-rwxr-xr-x    1 root     root         1754 11. Mär 08:53 /usr/kde/3.5/lib/kde3/plugins/designer/kpartsdesignerplugin.la
-rwxr-xr-x    1 root     root        28752 11. Mär 08:53 /usr/kde/3.5/lib/kde3/plugins/designer/kpartsdesignerplugin.so

And these are for /usr/kde/3.4/lib/kde3/plugins/designer/*, where I had no problems
-rwxr-xr-x    1 root     root         1948  3. Aug 2005  /usr/kde/3.4/lib/kde3/plugins/designer/kdepimwidgets.la
-rwxr-xr-x    1 root     root        22960  3. Aug 2005  /usr/kde/3.4/lib/kde3/plugins/designer/kdepimwidgets.so
-rwxr-xr-x    1 root     root         1775  3. Aug 2005  /usr/kde/3.4/lib/kde3/plugins/designer/kdewidgets.la
-rwxr-xr-x    1 root     root        69372  3. Aug 2005  /usr/kde/3.4/lib/kde3/plugins/designer/kdewidgets.so
-rwxr-xr-x    1 root     root         1774  3. Aug 2005  /usr/kde/3.4/lib/kde3/plugins/designer/kpartsdesignerplugin.la
-rwxr-xr-x    1 root     root        28752  3. Aug 2005  /usr/kde/3.4/lib/kde3/plugins/designer/kpartsdesignerplugin.so


I can't say if it's a KDE- or QT-bug or an ebuild-problem. But running a KDE-related configure-script (of krusader, which I'm developing using a non-root account) also gives this error when I removed the kde-3.5-entries in PATH (kde-3.4, 3.3 and 3.2 remaining).
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2006-03-14 05:17:46 UTC
Can you try running qt designer within gdb or strace and see if it gives any useful output?
Comment 3 Jonas Bähr 2006-03-14 05:48:37 UTC
unfortunately I haven't cmopiled qt with debug-info... shame on me :/
But gdb tells me that the crash happens in /usr/kde/3.5/lib/libkio.so.4 (which belongs to kdelibs, which I've recompiled after the qt-update)
--------------8<---------------8<---------------
jonas@antares jonas $ gdb $(which designer)
GNU gdb 6.1
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"...(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/qt/3/bin/designer 
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x41052bc0 in ?? () from /usr/kde/3.5/lib/libkio.so.4
--------------8<---------------8<---------------

But here is an other update: I've seen that not all files in /usr/kde/3.5/lib/kde3/plugins/designer/ belong to kdelibs. Some are provided by kdepim. So I've also recompiled kdepim (and kdesdk and kdeartwork, since these provide plugins in /usr/kde/3.5/lib/kde3/plugins/styles/ ). After this I was able again to use uic as normal user. But designer still gives the segfault. Running designer as root works fine.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2006-03-17 07:49:45 UTC
Hmm, can you run designer in "strace" and see what it does right before it dies?
Comment 5 Jonas Bähr 2006-03-17 08:09:52 UTC
Created attachment 82385 [details]
strace output when running qt's designer

Interesting tool.... unfortunately I've no experience with it. I simply attached it's output. I hope that helps
Comment 6 Robin Bankhead 2006-03-28 12:47:46 UTC
I had a similar issue with UIC of qt-3.3.6, though in my case it *did* prevent me from building any kde-packages.

I added a debug USE-flag to qt and rebuilt it and kdelibs - that bizarrely allowed me to successfully build kdebase-startkde and its deps.  Unfortunately KDE won't start as the apps crash on launch.  I started a bug about it, here:

http://bugs.gentoo.org/show_bug.cgi?id=127884
Comment 7 Robin Bankhead 2006-03-29 02:23:39 UTC
Jonas, can you please post your emerge --info either here or in bug #127884 (you can see mine there)?  I'd like to further compare our settings.  It's interesting that you were able to emerge KDE-packages whereas I was not.

Also, I recommend you try to rebuild Qt with USE=debug (you can always simply quickpkg the current build) to see if it alters the behaviour of your bug.  If not, at least you can give Caleb some more debugger output to play with ;)
Comment 8 Jonas Bähr 2006-04-01 06:10:55 UTC
Here is my "emerge --info". Now that KDE-3.5.2 is out I'll try this without "-fomit-framepointer" and USE debug.

Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1 i686)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.10
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.3, 2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.4.3-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/k
de/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdo
wn /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.i
nformatik.tu-darmstadt.de/gentoo/"
LANG="de_DE"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib accessibility acpi alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups curl divx4
linux doc dri dvd dvdr emboss encode esd ethereal exif expat fam fbcon flac flash foomaticdb fortran gd gdbm gif ginac glut gmp gnome gpm gstre
amer gtk gtk2 gtkhtml icq idn imagemagick imap imlib ipv6 isdnlog jabber jack jikes joystick jpeg junit kde ladcca lcms ldap libg++ libwww lirc
 lua mad maildir mbox mcal memlimit mikmod mmx mng motif mp3 mpeg mplayer mysql nas ncurses nls odbc ogg oggvorbis openal opengl oscar oss pam 
pcre pda pdflib perl plotutils png pnp pppd python qt quicktime readline real samba scanner sdl slang slp socks5 speex spell sql sse ssl svga t
cpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb videos vorbis wmf wxwindows xine xinerama xml xml2 xmms xosd xv xvid zlib
 linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Comment 9 David Grant 2006-04-12 16:07:15 UTC
Sorry to butt in here, but Jonas are you still getting this?
Comment 10 Jonas Bähr 2006-04-14 12:06:15 UTC
Sorry, I've totaly forgotten. After emerging kde-3.5.2, these problems have gone. The only thing I changed was removing "-fomit-frame-pointer" from my CFLAGS.
Comment 11 Romary Sonrier 2006-12-19 06:43:18 UTC
Hello,

Any idea to solve this issue?
Thoses libs :
x11-libs/qt-3.3.6-r5
x11-libs/qt-3.3.6-r4
 cause "segmentation fault" of uic when compiling into /usr/kde/3.5/libs/kde3/plugins/designer

This bug is very ennoying because i am still using qt lib 3.3.4-r8 which is old and causes kde to have bad look !

Thank for any help

Comment 12 Romary Sonrier 2007-01-22 16:33:44 UTC
Hello ,

I have solved this issue on my gentoo os, simply by cleanning older version of kde and qt (i'am currently using kde 3.5.5/qt-3.3.6-r4 , so i've cleaned kde 3.4 & 3.3 and older version of qt) 

I've realized that uic was using some lib from kde 3.3 while i was trying to get kde 3.5 (using this output of strace...), and this apparently cause uic to seg fault... strange...

Regard ,

Romary
Comment 13 Charlie Shepherd (RETIRED) gentoo-dev 2007-01-31 22:15:18 UTC
This was caused by old versions of kde no longer in portage.