Bug 193212 - Crash when deleting an email
Summary: Crash when deleting an email
Status: RESOLVED DUPLICATE of bug 192815
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.11.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-19 10:54 UTC by Gael Beaudoin
Modified: 2009-05-28 14:27 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 Gael Beaudoin 2009-05-19 10:54:49 UTC
Version:            (using KDE 4.2.3)
Installed from:    Ubuntu Packages

I can reproduce. It crashes when I try to delete some email. Maybe this is important to know that my computer froze just before while kmail was syncing a disconnected imap account.

It also crashes when I try to fix the imap cache and check the "rebuild index" option.

See the backtrace :

Application : KMail (kmail), signal SIGABRT

Thread 1 (Thread 0xb3bedb40 (LWP 4918)):
[KCrash Handler]
#6  0xb7f89430 in __kernel_vsyscall ()
#7  0xb5b126d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb5b14098 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb5dbd595 in qt_message_output (msgType=QtFatalMsg, 
    buf=0x8cb4568 "ASSERT: \"it != messagesWithTheSameStrippedSubject->end()\" in file /build/buildd/kdepim-4.2.3/kmail/messagelistview/core/model.cpp, line 1642") at global/qglobal.cpp:2006
#10 0xb5dbd681 in qFatal (msg=0xb5f0c318 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2201
#11 0xb5dbd775 in qt_assert (assertion=0xb78d6b34 "it != messagesWithTheSameStrippedSubject->end()", file=0xb78d6a4c "/build/buildd/kdepim-4.2.3/kmail/messagelistview/core/model.cpp", line=1642)
    at global/qglobal.cpp:1777
#12 0xb770b24b in KMail::MessageListView::Core::Model::removeMessageFromSubjectBasedThreadingCache (this=0x8c79378, mi=0x9895ac0)
    at /build/buildd/kdepim-4.2.3/kmail/messagelistview/core/model.cpp:1642
#13 0xb7713773 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJobPass1Cleanup (this=0x8c79378, job=0x990b568, tStart=@0xbf8a657c)
    at /build/buildd/kdepim-4.2.3/kmail/messagelistview/core/model.cpp:3046
#14 0xb77164b6 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJob (this=0x8c79378, job=0x990b568, tStart=@0xbf8a657c)
    at /build/buildd/kdepim-4.2.3/kmail/messagelistview/core/model.cpp:3376
#15 0xb7716a6c in KMail::MessageListView::Core::Model::viewItemJobStepInternal (this=0x8c79378) at /build/buildd/kdepim-4.2.3/kmail/messagelistview/core/model.cpp:3578
#16 0xb7717bb9 in KMail::MessageListView::Core::Model::viewItemJobStep (this=0x8c79378) at /build/buildd/kdepim-4.2.3/kmail/messagelistview/core/model.cpp:3737
#17 0xb7259973 in KMail::MessageListView::Core::Model::qt_metacall (this=0x8c79378, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf8a6758)
    at /build/buildd/kdepim-4.2.3/obj-i486-linux-gnu/kmail/moc_model.cpp:76
