Bug 44750 - segmentation voilation while Qt Designer tries to load the kdewidgets plugin
Summary: segmentation voilation while Qt Designer tries to load the kdewidgets plugin
Status: CLOSED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-05 11:33 UTC by shlomme
Modified: 2003-03-04 00:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
strace(1) output (9.85 KB, application/x-tbz)
2002-12-26 12:52 UTC, Mario Scalas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shlomme 2002-07-05 11:27:13 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kdelibs
Version:           KDE 3.0.2 
Severity:          crash
Installed from:    SuSE RPMs
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: Not Specified

While the Qt Designer (Qt version 3.0.4 official rpms from SuSE) tries to load the kdewidgets plugin from $(kdedir)/lib/kde3/plugins/designer the program crashes with SIGSEGV. If the plugin is removed Qt Designer works without any problems.

(Submitted via bugs.kde.org)
Comment 1 Stephan Kulow 2002-07-05 13:23:34 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 05 July 2002 13:27 shlomme@gmx.net wrote:
> Package: kdelibs
> Version: KDE 3.0.2
> Severity: crash
> Installed from:    SuSE RPMs
> Compiler:          gcc 2.95.3
> OS:                Linux
> OS/Compiler notes: Not Specified
>
> While the Qt Designer (Qt version 3.0.4 official rpms from SuSE) tries to
There is no official rpm from SuSE! There are only sublimentary packages
but these are not official.=20

The bug is fixed by either downgrading to Qt 3.03 or to update to the upcom=
ing
3.05 where it's fixed.

Greetings Stephan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9JZ3WwFSBhlBjoJYRArbQAJ9XkeceSB1SNejBxpjltuUxkh6/4ACggrDM
2y0JfZvpVtP3cvfvZbgoRWU=3D
=3D4RIY
-----END PGP SIGNATURE-----
Comment 2 Mario Scalas 2002-12-26 12:52:50 UTC
Created attachment 654 [details]
strace(1) output

This is the strace output of "strace designer": maybe it is useful.
Comment 3 Mario Scalas 2002-12-26 12:53:55 UTC
Comment on attachment 654 [details]
strace(1) output

I've the same problem with the latest CVS sources & qt-copy (should be 
3.1.1-equivalent). 
It is completely systematic: not matter if I delete $QTDIR & $KDEDIR and make
full 
re-compilation: everytime I put a KDE widget on a form, qt-designer segfaults. 
Removing $KDEDIR/lib/kde3/plugins from path make it works! But I'm obviously
without 
KDE widgets which is pretty annoying since I wanted to develop apps for KDE!
;(((
Comment 4 Maksim Orlovich 2002-12-26 15:38:50 UTC
Workaround: Disable dlclose in QLibrary. This is IMHO a glibc bug, as the following crashes as 
well: 
 
#include <dlfcn.h> 
#include <stdio.h> 
 
int main() 
{ 
    void* handle = dlopen("/opt/kde3/lib/libkdecore.so",RTLD_LAZY); 
    dlclose(handle); 
    handle = dlopen("/opt/kde3/lib/libkdecore.so",RTLD_LAZY); 
} 
 
(Even with kdecore w/o KDE malloc). 
 
Don't ask me why Designer keeps closing and re-opening libs, though 
 
Comment 5 Mario Scalas 2003-01-09 17:13:08 UTC
Look at here: http://forums.gentoo.org/viewtopic.php?t=29327
It seems a fam-oss related problem (when I get home to recompile qt & kdelibs &
kdebase) I will say if it is good for me too!).
Maksim: I tried your code and got the dreadful segfault too. (Using glibc
2.3.1-r2 from gentoo)
Comment 6 Mario Scalas 2003-01-09 17:20:12 UTC
Never mind: I forgot qt assistant (both 3.1.0 & 3.1.1) is working nice with me
;(. I should pay more attention on reading posts ... sorry!
Comment 7 Mario Scalas 2003-01-25 17:51:33 UTC
Hi all: the workaround worked. If any has the same issues, maybe this is a useful link: 
http://bugs.gentoo.org/show_bug.cgi?id=12964 
Comment 8 Matt Rogers 2003-03-04 00:53:46 UTC
Also, deleting the .qt directory from $HOME works as well (w/o modifiying any 
code). I haven't actually tried to create any gui with this, but at least it QT designer 
will start again.