Summary: | doing file/close while in a quiz crashes the app | ||
---|---|---|---|
Product: | [Applications] kwordquiz | Reporter: | Gyozo Gaspar <ggyozo> |
Component: | general | Assignee: | Peter Hedlund <peter> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | Stefan.Borggraefe |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Gyozo Gaspar
2006-06-23 11:33:31 UTC
Confirming. Here is a more complete backtrace from the current Debian Sid package: Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1477540160 (LWP 16463)] [KCrash handler] #6 0x0809e71d in KWordQuizApp::updateSession (this=0x81c5e78, qt=WQQuiz::qtEditor) at /build/buildd/kdeedu-3.5.2/build-tree/kdeedu-3.5.2/kwordquiz/src/kwordquiz.cpp:912 #7 0x080a0ed1 in KWordQuizApp::slotQuizEditor (this=0x81c5e78) at /build/buildd/kdeedu-3.5.2/build-tree/kdeedu-3.5.2/kwordquiz/src/kwordquiz.cpp:883 #8 0x080a1084 in KWordQuizApp::slotFileClose (this=0x81c5e78) at /build/buildd/kdeedu-3.5.2/build-tree/kdeedu-3.5.2/kwordquiz/src/kwordquiz.cpp:646 #9 0x080a24fc in KWordQuizApp::qt_invoke (this=0x81c5e78, _id=79, _o=0xafc2a81c) at ./kwordquiz.moc:206 #10 0x4ac0854b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #11 0x4ac08fdc in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #12 0x4b528ea9 in KAction::activated () from /usr/lib/libkdeui.so.4 #13 0x4b562de1 in KAction::slotActivated () from /usr/lib/libkdeui.so.4 #14 0x4b581f8e in KAction::slotPopupActivated () from /usr/lib/libkdeui.so.4 #15 0x4b582261 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4 #16 0x4ac0854b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #17 0x4af9a1a9 in QSignal::signal () from /usr/lib/libqt-mt.so.3 #18 0x4ac25c4c in QSignal::activate () from /usr/lib/libqt-mt.so.3 #19 0x4ad2d419 in QPopupMenu::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3 #20 0x4b535fa1 in KPopupMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.4 #21 0x4ac42c78 in QWidget::event () from /usr/lib/libqt-mt.so.3 #22 0x4ab9e87a in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 #23 0x4ab9edff in QApplication::notify () from /usr/lib/libqt-mt.so.3 #24 0x4b32b32e in KApplication::notify () from /usr/lib/libkdecore.so.4 #25 0x4ab3006f in QApplication::sendSpontaneousEvent () from /usr/lib/libqt-mt.so.3 #26 0x4ab2b4f1 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3 #27 0x4ab29c94 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3 #28 0x4ab432a2 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #29 0x4abb7255 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #30 0x4abb717a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #31 0x4ab9d38d in QApplication::exec () from /usr/lib/libqt-mt.so.3 #32 0x080a1778 in main (argc=0, argv=0x0) at /build/buildd/kdeedu-3.5.2/build-tree/kdeedu-3.5.2/kwordquiz/src/main.cpp:101 #33 0x4a2cdeb0 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6 #34 0x0805b471 in _start () at ../sysdeps/i386/elf/start.S:119 SVN commit 554362 by hedlund: Don't crash when closing a file during a quiz. BUG:129697 M +5 -0 kwordquiz.cpp --- branches/KDE/3.5/kdeedu/kwordquiz/src/kwordquiz.cpp #554361:554362 @@ -639,6 +639,11 @@ else if (queryClose()) { + if (m_quiz != 0) + { + delete(m_quiz); + m_quiz = 0; + } doc->newDocument(); setCaption(doc->URL().fileName(), doc->isModified()); delete (m_editView); |