#18 0xb5ecfca8 in QMetaObject::activate (sender=0x8c71e18, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3069
#19 0xb5ed0932 in QMetaObject::activate (sender=0x8c71e18, m=0xb5fac904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3143
#20 0xb5f0b717 in QTimer::timeout (this=0x8c71e18) at .moc/release-shared/moc_qtimer.cpp:128
#21 0xb5ed56fe in QTimer::timerEvent (this=0x8c71e18, e=0xbf8a6bdc) at kernel/qtimer.cpp:261
#22 0xb5eca15f in QObject::event (this=0x8c71e18, e=0xbf8a6bdc) at kernel/qobject.cpp:1082
#23 0xb6166e9c in QApplicationPrivate::notify_helper (this=0x886e790, receiver=0x8c71e18, e=0xbf8a6bdc) at kernel/qapplication.cpp:4084
#24 0xb616f19e in QApplication::notify (this=0xbf8a6ef8, receiver=0x8c71e18, e=0xbf8a6bdc) at kernel/qapplication.cpp:3631
#25 0xb7dc3e5d in KApplication::notify (this=0xbf8a6ef8, receiver=0x8c71e18, event=0xbf8a6bdc) at /build/buildd/kde4libs-4.2.3/kdeui/kernel/kapplication.cpp:307
#26 0xb5eb9a3b in QCoreApplication::notifyInternal (this=0xbf8a6ef8, receiver=0x8c71e18, event=0xbf8a6bdc) at kernel/qcoreapplication.cpp:602
#27 0xb5ee8d71 in QTimerInfoList::activateTimers (this=0x8870cc4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#28 0xb5ee54e0 in timerSourceDispatch (source=0x8870c90) at kernel/qeventdispatcher_glib.cpp:164
#29 0xb42eeb88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0xb42f20eb in ?? () from /usr/lib/libglib-2.0.so.0
#31 0xb42f2268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#32 0xb5ee5438 in QEventDispatcherGlib::processEvents (this=0x88535a8, flags={i = -1081447080}) at kernel/qeventdispatcher_glib.cpp:323
#33 0xb6208365 in QGuiEventDispatcherGlib::processEvents (this=0x88535a8, flags={i = -1081447032}) at kernel/qguieventdispatcher_glib.cpp:202
#34 0xb5eb806a in QEventLoop::processEvents (this=0xbf8a6e00, flags={i = -1081446968}) at kernel/qeventloop.cpp:149
#35 0xb5eb84aa in QEventLoop::exec (this=0xbf8a6e00, flags={i = -1081446904}) at kernel/qeventloop.cpp:200
#36 0xb5eba959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#37 0xb6166d17 in QApplication::exec () at kernel/qapplication.cpp:3553
#38 0x0804a7a0 in main (argc=) at /build/buildd/kdepim-4.2.3/kmail/main.cpp:146
Comment 1 Gael Beaudoin 2009-05-19 11:00:30 UTC
Another crash when I try to refresh the cache :

eck the "rebuild index"
option.

See the backtrace :

Application : KMail (kmail), signal SIGSEGV
[Current thread is 0 (LWP 4965)]

Thread 2 (Thread 0xac684b90 (LWP 4969)):
#0  0xb7f9b430 in __kernel_vsyscall ()
#1  0xb500d412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5bec344 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb5dd898c in QWaitCondition::wait (this=0x985b8b8, mutex=0x985b8b4, time=30000) at thread/qwaitcondition_unix.cpp:85
#4  0xb5dcde76 in QThreadPoolThread::run (this=0x985b9a8) at concurrent/qthreadpool.cpp:140
#5  0xb5dd796e in QThreadPrivate::start (arg=0x985b9a8) at thread/qthread_unix.cpp:189
#6  0xb50094ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb5bdd49e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb3bffb40 (LWP 4965)):
[KCrash Handler]
#6  QAbstractButton::isChecked (this=0xbfbb5030) at widgets/qabstractbutton.cpp:766
#7  0xb746f409 in DImapTroubleShootDialog::qt_metacall (this=0xbfbb5030, _c=QMetaObject::InvokeMetaMethod, _id=-1078243280, _a=0xbfbb416c)
    at /build/buildd/kdepim-4.2.3/obj-i486-linux-gnu/kmail/kmfoldercachedimap.moc:69
