Bug 317741

Summary: Kmail2 crashed on exit
Product: [Applications] kmail2 Reporter: Luis Silva <lacsilva>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 4.11 pre   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Luis Silva 2013-04-02 17:44:27 UTC
Application: kmail (4.11 pre)
KDE Platform Version: 4.10.1 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.8.0-11-generic i686
Distribution: Ubuntu Raring Ringtail (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
I closed kmail 2 while a mail sync was taking place and it crashed. Prior to the crash, kmail showed some folders with a non-zero unread mail count. However, when I opened these folders, no unread mails were present.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb091c740 (LWP 14985))]

Thread 6 (Thread 0xadd03b40 (LWP 14989)):
#0  0xb77cc424 in __kernel_vsyscall ()
#1  0xb591684b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb5f68d7c in __pthread_cond_wait (cond=0xb431ad70 <WTF::pageheap_memory+20720>, mutex=0xb431ad58 <WTF::pageheap_memory+20696>) at forward.c:149
#3  0xb3a59ae5 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb3a59b1f in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb5912d78 in start_thread (arg=0xadd03b40) at pthread_create.c:311
#6  0xb5f5b3de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 5 (Thread 0xad325b40 (LWP 14990)):
#0  0xb77cc424 in __kernel_vsyscall ()
#1  0xb5f4bdcb in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0xb47a22db in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb47936d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb4793831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb62d0c3f in QEventDispatcherGlib::processEvents (this=0xaca00468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb629d3ec in QEventLoop::processEvents (this=this@entry=0xad325228, flags=...) at kernel/qeventloop.cpp:149
#7  0xb629d6e1 in QEventLoop::exec (this=0xad325228, flags=...) at kernel/qeventloop.cpp:204
#8  0xb6188fec in QThread::exec (this=0x9b24b10) at thread/qthread.cpp:542
#9  0xb627cf2d in QInotifyFileSystemWatcherEngine::run (this=0x9b24b10) at io/qfilesystemwatcher_inotify.cpp:256
#10 0xb618bb18 in QThreadPrivate::start (arg=0x9b24b10) at thread/qthread_unix.cpp:338
#11 0xb5912d78 in start_thread (arg=0xad325b40) at pthread_create.c:311
#12 0xb5f5b3de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 4 (Thread 0xac9aeb40 (LWP 14991)):
#0  0xb77cc424 in __kernel_vsyscall ()
#1  0xb591684b in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb5f68d7c in __pthread_cond_wait (cond=0xad4487dc, mutex=0xad4487c4) at forward.c:149
#3  0xb3a8af63 in WTF::ThreadCondition::wait(WTF::Mutex&) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#4  0xb3769b1b in JSC::BlockAllocator::blockFreeingThreadMain() () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#5  0xb3a6f982 in WTF::threadEntryPoint(void*) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#6  0xb3a8ab12 in WTF::wtfThreadEntryPoint(void*) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4
#7  0xb5912d78 in start_thread (arg=0xac9aeb40) at pthread_create.c:311
#8  0xb5f5b3de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 3 (Thread 0xab1ffb40 (LWP 14993)):
#0  0xb77cc424 in __kernel_vsyscall ()
#1  0xb5f4bdcb in poll () at ../sysdeps/unix/syscall-template.S:81
#2  0xb47a22db in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb47936d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb4793831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb62d0c3f in QEventDispatcherGlib::processEvents (this=0xaa800468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb629d3ec in QEventLoop::processEvents (this=this@entry=0xab1ff258, flags=...) at kernel/qeventloop.cpp:149
#7  0xb629d6e1 in QEventLoop::exec (this=0xab1ff258, flags=...) at kernel/qeventloop.cpp:204
#8  0xb6188fec in QThread::exec (this=this@entry=0x9aefab0) at thread/qthread.cpp:542
#9  0xb618914b in QThread::run (this=0x9aefab0) at thread/qthread.cpp:609
#10 0xb618bb18 in QThreadPrivate::start (arg=0x9aefab0) at thread/qthread_unix.cpp:338
#11 0xb5912d78 in start_thread (arg=0xab1ffb40) at pthread_create.c:311
#12 0xb5f5b3de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 2 (Thread 0xaa4efb40 (LWP 1430)):
#0  0xb77cc424 in __kernel_vsyscall ()
#1  0xb5916c33 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:250
#2  0xb5f68dd4 in __pthread_cond_timedwait (cond=0x9bd2678, mutex=0x9bd2660, abstime=0xaa4ef228) at forward.c:162
#3  0xb618c06d in wait (time=30000, this=0x9bd2660) at thread/qwaitcondition_unix.cpp:84
#4  QWaitCondition::wait (this=0x9bd24c0, mutex=0x9bd24bc, time=30000) at thread/qwaitcondition_unix.cpp:158
#5  0xb617e60c in QThreadPoolThread::run (this=0x9bdbdc0) at concurrent/qthreadpool.cpp:141
#6  0xb618bb18 in QThreadPrivate::start (arg=0x9bdbdc0) at thread/qthread_unix.cpp:338
#7  0xb5912d78 in start_thread (arg=0xaa4efb40) at pthread_create.c:311
#8  0xb5f5b3de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 1 (Thread 0xb091c740 (LWP 14985)):
[KCrash Handler]
#7  isEmpty (this=0x97c8110) at ../../include/QtCore/../../src/corelib/tools/qhash.h:297
#8  QHash<QModelIndex, QPersistentModelIndexData*>::remove (this=this@entry=0x97c8110, akey=...) at ../../include/QtCore/../../src/corelib/tools/qhash.h:786
#9  0xb6294f21 in QAbstractItemModelPrivate::removePersistentIndexData (this=0x97c80c0, data=data@entry=0xa786448) at kernel/qabstractitemmodel.cpp:542
#10 0xb6295170 in QPersistentModelIndexData::destroy (data=0xa786448) at kernel/qabstractitemmodel.cpp:83
#11 0xb6295293 in QPersistentModelIndex::~QPersistentModelIndex (this=0xbc0a1f0, __in_chrg=<optimized out>) at kernel/qabstractitemmodel.cpp:155
#12 0xb6aeec3c in ~QItemSelectionRange (this=0xbc0a1f0, __in_chrg=<optimized out>) at ../../include/QtGui/../../src/gui/itemviews/qitemselectionmodel.h:58
#13 node_destruct (to=0xa6cc7a4, from=0xa6cc794, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:431
#14 free (data=0xa6cc780, this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:757
#15 QList<QItemSelectionRange>::~QList (this=0x9bbbfe8, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:732
#16 0xb6b45f18 in ~QItemSelection (this=0x9bbbfe8, __in_chrg=<optimized out>) at itemviews/qitemselectionmodel.h:231
#17 ~QItemSelectionModelPrivate (this=0x9bbbf98, __in_chrg=<optimized out>) at ../../include/QtGui/private/../../../src/gui/itemviews/qitemselectionmodel_p.h:61
#18 QItemSelectionModelPrivate::~QItemSelectionModelPrivate (this=0x9bbbf98, __in_chrg=<optimized out>) at ../../include/QtGui/private/../../../src/gui/itemviews/qitemselectionmodel_p.h:61
#19 0xb62b9e5a in cleanup (pointer=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#20 ~QScopedPointer (this=0x9bb2f4c, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#21 QObject::~QObject (this=0x9bb2f48, __in_chrg=<optimized out>) at kernel/qobject.cpp:816
#22 0xb6b3ce66 in QItemSelectionModel::~QItemSelectionModel (this=0x9bb2f48, __in_chrg=<optimized out>) at itemviews/qitemselectionmodel.cpp:972
#23 0xb6b3ce92 in QItemSelectionModel::~QItemSelectionModel (this=0x9bb2f48, __in_chrg=<optimized out>) at itemviews/qitemselectionmodel.cpp:974
#24 0xb62b2b49 in QObjectPrivate::deleteChildren (this=0x97c2c48) at kernel/qobject.cpp:1907
#25 0xb659e308 in QWidget::~QWidget (this=0x993bf70, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#26 0xb6fbbc06 in KMMainWidget::~KMMainWidget() () from /usr/lib/libkmailprivate.so.4
#27 0xb6fbbd54 in KMMainWidget::~KMMainWidget() () from /usr/lib/libkmailprivate.so.4
#28 0xb62b2b49 in QObjectPrivate::deleteChildren (this=0x97c28b8) at kernel/qobject.cpp:1907
#29 0xb659e308 in QWidget::~QWidget (this=0x97b8a90, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1681
#30 0xb69cc0bf in QMainWindow::~QMainWindow (this=0x97b8a90, __in_chrg=<optimized out>) at widgets/qmainwindow.cpp:388
#31 0xb761f174 in KMainWindow::~KMainWindow (this=0x97b8a90, __in_chrg=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:467
#32 0xb766568c in KXmlGuiWindow::~KXmlGuiWindow (this=0x97b8a90, __vtt_parm=0xb7079e34 <VTT for KMMainWin+4>, __in_chrg=<optimized out>) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:118
#33 0xb6f487c8 in KMMainWin::~KMMainWin() () from /usr/lib/libkmailprivate.so.4
#34 0xb6f48888 in KMMainWin::~KMMainWin() () from /usr/lib/libkmailprivate.so.4
#35 0xb62b2873 in qDeleteInEventHandler (o=o@entry=0x97b8a90) at kernel/qobject.cpp:4269
#36 0xb62ba4b0 in QObject::event (this=0x97b8a90, e=0xbabc1d8) at kernel/qobject.cpp:1175
#37 0xb659cc1a in QWidget::event (this=0x97b8a90, event=0xbabc1d8) at kernel/qwidget.cpp:8845
#38 0xb69ce2ac in QMainWindow::event (this=0x97b8a90, event=0xbabc1d8) at widgets/qmainwindow.cpp:1478
#39 0xb761d394 in KMainWindow::event (this=0x97b8a90, ev=0xbabc1d8) at ../../kdeui/widgets/kmainwindow.cpp:1084
#40 0xb7666c52 in KXmlGuiWindow::event (this=0x97b8a90, ev=0xbabc1d8) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#41 0xb6546c7c in QApplicationPrivate::notify_helper (this=0x954efd8, receiver=0x97b8a90, e=0xbabc1d8) at kernel/qapplication.cpp:4567
#42 0xb6549bfa in QApplication::notify (this=0x954efd8, receiver=0x97b8a90, e=0xbabc1d8) at kernel/qapplication.cpp:4532
#43 0xb754bd01 in KApplication::notify (this=0xbfc1d024, receiver=0x97b8a90, event=0xbabc1d8) at ../../kdeui/kernel/kapplication.cpp:311
#44 0xb629e90e in QCoreApplication::notifyInternal (this=0xbfc1d024, receiver=0x97b8a90, event=0xbabc1d8) at kernel/qcoreapplication.cpp:946
#45 0xb62a2721 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x94fb150) at kernel/qcoreapplication.cpp:1570
#47 0xb62a2a8c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1463
#48 0xb62d0aa4 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#49 postEventSourceDispatch (s=0x954f3a0) at kernel/qeventdispatcher_glib.cpp:279
#50 0xb47933b3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#51 0xb4793750 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#52 0xb4793831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#53 0xb62d0c21 in QEventDispatcherGlib::processEvents (this=0x94fbec0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#54 0xb65fda5a in QGuiEventDispatcherGlib::processEvents (this=0x94fbec0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#55 0xb629d3ec in QEventLoop::processEvents (this=this@entry=0xbfc1cee8, flags=...) at kernel/qeventloop.cpp:149
#56 0xb629d6e1 in QEventLoop::exec (this=0xbfc1cee8, flags=...) at kernel/qeventloop.cpp:204
#57 0xb62a33fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#58 0xb6544fc4 in QApplication::exec () at kernel/qapplication.cpp:3828
#59 0x0804ab62 in main ()

Reported using DrKonqi
Comment 1 Luis Silva 2014-01-16 13:05:18 UTC
This crash has been resolved for me.