Bug 248363

Summary: Crash when deleting message from imap folder
Product: [Frameworks and Libraries] Akonadi Reporter: Murz <MurzNN>
Component: generalAssignee: Stephen Kelly <steveire>
Status: RESOLVED WORKSFORME    
Severity: crash CC: bve, martin.tlustos, steveire, tokoe
Priority: NOR    
Version: 4.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Murz 2010-08-19 12:42:36 UTC
Application: kontact (4.5 beta1)
KDE Platform Version: 4.5.00 (KDE 4.5.0)
Qt Version: 4.7.0
Operating System: Linux 2.6.32-24-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
Select the message, press "del" and the kontact is crashed.
This repeats not every time, but sometimes happens.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f43ca9f2780 (LWP 16317))]

Thread 3 (Thread 0x7f43c4430710 (LWP 16318)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x0000003cb0453bbe in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x0000003cb0453cd9 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00000033440069ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00000033434e66fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f43bd1d3710 (LWP 16328)):
#0  0x00000033434d9f83 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00000033464424a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00000033464428fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f43cc25bbd6 in QEventDispatcherGlib::processEvents (this=0x2226390, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f43cc22e7b2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007f43cc22eb9c in QEventLoop::exec (this=0x7f43bd1d2d90, flags=) at kernel/qeventloop.cpp:201
#6  0x00007f43cc13a23d in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007f43cc20e6d8 in QInotifyFileSystemWatcherEngine::run (this=0x2100cb0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f43cc13d1be in QThreadPrivate::start (arg=0x2100cb0) at thread/qthread_unix.cpp:266
#9  0x00000033440069ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00000033434e66fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f43ca9f2780 (LWP 16317)):
[KCrash Handler]
#6  Akonadi::EntityTreeModel::setData (this=<value optimized out>, index=<value optimized out>, value=<value optimized out>, role=<value optimized out>) at ../../akonadi/entitytreemodel.cpp:693
#7  0x0000003cac337eb2 in Akonadi::SelectionProxyModelPrivate::rootIndexAboutToBeRemoved (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ../../akonadi/selectionproxymodel.cpp:59
#8  Akonadi::SelectionProxyModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./selectionproxymodel.moc:76
#9  0x00007f43cc2477a7 in QMetaObject::activate (sender=0xb818b10, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#10 0x0000003ca8a164f2 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=<value optimized out>, _t1=<value optimized out>) at ./moc_kselectionproxymodel.cpp:153
#11 0x0000003ca8a205e6 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=<value optimized out>, range=<value optimized out>) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1459
#12 0x0000003ca8a2125c in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=<value optimized out>, selection=<value optimized out>) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1378
#13 0x0000003ca8a215c5 in KSelectionProxyModelPrivate::selectionChanged (this=<value optimized out>, _selected=<value optimized out>, _deselected=<value optimized out>)
    at ../../kdeui/itemviews/kselectionproxymodel.cpp:1633
#14 0x0000003ca8a23bb6 in KSelectionProxyModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ./moc_kselectionproxymodel.cpp:138
#15 0x0000003cac337dc5 in Akonadi::SelectionProxyModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ./selectionproxymodel.moc:70
#16 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x205f310, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#17 0x00007f43cccc8da7 in QItemSelectionModel::selectionChanged (this=0x1fa66f0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#18 0x00007f43ccccbe87 in QItemSelectionModel::emitSelectionChanged (this=<value optimized out>, newSelection=<value optimized out>, oldSelection=...) at itemviews/qitemselectionmodel.cpp:1581
#19 0x00007f43ccccd7fb in QItemSelectionModel::select (this=0x205f310, selection=<value optimized out>, command=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1088
#20 0x00007f43c03282fc in MessageList::Pane::Private::onSelectionChanged (this=<value optimized out>, selected=<value optimized out>, deselected=...) at ../../messagelist/pane.cpp:317
#21 0x00007f43c0328ce7 in MessageList::Pane::qt_metacall (this=0x20231a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffed3ef580) at ./pane.moc:110
#22 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x1f88420, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#23 0x00007f43cccc8da7 in QItemSelectionModel::selectionChanged (this=0x1fa66f0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#24 0x00007f43ccccbe87 in QItemSelectionModel::emitSelectionChanged (this=<value optimized out>, newSelection=<value optimized out>, oldSelection=...) at itemviews/qitemselectionmodel.cpp:1581
#25 0x00007f43ccccd7fb in QItemSelectionModel::select (this=0x1f88420, selection=<value optimized out>, command=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1088
#26 0x0000003cac3597bf in Akonadi::StandardActionManager::Private::favoriteSelectionChanged (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ../../akonadi/standardactionmanager.cpp:308
#27 Akonadi::StandardActionManager::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./standardactionmanager.moc:122
#28 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x1da8370, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#29 0x00007f43cccc8da7 in QItemSelectionModel::selectionChanged (this=0x1fa66f0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#30 0x00007f43ccccbf65 in QItemSelectionModel::emitSelectionChanged (this=<value optimized out>, newSelection=..., oldSelection=...) at itemviews/qitemselectionmodel.cpp:1525
#31 0x00007f43ccccd7fb in QItemSelectionModel::select (this=0x1da8370, selection=<value optimized out>, command=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1088
#32 0x00007f43cccca661 in QItemSelectionModel::select (this=0x1da8370, index=<value optimized out>, command=) at itemviews/qitemselectionmodel.cpp:976
#33 0x00007f43cccc8fff in QItemSelectionModel::setCurrentIndex (this=0x1da8370, index=..., command=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1155
#34 0x00007f43ccc75fef in QAbstractItemView::setCurrentIndex (this=0x20bbc90, index=...) at itemviews/qabstractitemview.cpp:1007
#35 0x00007f43ccc770c3 in QAbstractItemView::rowsAboutToBeRemoved (this=0x20bbc90, parent=<value optimized out>, start=0, end=<value optimized out>) at itemviews/qabstractitemview.cpp:3227
#36 0x00007f43ccc91fef in QListView::rowsAboutToBeRemoved (this=0x1fa66f0, parent=..., start=-314644736, end=53) at itemviews/qlistview.cpp:757
#37 0x00007f43ccc781cf in QAbstractItemView::qt_metacall (this=0x20bbc90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffed3f0220)
    at .moc/release-shared/moc_qabstractitemview.cpp:236
