Bug 250353 - KMail crashes when editing folder properties with multiple folders selected
Summary: KMail crashes when editing folder properties with multiple folders selected
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 12:43 UTC by Alex Merry
Modified: 2010-12-12 18:26 UTC (History)
1 user (show)

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 Alex Merry 2010-09-06 12:43:25 UTC
Application: kmail (2.0.89)
KDE Platform Version: 4.5.67 (4.6 >= 20100901) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Steps to reproduce:

1. Select multiple folders (I selected all the subfolders of INBOX on a particular account)
2. Right-click on one of them and go to "Folder Properties"
3. Change something (I deselected the option to use the default identity)
4. Click OK

At this point it crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f4ba1123760 (LWP 8125))]

Thread 2 (Thread 0x7f4b85634710 (LWP 8133)):
#0  0x00007f4b9b0d740c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f4b933f4e30 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib/libQtWebKit.so.4
#2  0x00007f4b933f4e69 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib/libQtWebKit.so.4
#3  0x00007f4b9b0d2cb0 in start_thread () from /lib/libpthread.so.0
#4  0x00007f4b9a69c7ad in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4ba1123760 (LWP 8125)):
[KCrash Handler]
#6  0x00007f4b9a600565 in raise () from /lib/libc.so.6
#7  0x00007f4b9a6019e6 in abort () from /lib/libc.so.6
#8  0x00007f4b9b3583af in qt_message_output (msgType=<value optimized out>, buf=<value optimized out>) at global/qglobal.cpp:2266
#9  0x00007f4b9b35853d in qt_message (msgType=QtFatalMsg, msg=0x7f4b9b4a2f68 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff69f609a0) at global/qglobal.cpp:2312
#10 0x00007f4b9b3586d5 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2495
#11 0x00007f4b9d9c6677 in Akonadi::MonitorPrivate::deref (this=0x2bf5d60, id=252) at /home/kde-devel/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:547
#12 0x00007f4b9d981005 in Akonadi::EntityTreeModelPrivate::deref (this=0x2c0b870, id=252) at /home/kde-devel/src/KDE/kdepimlibs/akonadi/entitytreemodel_p.cpp:1271
#13 0x00007f4b9d974b13 in Akonadi::EntityTreeModel::setData (this=0x2c08ad0, index=..., value=..., role=53) at /home/kde-devel/src/KDE/kdepimlibs/akonadi/entitytreemodel.cpp:719
#14 0x00007f4b9d9de4fe in Akonadi::SelectionProxyModelPrivate::rootIndexAboutToBeRemoved (this=0x39cb2b0, removedRootIndex=...)
    at /home/kde-devel/src/KDE/kdepimlibs/akonadi/selectionproxymodel.cpp:59
#15 0x00007f4b9d9de229 in Akonadi::SelectionProxyModel::qt_metacall (this=0x3ddfec0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff69f60d70)
    at /home/kde-devel/build/KDE/kdepimlibs/akonadi/selectionproxymodel.moc:76
#16 0x00007f4b9b45adef in QMetaObject::activate (sender=0x3ddfec0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff69f60d70) at kernel/qobject.cpp:3287
#17 0x00007f4ba0a9f6c1 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=0x3ddfec0, _t1=...) at /home/kde-devel/build/KDE/kdelibs/kdeui/moc_kselectionproxymodel.cpp:147
#18 0x00007f4ba0a9ab63 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x2c9edf0, range=...) at /home/kde-devel/src/KDE/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1672
#19 0x00007f4ba0a9a36f in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0x2c9edf0, selection=...) at /home/kde-devel/src/KDE/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1591
#20 0x00007f4ba0a9b9dd in KSelectionProxyModelPrivate::selectionChanged (this=0x2c9edf0, _selected=..., _deselected=...)
    at /home/kde-devel/src/KDE/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1836
#21 0x00007f4ba0a9f649 in KSelectionProxyModel::qt_metacall (this=0x3ddfec0, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fff69f615c0)
    at /home/kde-devel/build/KDE/kdelibs/kdeui/moc_kselectionproxymodel.cpp:134
#22 0x00007f4b9d9de1bb in Akonadi::SelectionProxyModel::qt_metacall (this=0x3ddfec0, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0x7fff69f615c0)
    at /home/kde-devel/build/KDE/kdepimlibs/akonadi/selectionproxymodel.moc:70
#23 0x00007f4b9b45adef in QMetaObject::activate (sender=0x27bfdf0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff69f615c0) at kernel/qobject.cpp:3287
#24 0x00007f4b9c640ee7 in QItemSelectionModel::selectionChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>)
    at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#25 0x00007f4b9c6468e9 in QItemSelectionModel::emitSelectionChanged (this=0x27bfdf0, newSelection=<value optimized out>, oldSelection=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1592