#8  0xb5ee1ca8 in QMetaObject::activate (sender=0x9a691a0, from_signal_index=5, to_signal_index=5, argv=0xbfbb416c) at kernel/qobject.cpp:3069
#9  0xb5ee2932 in QMetaObject::activate (sender=0x9a691a0, m=0xb6a16178, local_signal_index=1, argv=0xbfbb416c) at kernel/qobject.cpp:3143
#10 0xb682eed3 in QButtonGroup::buttonClicked (this=0x9a691a0, _t1=-1) at .moc/release-shared/moc_qbuttongroup.cpp:128
#11 0xb655a0e8 in QAbstractButtonPrivate::emitClicked (this=0x972e268) at widgets/qabstractbutton.cpp:546
#12 0xb655bd14 in QAbstractButtonPrivate::click (this=0x972e268) at widgets/qabstractbutton.cpp:536
#13 0xb655bfa6 in QAbstractButton::mouseReleaseEvent (this=0x972e250, e=0xbfbb4748) at widgets/qabstractbutton.cpp:1115
#14 0xb61cfb43 in QWidget::event (this=0x972e250, event=0xbfbb4748) at kernel/qwidget.cpp:7516
#15 0xb6559f5e in QAbstractButton::event (this=0x972e250, e=0xbfbb4748) at widgets/qabstractbutton.cpp:1077
#16 0xb66057b6 in QRadioButton::event (this=0x972e250, e=0xbfbb4748) at widgets/qradiobutton.cpp:257
#17 0xb6178e9c in QApplicationPrivate::notify_helper (this=0x879d790, receiver=0x972e250, e=0xbfbb4748) at kernel/qapplication.cpp:4084
#18 0xb6181b11 in QApplication::notify (this=0xbfbb7468, receiver=0x972e250, e=0xbfbb4748) at kernel/qapplication.cpp:3786
#19 0xb7dd5e5d in KApplication::notify (this=0xbfbb7468, receiver=0x972e250, event=0xbfbb4748) at /build/buildd/kde4libs-4.2.3/kdeui/kernel/kapplication.cpp:307
#20 0xb5ecba3b in QCoreApplication::notifyInternal (this=0xbfbb7468, receiver=0x972e250, event=0xbfbb4748) at kernel/qcoreapplication.cpp:602
#21 0xb6180b7e in QApplicationPrivate::sendMouseEvent (receiver=0x972e250, event=0xbfbb4748, alienWidget=0x972e250, nativeWidget=0xbfbb5030, buttonDown=0xb6a23200, lastMouseReceiver=@0xb6a23204)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#22 0xb61f097e in QETWidget::translateMouseEvent (this=0xbfbb5030, event=0xbfbb4d8c) at kernel/qapplication_x11.cpp:4425
#23 0xb61efca7 in QApplication::x11ProcessEvent (this=0xbfbb7468, event=0xbfbb4d8c) at kernel/qapplication_x11.cpp:3421
#24 0xb621ac6a in x11EventSourceDispatch (s=0x879c9e8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#25 0xb4300b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0xb43040eb in ?? () from /usr/lib/libglib-2.0.so.0
#27 0xb4304268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0xb5ef7438 in QEventDispatcherGlib::processEvents (this=0x87825a8, flags={i = -1078243512}) at kernel/qeventdispatcher_glib.cpp:323
#29 0xb621a365 in QGuiEventDispatcherGlib::processEvents (this=0x87825a8, flags={i = -1078243464}) at kernel/qguieventdispatcher_glib.cpp:202
#30 0xb5eca06a in QEventLoop::processEvents (this=0xbfbb4fec, flags={i = -1078243400}) at kernel/qeventloop.cpp:149
#31 0xb5eca4aa in QEventLoop::exec (this=0xbfbb4fec, flags={i = -1078243340}) at kernel/qeventloop.cpp:200
#32 0xb6693403 in QDialog::exec (this=0xbfbb5030) at dialogs/qdialog.cpp:498
#33 0xb7470275 in DImapTroubleShootDialog::run () at /build/buildd/kdepim-4.2.3/kmail/kmfoldercachedimap.cpp:178
#34 0xb74771ac in KMFolderCachedImap::slotTroubleshoot (this=0x8a07848) at /build/buildd/kdepim-4.2.3/kmail/kmfoldercachedimap.cpp:727
#35 0xb748d98c in KMFolderCachedImap::qt_metacall (this=0x8a07848, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0xbfbb522c)
    at /build/buildd/kdepim-4.2.3/obj-i486-linux-gnu/kmail/kmfoldercachedimap.moc:225