#38 0x00007f43cce04c15 in QListView::qt_metacall (this=0x1fa66f0, _c=QMetaObject::ReadProperty, _id=-314644736, _a=0x35) at .moc/release-shared/moc_qlistview.cpp:111
#39 0x0000003cac2c9de0 in Akonadi::EntityListView::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./entitylistview.moc:86
#40 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x20194b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#41 0x00007f43cc292874 in QAbstractItemModel::rowsAboutToBeRemoved (this=0x1fa66f0, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:188
#42 0x00007f43cc227483 in QAbstractItemModel::beginRemoveRows (this=0x20194b0, parent=..., first=0, last=0) at kernel/qabstractitemmodel.cpp:2450
#43 0x0000003ca8a202df in KSelectionProxyModelPrivate::removeRangeFromProxy (this=<value optimized out>, range=<value optimized out>) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1481
#44 0x0000003ca8a2125c in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=<value optimized out>, selection=<value optimized out>) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1378
#45 0x0000003ca8a215c5 in KSelectionProxyModelPrivate::selectionChanged (this=<value optimized out>, _selected=<value optimized out>, _deselected=<value optimized out>)
    at ../../kdeui/itemviews/kselectionproxymodel.cpp:1633
#46 0x0000003ca8a23bb6 in KSelectionProxyModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ./moc_kselectionproxymodel.cpp:138
#47 0x0000003cac337dc5 in Akonadi::SelectionProxyModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ./selectionproxymodel.moc:70
#48 0x0000003cac2e9e3e in Akonadi::FavoriteCollectionsModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ./favoritecollectionsmodel.moc:79
#49 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x2010060, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#50 0x00007f43cccc8da7 in QItemSelectionModel::selectionChanged (this=0x1fa66f0, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#51 0x00007f43cccccf1c in QItemSelectionModel::clearSelection (this=0x2010060) at itemviews/qitemselectionmodel.cpp:1130
#52 0x00007f43cccccfbf in QItemSelectionModel::clear (this=0x1fa66f0) at itemviews/qitemselectionmodel.cpp:1097
#53 0x0000003cac2ea06e in Akonadi::FavoriteCollectionsModel::Private::clearAndUpdateSelection (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, 
    _a=<value optimized out>) at ../../akonadi/favoritecollectionsmodel.cpp:56
#54 Akonadi::FavoriteCollectionsModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./favoritecollectionsmodel.moc:88
#55 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x1fa66f0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#56 0x00007f43cc22a68f in QAbstractItemModel::endMoveRows (this=0x1fa66f0) at kernel/qabstractitemmodel.cpp:2639
#57 0x0000003cac2dc967 in Akonadi::EntityTreeModelPrivate::monitoredItemMoved (this=<value optimized out>, item=<value optimized out>, sourceCollection=<value optimized out>, 
    destCollection=<value optimized out>) at ../../akonadi/entitytreemodel_p.cpp:885
#58 0x0000003cac2cca65 in Akonadi::EntityTreeModel::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ./entitytreemodel.moc:142
#59 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x1f80560, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#60 0x0000003cac31b33f in Akonadi::Monitor::itemMoved (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>, _t3=<value optimized out>) at ./monitor.moc:167
#61 0x0000003cac31deda in Akonadi::MonitorPrivate::emitItemNotification (this=<value optimized out>, msg=<value optimized out>, item=<value optimized out>, collection=<value optimized out>, 
    collectionDest=<value optimized out>) at ../../akonadi/monitor_p.cpp:370