#26 0x00007f4b9c647c18 in QItemSelectionModel::select (this=0x27bfdf0, selection=<value optimized out>, command=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1099
#27 0x00007f4b96ab4c35 in MessageList::Pane::Private::onSelectionChanged (this=0x27d8350, selected=..., deselected=...) at /home/kde-devel/src/KDE/kdepim/messagelist/pane.cpp:317
#28 0x00007f4b96ab6c33 in MessageList::Pane::qt_metacall (this=0x27a3fa0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fff69f61b10) at /home/kde-devel/build/KDE/kdepim/messagelist/pane.moc:110
#29 0x00007f4b9fa5e8d9 in CollectionPane::qt_metacall (this=0x27a3fa0, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0x7fff69f61b10) at /home/kde-devel/build/KDE/kdepim/kmail/moc_collectionpane.cpp:66
#30 0x00007f4b9b45adef in QMetaObject::activate (sender=0x2bfcf90, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff69f61b10) at kernel/qobject.cpp:3287
#31 0x00007f4b9c640ee7 in QItemSelectionModel::selectionChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>)
    at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#32 0x00007f4b9c6468e9 in QItemSelectionModel::emitSelectionChanged (this=0x2bfcf90, newSelection=<value optimized out>, oldSelection=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1592
#33 0x00007f4b9c647c18 in QItemSelectionModel::select (this=0x2bfcf90, selection=<value optimized out>, command=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1099
#34 0x00007f4b9c6424d1 in QItemSelectionModel::select (this=0x2bfcf90, index=<value optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:987
#35 0x00007f4b9c5ee8d5 in QAbstractItemView::mouseReleaseEvent (this=0x2bffb10, event=0x7fff69f62d90) at itemviews/qabstractitemview.cpp:1779
#36 0x00007f4b9c146522 in QWidget::event (this=0x2bffb10, event=0x7fff69f62d90) at kernel/qwidget.cpp:8044
#37 0x00007f4b9c4df0f6 in QFrame::event (this=0x2bffb10, e=0x7fff69f62d90) at widgets/qframe.cpp:557
#38 0x00007f4b9c5eb693 in QAbstractItemView::viewportEvent (this=0x2bffb10, event=0x7fff69f62d90) at itemviews/qabstractitemview.cpp:1615
#39 0x00007f4b9c62fae2 in QTreeView::viewportEvent (this=0x2bffb10, event=0x7fff69f62d90) at itemviews/qtreeview.cpp:1248
#40 0x00007f4b9b446f17 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x29f9000, event=0x7fff69f62d90) at kernel/qcoreapplication.cpp:841
#41 0x00007f4b9c0f6ab1 in QApplicationPrivate::notify_helper (this=0x28e3410, receiver=0x29f9000, e=0x7fff69f62d90) at kernel/qapplication.cpp:4298
#42 0x00007f4b9c0fb44a in QApplication::notify (this=<value optimized out>, receiver=0x29f9000, e=0x7fff69f62d90) at kernel/qapplication.cpp:3867
#43 0x00007f4ba0ab2c8d in KApplication::notify (this=0x7fff69f639a0, receiver=0x29f9000, event=0x7fff69f62d90) at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:310
#44 0x00007f4b9b446d8c in QCoreApplication::notifyInternal (this=0x7fff69f639a0, receiver=0x29f9000, event=0x7fff69f62d90) at kernel/qcoreapplication.cpp:726
#45 0x00007f4b9c0f7a35 in QCoreApplication::sendEvent (receiver=0x29f9000, event=0x7fff69f62d90, alienWidget=0x29f9000, nativeWidget=0x256b3c0, buttonDown=0x7f4b9cba2f88, lastMouseReceiver=..., 
    spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#46 QApplicationPrivate::sendMouseEvent (receiver=0x29f9000, event=0x7fff69f62d90, alienWidget=0x29f9000, nativeWidget=0x256b3c0, buttonDown=0x7f4b9cba2f88, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2967
#47 0x00007f4b9c172658 in QETWidget::translateMouseEvent (this=0x256b3c0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4380
#48 0x00007f4b9c171059 in QApplication::x11ProcessEvent (this=0x7fff69f639a0, event=0x7fff69f63540) at kernel/qapplication_x11.cpp:3513
#49 0x00007f4b9c196942 in x11EventSourceDispatch (s=0x28e6e30, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#50 0x00007f4b9089cb33 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#51 0x00007f4b9089d310 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#52 0x00007f4b9089d5ad in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#53 0x00007f4b9b46f87f in QEventDispatcherGlib::processEvents (this=0x2501510, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#54 0x00007f4b9c19660e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#55 0x00007f4b9b446172 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#56 0x00007f4b9b4463ac in QEventLoop::exec (this=0x7fff69f63840, flags=...) at kernel/qeventloop.cpp:201
#57 0x00007f4b9b44a7bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#58 0x00000000004035b4 in main (argc=3, argv=0x7fff69f63b38) at /home/kde-devel/src/KDE/kdepim/kmail/main.cpp:145

