Another bug in KDE MDI template app -> crash on file->openRecent ?!

Maximilian Hrabowski maximilian at hrabowski.net
Mon Feb 25 20:13:03 UTC 2002


Hi, again I'm not sure whether this is a bug in the KDE MDI template or in 
KDE3... (kdevelop 2.1 latest CVS, KDE3-beta2, qt3.0.2)

I simply created a new KDE MDI Application with the wizard, compiled it (BTW: 
for KDE3 you need to "#include" kurl.h,kstatusbar.h and kpopupmenu.h on top 
of "mykdemdiapp.h" into the template), ran it, opened three files to have 
something in the recent files list, quit. 
Then I restarted and opened one file after another from top to bottom with 
File->Open Recent. 
After having released the mouse button the third file loads as expected, but 
after that the application crashes ( output below ).
I think that the mouseReleaseEvent of the popupmenu sends a signal to an 
non-existent receiver...

for this never happened for me in other kde-apps so far, this is probably a 
bug in the template code (i was not able to reproduce this bug with a KDE 
Normal App).

Maxim

crash history:

[New Thread 1024 (LWP 24780)]
0x40fc21d9 in wait4 () from /lib/libc.so.6
#0  0x40fc21d9 in wait4 () from /lib/libc.so.6
#1  0x4103fef8 in __check_rhosts_file () from /lib/libc.so.6
#2  0x40e6b9f6 in waitpid (pid=24783, stat_loc=0x0, options=0)
    at wrapsyscall.c:172
#3  0x405a9027 in KCrash::defaultCrashHandler (sig=11) at kcrash.cpp:224
#4  0x40e693ab in pthread_sighandler (signo=11, ctx=
      {gs = 0, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh = 0, ds = 43, 
__dsh = 0, edi = 3221223364, esi = 135337368, ebp = 3221221016, esp = 
3221221008, ebx = 1087341564, edx = 0, ecx = 134579264, eax = 8, trapno = 14, 
err = 4, eip = 1085970294, cs = 35, __csh = 0, eflags = 66178, esp_at_signal 
= 3221221008, ss = 43, __ssh = 0, fpstate = 0xbfffec10, oldmask = 2147483648, 
cr2 = 8})
    at signals.c:97
#5  0x40f357c8 in killpg () from /lib/libc.so.6
#6  0x40ba9d63 in QPtrVector<QConnectionList>::at (this=0x8058440, i=2)
    at /usr/local/qt/include/qptrvector.h:84
#7  0x40ba98b6 in QSignalVec::at (this=0x8058440, index=2)
    at kernel/qsignalslotimp.h:90
#8  0x408cea63 in QObject::receivers (this=0x8111598, signal=2)
    at kernel/qobject.cpp:1065
#9  0x40b3edb7 in QSignal::signal (this=0x8111598, t0=@0x81115c0)
    at .moc/debug-mt/moc_qsignal.cpp:94
#10 0x408e881e in QSignal::activate (this=0x8111598) at kernel/qsignal.cpp:201
#11 0x4099daa9 in QPopupMenu::mouseReleaseEvent (this=0x80f7390, e=0xbffff2d0)
    at widgets/qpopupmenu.cpp:1402
#12 0x408fdbf0 in QWidget::event (this=0x80f7390, e=0xbffff2d0)
    at kernel/qwidget.cpp:4128
#13 0x4088af8a in QApplication::internalNotify (this=0xbffff630, 
    receiver=0x80f7390, e=0xbffff2d0) at kernel/qapplication.cpp:2149
#14 0x4088a64f in QApplication::notify (this=0xbffff630, receiver=0x80f7390, 
    e=0xbffff2d0) at kernel/qapplication.cpp:1991
#15 0x40550b1f in KApplication::notify (this=0xbffff630, receiver=0x80f7390, 
    event=0xbffff2d0) at kapplication.cpp:544
#16 0x40b8468e in QApplication::sendSpontaneousEvent (receiver=0x80f7390, 
    event=0xbffff2d0) at kernel/qapplication.h:455
#17 0x4083a22a in QETWidget::translateMouseEvent (this=0x80f7390, 
    event=0xbffff510) at kernel/qapplication_x11.cpp:4855
#18 0x4083723e in QApplication::x11ProcessEvent (this=0xbffff630, 
    event=0xbffff510) at kernel/qapplication_x11.cpp:3722
#19 0x40835e89 in QApplication::processNextEvent (this=0xbffff630, 
    canWait=true) at kernel/qapplication_x11.cpp:3233
#20 0x4088cb31 in QApplication::enter_loop (this=0xbffff630)
    at kernel/qapplication.cpp:3021
#21 0x40835d88 in QApplication::exec (this=0xbffff630)
    at kernel/qapplication_x11.cpp:3189
#22 0x080537e6 in main (argc=1, argv=0xbffff7c4) at main.cpp:74
#23 0x40f235b0 in __libc_start_main () from /lib/libc.so.6






More information about the KDevelop-devel mailing list