Bug 264148 - kontact crashes when deleting mail from imap
Summary: kontact crashes when deleting mail from imap
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: libakonadi (show other bugs)
Version: 4.7
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-24 09:52 UTC by simon
Modified: 2011-04-07 08:16 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 simon 2011-01-24 09:52:13 UTC
Application: kontact (4.6 beta4)
KDE Platform Version: 4.5.85 (4.6 Beta2) (Compiled from sources)
Qt Version: 4.7.1
Operating System: Linux 2.6.36-rc4 x86_64
Distribution (Platform): Gentoo Packages

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

i get attached backtrace whenever i try to delete a mail from a imap account, anything i can do to debug?

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
[Current thread is 1 (Thread 0x7f1dbb22e740 (LWP 6679))]

Thread 2 (Thread 0x7f1da6a85710 (LWP 6684)):
#0  0x00007f1db350f3dc in pthread_cond_wait () from /lib/libpthread.so.0
#1  0x00007f1db7bca3b2 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib64/qt4/libQtWebKit.so.4
#2  0x00007f1db7bca3e9 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/qt4/libQtWebKit.so.4
#3  0x00007f1db350b4e7 in start_thread () from /lib/libpthread.so.0
#4  0x00007f1db86b828d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f1dbb22e740 (LWP 6679)):
[KCrash Handler]
#6  0x00007f1db8616445 in raise () from /lib/libc.so.6
#7  0x00007f1db8617941 in abort () from /lib/libc.so.6
#8  0x00007f1db8cbdd5d in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2282
#9  0x00007f1db8cbdefd in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f1db8e346d0 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff92565b90) at global/qglobal.cpp:2328
#10 0x00007f1db8cbe095 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2511
#11 0x00007f1db59d267d in Akonadi::StandardActionManager::Private::slotDeleteItems() () from /usr/lib/libakonadi-kde.so.4
#12 0x00007f1db59cde42 in Akonadi::StandardActionManager::qt_metacall (this=0xcba600, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff92565fa0) at /var/tmp/portage/kde-base/kdepimlibs-9999/work/kdepimlibs-9999_build/akonadi/standardactionmanager.moc:161
#13 0x00007f1db8de0607 in QMetaObject::activate (sender=0xcb68f0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3272
#14 0x00007f1db97adda2 in QAction::triggered (this=0x1a17, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#15 0x00007f1db97af590 in QAction::activate (this=0xcb68f0, event=<value optimized out>) at kernel/qaction.cpp:1257
#16 0x00007f1db9bb63aa in QAbstractButtonPrivate::click (this=0xe23600) at widgets/qabstractbutton.cpp:528
#17 0x00007f1db9bb666c in QAbstractButton::mouseReleaseEvent (this=0xb72c10, e=0x7fff92566bc0) at widgets/qabstractbutton.cpp:1121
#18 0x00007f1db9c90d1a in QToolButton::mouseReleaseEvent (this=0x1a17, e=0x1a17) at widgets/qtoolbutton.cpp:721
#19 0x00007f1db9813fe5 in QWidget::event (this=0xb72c10, event=0x7fff92566bc0) at kernel/qwidget.cpp:8200
#20 0x00007f1db97b5906 in QApplicationPrivate::notify_helper (this=0x638300, receiver=0xb72c10, e=0x7fff92566bc0) at kernel/qapplication.cpp:4445
#21 0x00007f1db97bd4ae in QApplication::notify (this=<value optimized out>, receiver=0xb72c10, e=0x7fff92566bc0) at kernel/qapplication.cpp:4006
#22 0x00007f1dba59f6d1 in KApplication::notify (this=0x7fff92567760, receiver=0xb72c10, event=0x7fff92566bc0) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:311
#23 0x00007f1db8dc6943 in QCoreApplication::notifyInternal (this=0x7fff92567760, receiver=0xb72c10, event=0x7fff92566bc0) at kernel/qcoreapplication.cpp:732
#24 0x00007f1db97bbfc1 in sendEvent (receiver=0xb72c10, event=0x7fff92566bc0, alienWidget=0xb72c10, nativeWidget=0x8b9030, buttonDown=<value optimized out>, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#25 QApplicationPrivate::sendMouseEvent (receiver=0xb72c10, event=0x7fff92566bc0, alienWidget=0xb72c10, nativeWidget=0x8b9030, buttonDown=<value optimized out>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3105
#26 0x00007f1db9849148 in QETWidget::translateMouseEvent (this=0x8b9030, event=<value optimized out>) at kernel/qapplication_x11.cpp:4438
#27 0x00007f1db9847d25 in QApplication::x11ProcessEvent (this=0x7fff92567760, event=0x7fff925673a0) at kernel/qapplication_x11.cpp:3564
#28 0x00007f1db9873152 in x11EventSourceDispatch (s=0x640580, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#29 0x00007f1db2fbe88c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x00007f1db2fc2540 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#31 0x00007f1db2fc27cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#32 0x00007f1db8df5cac in QEventDispatcherGlib::processEvents (this=0x6371f0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#33 0x00007f1db9872a2f in QGuiEventDispatcherGlib::processEvents (this=0x1a17, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f1db8dc56a2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#35 0x00007f1db8dc5a84 in QEventLoop::exec (this=0x7fff925676d0, flags=...) at kernel/qeventloop.cpp:201
#36 0x00007f1db8dc7fc4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#37 0x0000000000403df2 in main (argc=3, argv=0x7fff92567cb8) at /var/tmp/portage/kde-base/kontact-9999/work/kontact-9999/kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Christophe Marin 2011-04-07 00:59:57 UTC
Confirmed with kdepimlibs master.

