Bug 304488

Summary: Kmail crashed when accessing a folder.
Product: [Applications] kmail2 Reporter: m.wege
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: renard, stefanfrank
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description m.wege 2012-08-03 06:43:54 UTC
Application: kmail (4.9)
KDE Platform Version: 4.9.00
Qt Version: 4.8.1
Operating System: Linux 3.5.0-7-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed: Kmail crashed when accessing a folder. Kmail crashed when accessing a folder.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8323eb27c0 (LWP 5124))]

Thread 4 (Thread 0x7f831d274700 (LWP 6469)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00000037f03cbdec in WTF::TCMalloc_PageHeap::scavengerThread (this=0x37f0d94de0) at wtf/FastMalloc.cpp:2495
#2  0x00000037f03cbf19 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x0000003ba0807e9a in start_thread (arg=0x7f831d274700) at pthread_create.c:308
#4  0x0000003ba00f24bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f831c973700 (LWP 6470)):
#0  0x0000003ba00e6b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003dcda48036 in g_main_context_poll (n_fds=1, fds=0x7f83180029c0, timeout=860, context=0x7f83180009a0, priority=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3440
#2  g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x7f83180009a0, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3141
#3  g_main_context_iterate (context=0x7f83180009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#4  0x0000003dcda48164 in g_main_context_iteration (context=0x7f83180009a0, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#5  0x00000037e71aa426 in QEventDispatcherGlib::processEvents (this=0x7f83180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00000037e7179c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00000037e7179ed7 in QEventLoop::exec (this=0x7f831c972dc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00000037e7078fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00000037e707bfcb in QThreadPrivate::start (arg=0x15a8f40) at thread/qthread_unix.cpp:298
#10 0x0000003ba0807e9a in start_thread (arg=0x7f831c973700) at pthread_create.c:308
#11 0x0000003ba00f24bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f83172fa700 (LWP 6471)):
#0  __pthread_mutex_lock (mutex=0x1) at pthread_mutex_lock.c:47
#1  0x0000003dcda835a1 in g_mutex_lock (mutex=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gthread-posix.c:208
#2  0x0000003dcda47851 in g_main_context_prepare (context=0x7f83100009a0, priority=0x7f83172f9c78) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2838
#3  0x0000003dcda47f5b in g_main_context_iterate (dispatch=1, block=1, context=0x7f83100009a0, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3126
#4  g_main_context_iterate (context=0x7f83100009a0, block=1, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#5  0x0000003dcda48164 in g_main_context_iteration (context=0x7f83100009a0, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#6  0x00000037e71aa426 in QEventDispatcherGlib::processEvents (this=0x7f83100008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00000037e7179c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00000037e7179ed7 in QEventLoop::exec (this=0x7f83172f9d90, flags=...) at kernel/qeventloop.cpp:204
#9  0x00000037e7078fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00000037e71599ff in QInotifyFileSystemWatcherEngine::run (this=0x15faf70) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00000037e707bfcb in QThreadPrivate::start (arg=0x15faf70) at thread/qthread_unix.cpp:298
#12 0x0000003ba0807e9a in start_thread (arg=0x7f83172fa700) at pthread_create.c:308
#13 0x0000003ba00f24bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8323eb27c0 (LWP 5124)):
[KCrash Handler]
#6  0x0000003ba0036445 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x0000003ba0039bab in __GI_abort () at abort.c:91
#8  0x0000003ba0073e2e in __libc_message (do_abort=2, fmt=0x3ba017c0d0 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
#9  0x0000003ba007e626 in malloc_printerr (action=3, str=0x3ba017c2c0 "double free or corruption (fasttop)", ptr=<optimized out>) at malloc.c:5007
#10 0x0000003f94903c78 in Akonadi::EntityTreeModelPrivate::removeItems (this=<optimized out>, it=..., end=..., pos=0x7fffab68e4ec, collection=...) at ../../akonadi/entitytreemodel_p.cpp:1533
#11 0x0000003f94903dc5 in Akonadi::EntityTreeModelPrivate::purgeItems (this=0x11b28c0, id=266) at ../../akonadi/entitytreemodel_p.cpp:1553
#12 0x0000003f948fcfa0 in Akonadi::EntityTreeModel::setData (this=0x111d9b0, index=..., value=..., role=53) at ../../akonadi/entitytreemodel.cpp:735
#13 0x00000037e7d77acd in QSortFilterProxyModel::setData (this=<optimized out>, index=..., value=..., role=53) at itemviews/qsortfilterproxymodel.cpp:1730
#14 0x00000037e7d766b9 in QAbstractProxyModel::setData (this=<optimized out>, index=..., value=..., role=53) at itemviews/qabstractproxymodel.cpp:270
#15 0x00000037e7d766b9 in QAbstractProxyModel::setData (this=<optimized out>, index=..., value=..., role=53) at itemviews/qabstractproxymodel.cpp:270
#16 0x00000037e7d77acd in QSortFilterProxyModel::setData (this=<optimized out>, index=..., value=..., role=53) at itemviews/qsortfilterproxymodel.cpp:1730
#17 0x00000037e7d77acd in QSortFilterProxyModel::setData (this=<optimized out>, index=..., value=..., role=53) at itemviews/qsortfilterproxymodel.cpp:1730
#18 0x0000003f9496e98b in rootIndexAboutToBeRemoved (removedRootIndex=..., this=<optimized out>) at ../../akonadi/selectionproxymodel.cpp:59
#19 Akonadi::SelectionProxyModel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./selectionproxymodel.moc:53
#20 0x00000037e718f281 in QMetaObject::activate (sender=0x16b1220, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab68e960) at kernel/qobject.cpp:3547
#21 0x0000003f9041a2e2 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=<optimized out>, _t1=...) at ./moc_kselectionproxymodel.cpp:161
#22 0x0000003f9041cf0a in KSelectionProxyModelPrivate::sourceLayoutAboutToBeChanged (this=0x16b97b0) at ../../kdeui/itemviews/kselectionproxymodel.cpp:752
#23 0x00000037e718f281 in QMetaObject::activate (sender=0x138c780, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#24 0x00000037e7d7ec5a in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x13f0860, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1159
#25 0x00000037e718f281 in QMetaObject::activate (sender=0x13c4bc0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab68ee70) at kernel/qobject.cpp:3547
#26 0x00000037e71db507 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#27 0x00000037e7d7e7ef in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x138cf30, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1193
#28 0x00000037e7182f01 in QMetaMethod::invoke (this=0x7fffab68f2d0, object=0x13c4bc0, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1664
#29 0x00000037e7185210 in QMetaObject::invokeMethod (obj=0x13c4bc0, member=<optimized out>, type=Qt::DirectConnection, ret=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1179
#30 0x0000003f903f5aab in invokeMethod (val9=..., val8=..., val7=..., val6=..., val5=..., val4=..., val3=..., val2=..., val1=..., val0=..., type=Qt::DirectConnection, member=0x3f905a820b "_q_sourceDataChanged", obj=0x13c4bc0) at /usr/include/qt4/QtCore/qobjectdefs.h:418
#31 invokeDataChanged (bottomRight=..., topLeft=..., this=<optimized out>) at ../../kdeui/itemviews/krecursivefilterproxymodel.cpp:55
#32 KRecursiveFilterProxyModelPrivate::sourceDataChanged (this=0x13e9e80, source_top_left=..., source_bottom_right=...) at ../../kdeui/itemviews/krecursivefilterproxymodel.cpp:131
#33 0x00000037e718f281 in QMetaObject::activate (sender=0x13809f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab68f820) at kernel/qobject.cpp:3547
#34 0x00000037e71db507 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#35 0x0000003f903f3bd7 in KIdentityProxyModelPrivate::_k_sourceDataChanged (this=<optimized out>, topLeft=..., bottomRight=...) at ../../kdeui/itemviews/kidentityproxymodel.cpp:573
#36 0x00000037e718f281 in QMetaObject::activate (sender=0x139f110, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab68f9d0) at kernel/qobject.cpp:3547
#37 0x00000037e71db507 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#38 0x0000003f903f3bd7 in KIdentityProxyModelPrivate::_k_sourceDataChanged (this=<optimized out>, topLeft=..., bottomRight=...) at ../../kdeui/itemviews/kidentityproxymodel.cpp:573
#39 0x00000037e718f281 in QMetaObject::activate (sender=0x110f7b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab68fb80) at kernel/qobject.cpp:3547
#40 0x00000037e71db507 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#41 0x00000037e7d7e7ef in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0xe58fa0, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1193
#42 0x00000037e718f281 in QMetaObject::activate (sender=0x111d9b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffab68fe50) at kernel/qobject.cpp:3547
#43 0x00000037e71db507 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=..., _t2=...) at .moc/release-shared/moc_qabstractitemmodel.cpp:164
#44 0x0000003f9490382b in Akonadi::EntityTreeModelPrivate::changeFetchState (this=<optimized out>, parent=...) at ../../akonadi/entitytreemodel_p.cpp:234
#45 0x00000037e7194446 in QObject::event (this=0x111d9b0, e=<optimized out>) at kernel/qobject.cpp:1195
#46 0x00000037e77cb894 in notify_helper (e=0x6e312f0, receiver=0x111d9b0, this=0xdfc8b0) at kernel/qapplication.cpp:4559
#47 QApplicationPrivate::notify_helper (this=0xdfc8b0, receiver=0x111d9b0, e=0x6e312f0) at kernel/qapplication.cpp:4531
#48 0x00000037e77d0713 in QApplication::notify (this=0x7fffab6908d0, receiver=0x111d9b0, e=0x6e312f0) at kernel/qapplication.cpp:4420
#49 0x0000003f90437456 in KApplication::notify (this=0x7fffab6908d0, receiver=0x111d9b0, event=0x6e312f0) at ../../kdeui/kernel/kapplication.cpp:311
#50 0x00000037e717ae9c in QCoreApplication::notifyInternal (this=0x7fffab6908d0, receiver=0x111d9b0, event=0x6e312f0) at kernel/qcoreapplication.cpp:876
#51 0x00000037e717ec6a in sendEvent (event=0x6e312f0, receiver=0x111d9b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#52 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd4f220) at kernel/qcoreapplication.cpp:1500
#53 0x00000037e71a9f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#54 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#55 0x0000003dcda47d53 in g_main_dispatch (context=0xdf5a30) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#56 g_main_context_dispatch (context=0xdf5a30) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#57 0x0000003dcda480a0 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0xdf5a30, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#58 g_main_context_iterate (context=0xdf5a30, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#59 0x0000003dcda48164 in g_main_context_iteration (context=0xdf5a30, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#60 0x00000037e71aa3bf in QEventDispatcherGlib::processEvents (this=0xd50b00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#61 0x00000037e7873d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#62 0x00000037e7179c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#63 0x00000037e7179ed7 in QEventLoop::exec (this=0x7fffab6907a0, flags=...) at kernel/qeventloop.cpp:204
#64 0x00000037e717ef67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#65 0x0000000000402bd3 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:145

Possible duplicates by query: bug 303621, bug 302750, bug 302621, bug 302581, bug 302042.

Reported using DrKonqi
Comment 1 stefanfrank 2012-08-03 09:57:44 UTC
Hi,
what exactly have you done? I did not get you:
>Kmail crashed when accessing a folder. 
Did you open kmail and left click on a folder?

Thanks Stefan
Comment 2 m.wege 2012-08-04 00:21:49 UTC
yes, exactly
Comment 3 stefanfrank 2012-08-09 17:07:54 UTC
Hi, I made some tests with KDE 4.9.0 and i did not face your problem.
When I klick on a folder kmail do not crash!
My kmail access via pop3. I did not test imap.

System: Arch Linux (upgrade on August 7), KDE 4.9.0 in a VM
Comment 4 m.wege 2012-08-09 19:40:23 UTC
I have IMAP. May be that makes the difference. And it does not hapen all the time. But I have seen it more than once. So it may need a certain condition (which I do not have a clue at the moment).
Comment 5 Sebastien Renard 2012-08-18 09:17:21 UTC

*** This bug has been marked as a duplicate of bug 280630 ***