#36 0xb5ee1ca8 in QMetaObject::activate (sender=0x971c888, from_signal_index=5, to_signal_index=6, argv=0xbfbb522c) at kernel/qobject.cpp:3069
#37 0xb5ee20e0 in QMetaObject::activate (sender=0x971c888, m=0xb6a05008, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfbb522c) at kernel/qobject.cpp:3163
#38 0xb6172891 in QAction::triggered (this=0x971c888, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#39 0xb6173e0f in QAction::activate (this=0x971c888, event=QAction::Trigger) at kernel/qaction.cpp:1160
#40 0xb65ee01c in QMenuPrivate::activateCausedStack (this=0x87c5ad0, causedStack=@0xbfbb5308, action=0x971c888, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:962
#41 0xb65f476b in QMenuPrivate::activateAction (this=0x87c5ad0, action=0x971c888, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1058
#42 0xb65f5242 in QMenu::mouseReleaseEvent (this=0x95c38e8, e=0xbfbb5948) at widgets/qmenu.cpp:2252
#43 0xb7ebcf25 in KMenu::mouseReleaseEvent (this=0x95c38e8, e=0xbfbb5948) at /build/buildd/kde4libs-4.2.3/kdeui/widgets/kmenu.cpp:454
#44 0xb61cfb43 in QWidget::event (this=0x95c38e8, event=0xbfbb5948) at kernel/qwidget.cpp:7516
#45 0xb65f7629 in QMenu::event (this=0x95c38e8, e=0xbfbb5948) at widgets/qmenu.cpp:2351
#46 0xb6178e9c in QApplicationPrivate::notify_helper (this=0x879d790, receiver=0x95c38e8, e=0xbfbb5948) at kernel/qapplication.cpp:4084
#47 0xb6181b11 in QApplication::notify (this=0xbfbb7468, receiver=0x95c38e8, e=0xbfbb5948) at kernel/qapplication.cpp:3786
#48 0xb7dd5e5d in KApplication::notify (this=0xbfbb7468, receiver=0x95c38e8, event=0xbfbb5948) at /build/buildd/kde4libs-4.2.3/kdeui/kernel/kapplication.cpp:307
#49 0xb5ecba3b in QCoreApplication::notifyInternal (this=0xbfbb7468, receiver=0x95c38e8, event=0xbfbb5948) at kernel/qcoreapplication.cpp:602
#50 0xb6180b7e in QApplicationPrivate::sendMouseEvent (receiver=0x95c38e8, event=0xbfbb5948, alienWidget=0x0, nativeWidget=0x95c38e8, buttonDown=0xb6a23200, lastMouseReceiver=@0xb6a23204)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#51 0xb61f0c06 in QETWidget::translateMouseEvent (this=0x95c38e8, event=0xbfbb5f8c) at kernel/qapplication_x11.cpp:4359
#52 0xb61efca7 in QApplication::x11ProcessEvent (this=0xbfbb7468, event=0xbfbb5f8c) at kernel/qapplication_x11.cpp:3421
#53 0xb621ac6a in x11EventSourceDispatch (s=0x879c9e8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#54 0xb4300b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#55 0xb43040eb in ?? () from /usr/lib/libglib-2.0.so.0
#56 0xb4304268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#57 0xb5ef7438 in QEventDispatcherGlib::processEvents (this=0x87825a8, flags={i = -1078238904}) at kernel/qeventdispatcher_glib.cpp:323
#58 0xb621a365 in QGuiEventDispatcherGlib::processEvents (this=0x87825a8, flags={i = -1078238856}) at kernel/qguieventdispatcher_glib.cpp:202
#59 0xb5eca06a in QEventLoop::processEvents (this=0xbfbb61ec, flags={i = -1078238792}) at kernel/qeventloop.cpp:149
#60 0xb5eca4aa in QEventLoop::exec (this=0xbfbb61ec, flags={i = -1078238732}) at kernel/qeventloop.cpp:200
#61 0xb65f7361 in QMenu::exec (this=0x95c38e8, p=@0xbfbb6b08, action=0x0) at widgets/qmenu.cpp:1991
#62 0xb73145ee in KMail::FolderView::contextMenuEvent (this=0x8d87e78, e=0xbfbb6af0) at /build/buildd/kdepim-4.2.3/kmail/folderview.cpp:1567
#63 0xb61d022c in QWidget::event (this=0x8d87e78, event=0xbfbb6af0) at kernel/qwidget.cpp:7675
#64 0xb65a9993 in QFrame::event (this=0x8d87e78, e=0xbfbb6af0) at widgets/qframe.cpp:559
#65 0xb664994f in QAbstractScrollArea::viewportEvent (this=0x8d87e78, e=0xb5fc0a00) at widgets/qabstractscrollarea.cpp:962
#66 0xb66fb647 in QAbstractItemView::viewportEvent (this=0x8d87e78, event=0xbfbb6af0) at itemviews/qabstractitemview.cpp:1466
#67 0xb67360c4 in QTreeView::viewportEvent (this=0x8d87e78, event=0xbfbb6af0) at itemviews/qtreeview.cpp:1257
#68 0xb664bf55 in QAbstractScrollAreaFilter::eventFilter (this=0x8d5def8, o=0x8d881d8, e=0xbfbb6af0) at widgets/qabstractscrollarea_p.h:100
#69 0xb5ecac5a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x879d790, receiver=0x8d881d8, event=0xbfbb6af0) at kernel/qcoreapplication.cpp:718
#70 0xb6178e7a in QApplicationPrivate::notify_helper (this=0x879d790, receiver=0x8d881d8, e=0xbfbb6af0) at kernel/qapplication.cpp:4080
#71 0xb61816dd in QApplication::notify (this=0xbfbb7468, receiver=0x8d881d8, e=0xbfbb6af0) at kernel/qapplication.cpp:3873
#72 0xb7dd5e5d in KApplication::notify (this=0xbfbb7468, receiver=0x8d881d8, event=0xbfbb6af0) at /build/buildd/kde4libs-4.2.3/kdeui/kernel/kapplication.cpp:307
#73 0xb5ecba3b in QCoreApplication::notifyInternal (this=0xbfbb7468, receiver=0x8d881d8, event=0xbfbb6af0) at kernel/qcoreapplication.cpp:602
#74 0xb6183fee in QCoreApplication::sendSpontaneousEvent (receiver=0x8d881d8, event=0xb5fc0a00) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#75 0xb61f1167 in QETWidget::translateMouseEvent (this=0x8795270, event=0xbfbb710c) at kernel/qapplication_x11.cpp:4431
#76 0xb61efca7 in QApplication::x11ProcessEvent (this=0xbfbb7468, event=0xbfbb710c) at kernel/qapplication_x11.cpp:3421
#77 0xb621ac6a in x11EventSourceDispatch (s=0x879c9e8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#78 0xb4300b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#79 0xb43040eb in ?? () from /usr/lib/libglib-2.0.so.0
#80 0xb4304268 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#81 0xb5ef7438 in QEventDispatcherGlib::processEvents (this=0x87825a8, flags={i = -1078234424}) at kernel/qeventdispatcher_glib.cpp:323
#82 0xb621a365 in QGuiEventDispatcherGlib::processEvents (this=0x87825a8, flags={i = -1078234376}) at kernel/qguieventdispatcher_glib.cpp:202
#83 0xb5eca06a in QEventLoop::processEvents (this=0xbfbb7370, flags={i = -1078234312}) at kernel/qeventloop.cpp:149
#84 0xb5eca4aa in QEventLoop::exec (this=0xbfbb7370, flags={i = -1078234248}) at kernel/qeventloop.cpp:200
#85 0xb5ecc959 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#86 0xb6178d17 in QApplication::exec () at kernel/qapplication.cpp:3553
#87 0x0804a7a0 in main (argc=-1241773568, argv=0xb5fc0a00) at /build/buildd/kdepim-4.2.3/kmail/main.cpp:146
Comment 2 Dario Andres 2009-05-19 14:27:30 UTC
@Gael Beaudoin: the last backtrace is different from the first one. Could you please file a new bug report about it ? (politics here are: one report per issue).

The first backtrace looks related to bug 192815

Thanks
Comment 3 Gael Beaudoin 2009-05-19 14:36:50 UTC
(In reply to comment #2)
> @Gael Beaudoin: the last backtrace is different from the first one. Could you
> please file a new bug report about it ? (politics here are: one report per
> issue).
> 
> The first backtrace looks related to bug 192815
> 
> Thanks

Sure. I hesitated and thought it was related to the same problem so only filed one report. BTW, after several attempt at syncing and crashing, the problem went away. I guess KMail somehow managed to fix the cache / index.

There it is : https://bugs.kde.org/show_bug.cgi?id=193243
Comment 4 Dario Andres 2009-05-28 14:27:54 UTC
Marking as duplicate of bug 192815. Thanks

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