This bug may be a duplicate of or related to bug 223487.

Possible duplicates by query: bug 223487.

Reported using DrKonqi
Comment 1 Tobias Koenig 2010-12-12 00:23:57 UTC
Hej Alex,

works fine here with current trunk version. Can you still reproduce?

Ciao,
Tobias
Comment 2 Alex Merry 2010-12-12 18:23:58 UTC
Still crashes.

My exact steps were: select every subfolder of INBOX on a particular account (several of those have further subfolders, which were hidden), deselect "Use default identity", click OK.  Then I clicked on one of the selected folders (to clear the selection.  Then it crashed:

Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7fd415bb8760 (LWP 8446))]

Thread 2 (Thread 0x7fd3f8e5f710 (LWP 8456)):
#0  0x00007fd40fcce40c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fd4081f4994 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007fd40fcc9cb0 in start_thread () from /lib/libpthread.so.0
#3  0x00007fd40f2929dd in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd415bb8760 (LWP 8446)):
[KCrash Handler]
#6  0x00007fd40f1f6595 in raise () from /lib/libc.so.6
#7  0x00007fd40f1f7a16 in abort () from /lib/libc.so.6
#8  0x00007fd40ff4a4ff in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#9  0x00007fd40ff4a68d in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007fd40ff4a825 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#11 0x00007fd4155289a8 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x2a64860, range=...) at /home/kde-devel/src/KDE/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1638
#12 0x00007fd415528493 in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0x2a64860, selection=...) at /home/kde-devel/src/KDE/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1591
#13 0x00007fd415529b01 in KSelectionProxyModelPrivate::selectionChanged (this=0x2a64860, _selected=..., _deselected=...) at /home/kde-devel/src/KDE/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1836
#14 0x00007fd41552de15 in KSelectionProxyModel::qt_metacall (this=0x2aa9c90, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fff9c3a8440) at /home/kde-devel/build/KDE/kdelibs/kdeui/moc_kselectionproxymodel.cpp:134
#15 0x00007fd41264a525 in Akonadi::SelectionProxyModel::qt_metacall (this=0x2aa9c90, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0x7fff9c3a8440) at /home/kde-devel/build/KDE/kdepimlibs/akonadi/selectionproxymodel.moc:70
#16 0x00007fd41005031f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0x00007fd41125c767 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#18 0x00007fd41125f519 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#19 0x00007fd4112635d7 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#20 0x00007fd40b4ad5e7 in MessageList::Pane::Private::onSelectionChanged (this=0x1747aa0, selected=..., deselected=...) at /home/kde-devel/src/KDE/kdepim/messagelist/pane.cpp:317
#21 0x00007fd40b4af6c7 in MessageList::Pane::qt_metacall (this=0x1754970, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0x7fff9c3a89c0) at /home/kde-devel/build/KDE/kdepim/messagelist/pane.moc:110
#22 0x00007fd414781ebf in CollectionPane::qt_metacall (this=0x1754970, _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0x7fff9c3a89c0) at /home/kde-devel/build/KDE/kdepim/kmail/moc_collectionpane.cpp:66
#23 0x00007fd41005031f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007fd41125c767 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#25 0x00007fd41125f519 in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/libQtGui.so.4
#26 0x00007fd4112635d7 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#27 0x00007fd41125e591 in QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#28 0x00007fd41120a485 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#29 0x00007fd410d4c978 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#30 0x00007fd4110f6a06 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#31 0x00007fd4112073b3 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#32 0x00007fd41124c055 in QTreeView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#33 0x00007fd41003b027 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#34 0x00007fd410cfb281 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x00007fd410d0064a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0x00007fd415541605 in KApplication::notify (this=0x7fff9c3aa7e0, receiver=0x155a6e0, event=0x7fff9c3a9bf0) at /home/kde-devel/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311
#37 0x00007fd41003ae9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#38 0x00007fd410cfc2b5 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#39 0x00007fd410d7a908 in ?? () from /usr/lib/libQtGui.so.4
#40 0x00007fd410d78fc9 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#41 0x00007fd410da0502 in ?? () from /usr/lib/libQtGui.so.4
#42 0x00007fd404b84bf3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0x00007fd404b853d0 in ?? () from /usr/lib/libglib-2.0.so.0
#44 0x00007fd404b8566d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0x00007fd410065f0f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#46 0x00007fd410da01ae in ?? () from /usr/lib/libQtGui.so.4
#47 0x00007fd41003a232 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#48 0x00007fd41003a47c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0x00007fd41003e97b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#50 0x0000000000403594 in main (argc=3, argv=0x7fff9c3aa978) at /home/kde-devel/src/KDE/kdepim/kmail/main.cpp:145
Comment 3 Alex Merry 2010-12-12 18:26:39 UTC
Actually, this is a different crash.  I can recreate it without going into the folder properties at all, simply by selecting lots of folders, then clicking one of them.  The original crash is gone.