#62 0x0000003cac31eac3 in Akonadi::MonitorPrivate::emitNotification (this=<value optimized out>, msg=<value optimized out>) at ../../akonadi/monitor_p.cpp:214
#63 0x0000003cac31f03d in Akonadi::MonitorPrivate::dataAvailable (this=<value optimized out>) at ../../akonadi/monitor_p.cpp:226
#64 0x0000003cac31b3d3 in Akonadi::Monitor::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./monitor.moc:148
#65 0x0000003cac28f348 in Akonadi::ChangeRecorder::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./changerecorder.moc:72
#66 0x00007f43cc2477a7 in QMetaObject::activate (sender=0x1f80f38, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#67 0x0000003cac28f967 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=<value optimized out>, job=<value optimized out>)
    at ../../akonadi/entitycache_p.h:189
#68 0x0000003cac2c72f3 in Akonadi::EntityCacheBase::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./entitycache_p.moc:77
#69 0x00007f43cc2477a7 in QMetaObject::activate (sender=0xb2ad830, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x35) at kernel/qobject.cpp:3280
#70 0x0000003ca752b812 in KJob::result (this=<value optimized out>, _t1=<value optimized out>) at ./kjob.moc:194
#71 0x0000003ca752bab0 in KJob::emitResult (this=<value optimized out>) at ../../kdecore/jobs/kjob.cpp:312
#72 0x0000003cac3103f9 in Akonadi::JobPrivate::delayedEmitResult (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>)
    at ../../akonadi/job.cpp:143
#73 Akonadi::Job::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./job.moc:91
#74 0x0000003cac2ff115 in Akonadi::ItemFetchJob::qt_metacall (this=<value optimized out>, _c=<value optimized out>, _id=<value optimized out>, _a=<value optimized out>) at ./itemfetchjob.moc:73
#75 0x00007f43cc24187e in QObject::event (this=0xb2ad830, e=0x1fa66f0) at kernel/qobject.cpp:1219
#76 0x00007f43cc72bcdc in QApplicationPrivate::notify_helper (this=0x1abeda0, receiver=0xb2ad830, e=0xbf257b0) at kernel/qapplication.cpp:4389
#77 0x00007f43cc7317cd in QApplication::notify (this=0x7fffed3f2400, receiver=0xb2ad830, e=0xbf257b0) at kernel/qapplication.cpp:4270
#78 0x0000003ca8a33eb6 in KApplication::notify (this=<value optimized out>, receiver=<value optimized out>, event=<value optimized out>) at ../../kdeui/kernel/kapplication.cpp:310
#79 0x00007f43cc22fa8c in QCoreApplication::notifyInternal (this=0x7fffed3f2400, receiver=0xb2ad830, event=0xbf257b0) at kernel/qcoreapplication.cpp:732
#80 0x00007f43cc2329b2 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1a94a90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#81 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1a94a90) at kernel/qcoreapplication.cpp:1373
#82 0x00007f43cc25c043 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#83 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#84 0x000000334643e8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#85 0x0000003346442748 in ?? () from /lib/libglib-2.0.so.0
#86 0x00000033464428fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#87 0x00007f43cc25bb83 in QEventDispatcherGlib::processEvents (this=0x1a94590, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#88 0x00007f43cc7dd7ee in QGuiEventDispatcherGlib::processEvents (this=0x1fa66f0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#89 0x00007f43cc22e7b2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#90 0x00007f43cc22eb9c in QEventLoop::exec (this=0x7fffed3f2340, flags=) at kernel/qeventloop.cpp:201
#91 0x00007f43cc232c4b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#92 0x0000000000403e27 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../kontact/src/main.cpp:218

Possible duplicates by query: bug 223487.

Reported using DrKonqi
Comment 1 Christophe Marin 2010-09-19 18:39:13 UTC
*** Bug 251742 has been marked as a duplicate of this bug. ***
Comment 2 Martin Tlustos 2010-10-06 08:44:22 UTC
Created attachment 52259 [details]
New crash information added by DrKonqi

kontact (4.5 beta1) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
trying to move a message to another folder

- Unusual behavior I noticed:

- Custom settings of the application:
The folder I was trying to move into had a customized view (mailing list view)

-- Backtrace (Reduced):
#6  Akonadi::EntityTreeModel::setData (this=0x1849960, index=..., value=..., role=53) at ../../akonadi/entitytreemodel.cpp:693
#7  0x00007fcee61e6a42 in rootIndexAboutToBeRemoved (this=0x2d61300, _c=<value optimized out>, _id=1, _a=<value optimized out>) at ../../akonadi/selectionproxymodel.cpp:59
#8  Akonadi::SelectionProxyModel::qt_metacall (this=0x2d61300, _c=<value optimized out>, _id=1, _a=<value optimized out>) at ./selectionproxymodel.moc:76
[...]
#10 0x00007fceeac4a412 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=0x1849960, _t1=<value optimized out>) at ./moc_kselectionproxymodel.cpp:147
#11 0x00007fceeac546b6 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x4306240, range=<value optimized out>) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1459
Comment 3 Stephen Kelly 2010-11-29 17:54:02 UTC
Probably fixed in trunk.