Bug in KDevelop KDE templates or KDE app framework?

Pascal A. Niklaus Pascal.Niklaus at unibas.ch
Thu May 3 23:12:40 BST 2001


This is a question to the KDevelop developers, and also to other users of 
the KDE application templates.

I first have to say that the KDE desktop and apps (2.1.1)  run very stable 
on my computer.

However, when creating a KDE MDI application with KDevelop, I get crashes 
when the program (the unmodified framework as created by KDevelop) is 
exitted with CTRL-Q. The crashes always occur on exitting the application, 
never before. I can cause these errors be repeatedly start the application 
with F9, and then quitting with CTRL-Q. The crash does not *always* occur, 
which also is weird.  Crashing seems to be associated with the destruction 
of some objects belonging to the app framework.

On the other hand, 'empty' apps created with the Qt MDI templates work 
perfectly.

My question are:
- Has anyone else experienced these crashes?
- Could this be related to the application template, or to some code in KDE?
- I always compiled KDE and qt from source. Is there special options I 
should have set when compiling?

Thanks a lot for any help !

Pascal

--------------------------------------------

The backtraces I get with the standard MDI app framework created by 
KDevelop, and with the same framework but the creation of the initial empty 
document commented out in main() are here:

0x40c5c019 in __wait4 () from /lib/libc.so.6
#0  0x40c5c019 in __wait4 () from /lib/libc.so.6
#1  0x40cb9718 in __DTOR_END__ () from /lib/libc.so.6
#2  0x404eb140 in KCrash::defaultCrashHandler () at kcrash.cpp:205
#3  0x40bf99e8 in __restore ()
     at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#4  0x40c2d1cf in free () at malloc.c:2952
#5  0x405a41c4 in __builtin_delete () at ./cp/new2.cc:55
#6  0x406c75ff in QGList::clear () from /usr/local/qt/lib/libqt.so.2
#7  0x4052a7f0 in QList<KIconThemeDir>::clear ()
    from /usr/local/kde2/lib/libkdecore.so.3
#8  0x4052a0cf in QList<KIconThemeDir>::~QList ()
    from /usr/local/kde2/lib/libkdecore.so.3
#9  0x404d3c3f in KIconTheme::~KIconTheme () at kicontheme.cpp:179
#10 0x404d5649 in KIconThemeNode::~KIconThemeNode () at kiconloader.cpp:616
#11 0x4052bb3f in QList<KIconThemeNode>::deleteItem ()
    from /usr/local/kde2/lib/libkdecore.so.3
#12 0x406c75f1 in QGList::clear () from /usr/local/qt/lib/libqt.so.2
#13 0x4052bb70 in QList<KIconThemeNode>::clear ()
    from /usr/local/kde2/lib/libkdecore.so.3
#14 0x4052b70f in QList<KIconThemeNode>::~QList ()
    from /usr/local/kde2/lib/libkdecore.so.3
#15 0x404d565e in KIconThemeNode::~KIconThemeNode () at kiconloader.cpp:616
#16 0x404d65ef in KIconLoader::~KIconLoader () at kiconloader.cpp:616
#17 0x404f64e0 in KInstance::~KInstance () at kinstance.cpp:132
#18 0x404b9359 in KApplication::~KApplication () at kapp.cpp:721
#19 0x80538a9 in main (argc=1, argv=0xbffff694) at main.cpp:74

---------------------------

0x40c5c019 in __wait4 () from /lib/libc.so.6
#0  0x40c5c019 in __wait4 () from /lib/libc.so.6
#1  0x40cb9718 in __DTOR_END__ () from /lib/libc.so.6
#2  0x404eb140 in KCrash::defaultCrashHandler () at kcrash.cpp:205
#3  0x40bf99e8 in __restore ()
     at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#4  0x40c2d1cf in free () at malloc.c:2952
#5  0x405a41c4 in __builtin_delete () at ./cp/new2.cc:55
#6  0x40516abe in KDebugEntry::~KDebugEntry ()
    from /usr/local/kde2/lib/libkdecore.so.3
#7  0x4051848f in QIntDict<KDebugEntry>::deleteItem ()
    from /usr/local/kde2/lib/libkdecore.so.3
#8  0x406c5ef8 in QGDict::clear () from /usr/local/qt/lib/libqt.so.2
#9  0x40516bb0 in QIntDict<KDebugEntry>::clear ()
    from /usr/local/kde2/lib/libkdecore.so.3
#10 0x40516bef in QIntDict<KDebugEntry>::~QIntDict ()
    from /usr/local/kde2/lib/libkdecore.so.3
#11 0x40516cb2 in KStaticDeleter<QIntDict<KDebugEntry> >::destructObject ()
    from /usr/local/kde2/lib/libkdecore.so.3
#12 0x404f33db in KGlobal::deleteStaticDeleters () at kglobal.cpp:145
#13 0x404b91f8 in KApplication::~KApplication () at kapp.cpp:721
#14 0x8052ac9 in main (argc=1, argv=0xbffff694) at main.cpp:74


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list