Bug 270504 - crash when closing before quitting
Summary: crash when closing before quitting
Status: RESOLVED FIXED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Thorsten Staerk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 15:52 UTC by Thorsten Staerk
Modified: 2011-05-13 11:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Staerk 2011-04-09 15:52:59 UTC
Application: ktimetracker (4.7.0)
KDE Platform Version: 4.6.41 (4.7 >= 20110106) (Compiled from sources)
Qt Version: 4.7.1
Operating System: Linux 2.6.37.1-1.2-desktop i686
Distribution: "openSUSE 11.4 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:

Start ktimetracker, have at least one task in it. Click "close", then "quit" => ktimetracker crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: KTimeTracker (ktimetracker), signal: Segmentation fault
[Current thread is 1 (Thread 0xb47ca710 (LWP 6061))]

Thread 2 (Thread 0xb44b2b70 (LWP 6062)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb52d403e in poll () from /lib/libc.so.6
#2  0xb4bb40bb in g_poll () from /lib/libglib-2.0.so.0
#3  0xb4ba3c46 in ?? () from /lib/libglib-2.0.so.0
#4  0xb4ba43ef in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0xb45ee001 in ?? () from /lib/libgio-2.0.so.0
#6  0xb4bccf44 in ?? () from /lib/libglib-2.0.so.0
#7  0xb552fb05 in start_thread () from /lib/libpthread.so.0
#8  0xb52ded5e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb47ca710 (LWP 6061)):
[KCrash Handler]
#7  0x08062ec1 in QBasicAtomicInt::deref (this=0x40678000) at /usr/include/QtCore/qatomic_i386.h:132
#8  0x08086ee4 in QList<Task*>::operator= (this=0x83171ec, l=...) at /usr/include/QtCore/qlist.h:429
#9  0x0808695b in QList<Task*>::clear (this=0x83171ec) at /usr/include/QtCore/qlist.h:752
#10 0x080823a3 in TaskView::clearActiveTasks (this=0x82f98f0) at /root/kdepim/ktimetracker/taskview.cpp:735
#11 0x080826f2 in TaskView::stopTimersEngine (this=0x82f98f0) at /root/kdepim/ktimetracker/taskview.cpp:759
#12 0x080929ba in TimetrackerWidget::closeAllFiles (this=0x8281920) at /root/kdepim/ktimetracker/timetrackerwidget.cpp:511
#13 0x08095826 in TimetrackerWidget::quit (this=0x8281920) at /root/kdepim/ktimetracker/timetrackerwidget.cpp:1151
#14 0x080961dc in TimetrackerWidget::qt_metacall (this=0x8281920, _c=QMetaObject::InvokeMetaMethod, _id=63, _a=0xbfec8d28) at /root/kdepim/ktimetracker/timetrackerwidget.moc:264
#15 0xb56ae8cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#16 0xb56bea2c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0xb5e642bd in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#18 0xb5e6455b in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#19 0xb6316fe5 in ?? () from /usr/lib/libQtGui.so.4
#20 0xb631dc07 in ?? () from /usr/lib/libQtGui.so.4
#21 0xb631ead5 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#22 0xb6ab4ee8 in KMenu::mouseReleaseEvent (this=0x82d5e00, e=0xbfec95f4) at /root/kdelibs/kdeui/widgets/kmenu.cpp:458
#23 0xb5ec65b0 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#24 0xb631effc in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#25 0xb5e6b414 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0xb5e74c20 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0xb69dc956 in KApplication::notify (this=0xbfec9e68, receiver=0x82d5e00, event=0xbfec95f4) at /root/kdelibs/kdeui/kernel/kapplication.cpp:311
#28 0xb56a7fde in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#29 0xb5e6c45c in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#30 0xb5ef8206 in ?? () from /usr/lib/libQtGui.so.4
#31 0xb5ef713e in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#32 0xb5f21960 in ?? () from /usr/lib/libQtGui.so.4
#33 0xb4ba3509 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#34 0xb4ba3d10 in ?? () from /lib/libglib-2.0.so.0
#35 0xb4ba3fce in g_main_context_iteration () from /lib/libglib-2.0.so.0
#36 0xb56d676b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0xb5f2155a in ?? () from /usr/lib/libQtGui.so.4
#38 0xb56a72bd in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0xb56a74e9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb56abf90 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#41 0xb5e69104 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#42 0x08061ecb in main (argc=1, argv=0xbfeca1f4) at /root/kdepim/ktimetracker/main.cpp:136

Reported using DrKonqi
Comment 1 Christophe Marin 2011-05-13 11:40:42 UTC
Fixes last month:

commit 2367330ef3fc8bf8124bb82701aa4a0475ac8315
Author: Thorsten Staerk
Date:   Sat Apr 16 13:29:37 2011 +0200

    BUGS:270504 Do not crash when closing everything before quitting. Set
    pointers to 0 after deleting the content.