<html>
Hi,<br>
<br>
While porting code to the KDE MDI framework provided by KDevelop, I
noticed that my app crashed *sometimes* when I quit. When I later tried
to track down the bug I believed to be in my app, I finally noticed that
it also occurred in the KDE MDI application framework as it is created
automatically by KDevelop 1.4 (although it occurred more rarely, I had to
start and quit the application up to 20 times to get the 
effect...).<br>
<br>
My questions are:<br>
- Can anyone else reproduce this problem? It seems to be related to
freeing memory used by a QString... (freeing twice?). The crash can be
reproduced by starting the app with F9, and immediately quitting in with
CTRL-Q. As I said, it does not crash every time...<br>
- Is it a problem with the KDevelop templates, with Qt, or with KDE
?<br>
<br>
Any help with this is greatly appreciated<br>
<br>
Thanks,<br>
<br>
Pascal<br>
<br>
------------ system related infos:<br>
<br>
KDE 2.1, Qt 2.2.4, and KDevelop 1.4 were compiled from source with gcc
2.95.2 on a SuSE7.0 linux system. <br>
KDevelop 1.4 was downloaded from CVS, branch KDEVELOP_1_4_RELEASE or
KDE_2_1_RELEASE...<br>
<br>
Otherwise the installation is *very* stable... I'm therefore pretty
confident that it is not a hardware (RAM) related issue.<br>
<br>
Here's the backtrace (the crash is caused by a segment violation):<br>
<br>
<font face="Courier New, Courier">0x40c10019 in __wait4 () from
/lib/libc.so.6<br>
#0  0x40c10019 in __wait4 () from /lib/libc.so.6<br>
#1  0x40c6d718 in __DTOR_END__ () from /lib/libc.so.6<br>
#2  0x404a2d10 in KCrash::defaultCrashHandler ()<br>
   from /usr/local/kde2/lib/libkdecore.so.3<br>
#3  0x40bad9e8 in __restore ()<br>
    at
../sysdeps/unix/sysv/linux/i386/sigaction.c:127<br>
#4  0x40be11cf in free () at malloc.c:2952<br>
#5  0x405581c4 in __builtin_delete () at ./cp/new2.cc:55<br>
#6  0x40685f7a in QStringData::deleteSelf () from
/usr/local/qt/lib/libqt.so.2<br>
#7  0x8055181 in QString::~QString (this=0x808fd58,
__in_chrg=2)<br>
    at /usr/local/qt/include/qstring.h:652<br>
#8  0x805603c in QValueListNode<QString>::~QValueListNode
(this=0x808fd50,<br>
    __in_chrg=3) at
/usr/local/qt/include/qvaluelist.h:209<br>
#9  0x8055f1c in
QValueListPrivate<QString>::~QValueListPrivate (<br>
    this=0x808fcf8, __in_chrg=3) at
/usr/local/qt/include/qvaluelist.h:209<br>
#10 0x8055d1b in QValueListPrivate<QString>::derefAndDelete
(this=0x808fcf8)<br>
    at /usr/local/qt/include/qvaluelist.h:198<br>
#11 0x8055ae9 in QValueList<QString>::~QValueList (this=0x808fce8,
__in_chrg=3)<br>
    at /usr/local/qt/include/qvaluelist.h:322<br>
#12 0x8055698 in QStringList::~QStringList (this=0x808fce8,
__in_chrg=3)<br>
    at kcite.cpp:247<br>
#13 0x404d895d in QDict<QStringList>::deleteItem ()<br>
   from /usr/local/kde2/lib/libkdecore.so.3<br>
#14 0x40679e2a in QGDict::clear () from 
/usr/local/qt/lib/libqt.so.2<br>
#15 0x40418bec in KStandardDirs::~KStandardDirs ()<br>
   from /usr/local/kde2/lib/libkdecore.so.3<br>
#16 0x404b0068 in KInstance::~KInstance ()<br>
   from /usr/local/kde2/lib/libkdecore.so.3<br>
#17 0x40451eac in KApplication::~KApplication ()<br>
   from /usr/local/kde2/lib/libkdecore.so.3<br>
#18 0x80530ee in main (argc=1, argv=0xbffff734) at main.cpp:74<br>
<br>
--------- end of back trace ------<br>
<br>
<br>
</font><br>

<tt>________________________________________________________<br>
<br>
Present address: <br>
<br>
Pascal Niklaus<br>
Landcare Research<br>
Private Bag 11 052<br>
Palmerston North<br>
New
Zealand                       
<br>
<br>
Phone: +64 6 356 7154 (reception)<br>
       +64 6 350 5799 3968 (direct)<br>
Fax:   +64 6 355 9230<br>
<br>
e-mail:
<a href="mailto:Pascal.Niklaus@unibas.ch">Pascal.Niklaus@unibas.ch</a> or
<a href="mailto:Pascal.Niklaus@gmx.ch">Pascal.Niklaus@gmx.ch</a><br>
_________________________________________________________<br>
</html>