- Add a "Delete message" button in KMail2 (which gets renamed "delete item")
- kmail crashes as soon as you press the button

ASSERT: "ok" in file /kde/src/KDE/kdepimlibs/akonadi/standardactionmanager.cpp, line 610

Program received signal SIGABRT, Aborted.
0x00007ffff52a9ab5 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff52a9ab5 in raise () from /lib64/libc.so.6
#1  0x00007ffff52aafb6 in abort () from /lib64/libc.so.6
#2  0x00007ffff6812924 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2282
#3  0x00007ffff6812aed in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7ffff6964ba8 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffffff9c90)
    at global/qglobal.cpp:2328
#4  0x00007ffff6812c85 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2511
#5  0x00007ffff6812cca in qt_assert (assertion=0x6438 <Address 0x6438 out of bounds>, file=0x6 <Address 0x6 out of bounds>, line=-1) at global/qglobal.cpp:2027
#6  0x00007ffff1864ea2 in Akonadi::StandardActionManager::Private::slotDeleteItems (this=0xc4a2d0) at /kde/src/KDE/kdepimlibs/akonadi/standardactionmanager.cpp:610
#7  0x00007ffff1860aa7 in Akonadi::StandardActionManager::qt_metacall(enum QMetaObject::Call, int, void **) (this=0xc023a0, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fffffffa0a0)
    at /kde/build/KDE/kdepimlibs/akonadi/standardactionmanager.moc:161
#8  0x00007ffff6919a5f in QMetaObject::activate (sender=0xc4fb90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffffffa0a0) at kernel/qobject.cpp:3278
#9  0x00007ffff5cc6db2 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#10 0x00007ffff5cc6faa in QAction::activate (this=0xc4fb90, event=<optimized out>) at kernel/qaction.cpp:1257
#11 0x00007ffff608249a in QAbstractButtonPrivate::click (this=0xde4690) at widgets/qabstractbutton.cpp:528
#12 0x00007ffff608274c in QAbstractButton::mouseReleaseEvent (this=0x19e8700, e=0x7fffffffaa30) at widgets/qabstractbutton.cpp:1121
#13 0x00007ffff613ec3a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:721
#14 0x00007ffff5d1ec5c in QWidget::event (this=0x19e8700, event=0x7fffffffaa30) at kernel/qwidget.cpp:8259
#15 0x00007ffff5ccd144 in QApplicationPrivate::notify_helper (this=0x65e390, receiver=0x19e8700, e=0x7fffffffaa30) at kernel/qapplication.cpp:4462
#16 0x00007ffff5cd5f7c in QApplication::notify (this=<optimized out>, receiver=0x19e8700, e=0x7fffffffaa30) at kernel/qapplication.cpp:4023
#17 0x00007ffff79c2a76 in KApplication::notify (this=0x7fffffffb670, receiver=0x19e8700, event=0x7fffffffaa30) at /usr/src/debug/kdelibs-4.6.41_20110405/kdeui/kernel/kapplication.cpp:311
#18 0x00007ffff690547c in QCoreApplication::notifyInternal (this=0x7fffffffb670, receiver=0x19e8700, event=0x7fffffffaa30) at kernel/qcoreapplication.cpp:731
#19 0x00007ffff5cce155 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:215
#20 QApplicationPrivate::sendMouseEvent (receiver=0x19e8700, event=0x7fffffffaa30, alienWidget=0x19e8700, nativeWidget=0x6bad80, buttonDown=0x7ffff679f198, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:3122
#21 0x00007ffff5d4cb48 in QETWidget::translateMouseEvent (this=0x6bad80, event=<optimized out>) at kernel/qapplication_x11.cpp:4461
#22 0x00007ffff5d4b209 in QApplication::x11ProcessEvent (this=0x7fffffffb670, event=0x7fffffffb3a0) at kernel/qapplication_x11.cpp:3587
#23 0x00007ffff5d73904 in QEventDispatcherX11::processEvents (this=0x6117c0, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#24 0x00007ffff69048d2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#25 0x00007ffff6904ae5 in QEventLoop::exec (this=0x7fffffffb530, flags=...) at kernel/qeventloop.cpp:201
#26 0x00007ffff6908f2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#27 0x0000000000403474 in main (argc=2, argv=0x7fffffffb808) at /kde/src/KDE/kdepim/kmail/main.cpp:145
Comment 2 Sergio Martins 2011-04-07 08:16:17 UTC
Git commit fa80f078da02a17a730400f7d750b20977816cf8 by Sergio Martins.
Committed on 07/04/2011 at 03:23.
Pushed by smartins into branch 'master'.

Honour the ItemIdRole.

BUG: 264148

M  +7    -0    messagelist/core/model.cpp     

http://commits.kde.org/kdepim/fa80f078da02a17a730400f7d750b20977816cf8