Bug 202920 - Kmail crashed when moving emails from search folder to general folder (IMAP)
Summary: Kmail crashed when moving emails from search folder to general folder (IMAP)
Status: RESOLVED DUPLICATE of bug 199111
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-07 10:20 UTC by dag
Modified: 2009-08-09 12:16 UTC (History)
2 users (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 dag 2009-08-07 10:20:44 UTC
Application that crashed: kmail
Version of the application: 1.12.0
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.30.3 x86_64

What I was doing when the application crashed:
Steps to repeat:

- Search for example your inbox for certain emails
- Open search folder
- Select emails, in my case ctrl-a and then deselected one with ctrl-click
- move the bunch to a folder
- crash...

Extra facts that might interest you:
- This is an IMAP mail server
- Happened frequently in pre 4.3 versions of kmail
- Had successfully done the same thing about 5 times before in the same session.

 -- Backtrace:
Application: KMail (kmail), signal: Aborted
[KCrash Handler]
#5  0x00007fb6b374d985 in raise () from /lib64/libc.so.6
#6  0x00007fb6b374f110 in abort () from /lib64/libc.so.6
#7  0x00007fb6b5618275 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2042
#8  0x00007fb6b56183bb in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2241
#9  0x00007fb6b8825257 in KMail::MessageListView::Core::View::markMessageItemsAsAboutToBeRemoved (this=0x1f08c80, items=@0x7fffaae3e520, bMark=true)
    at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/messagelistview/core/view.cpp:1665
#10 0x00007fb6b87bdf14 in KMail::MessageListView::Widget::markPersistentSetAsAboutToBeRemoved (this=0x1e6d710, ref=29, bMark=true)
    at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/messagelistview/widget.cpp:525
#11 0x00007fb6b87b4484 in KMail::MessageListView::Pane::messageSetMarkAsAboutToBeRemoved (this=0x1ba1130, set=0x33154a0, bMark=true)
    at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/messagelistview/pane.cpp:835
#12 0x00007fb6b87b3e13 in KMail::MessageListView::MessageSet::markAsAboutToBeRemoved (this=0x33154a0, bMark=true) at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/messagelistview/messageset.cpp:74
#13 0x00007fb6b865423e in KMMainWidget::moveMessageSet (this=0x1e8a770, set=0x33154a0, destination=0x1b4e710, confirmOnDeletion=false)
    at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/kmmainwidget.cpp:1746
#14 0x00007fb6b8654423 in KMMainWidget::slotMoveMsgToFolder (this=0x1e8a770, dest=0x1b4e710) at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/kmmainwidget.cpp:1865
#15 0x00007fb6b8662aa6 in KMMainWidget::qt_metacall (this=0x1e8a770, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffaae3e870)
    at /usr/local/src/kde/4.3.0/build/kdepim-4.3.0/kmail/kmmainwidget.moc:349
#16 0x00007fb6b571e852 in QMetaObject::activate (sender=0x1fb5d20, from_signal_index=<value optimized out>, to_signal_index=131, argv=0xffffffffffffffff) at kernel/qobject.cpp:3104
#17 0x00007fb6b83a8c2f in KMail::FolderView::folderDrop (this=0x1fb5d20, _t1=0x1b4e710) at /usr/local/src/kde/4.3.0/build/kdepim-4.3.0/kmail/folderview.moc:262
#18 0x00007fb6b83ad8d2 in KMail::FolderView::handleMessagesDropEvent (this=0x1fb5d20, e=0x7fffaae3f4c0) at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/folderview.cpp:2359
#19 0x00007fb6b83ada2e in KMail::FolderView::dropEvent (this=0x1fb5d20, e=0x7fffaae3f4c0) at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/folderview.cpp:2416
#20 0x00007fb6b44273f9 in QWidget::event (this=0x1fb5d20, event=0x7fffaae3f4c0) at kernel/qwidget.cpp:7731
#21 0x00007fb6b47b179b in QFrame::event (this=0x1fb5d20, e=0x7fffaae3f4c0) at widgets/qframe.cpp:559
#22 0x00007fb6b48e734d in QAbstractItemView::viewportEvent (this=0x1fb5d20, event=0x7fffaae3f4c0) at itemviews/qabstractitemview.cpp:1476
#23 0x00007fb6b491e9e9 in QTreeView::viewportEvent (this=0x1fb5d20, event=0x7fffaae3f4c0) at itemviews/qtreeview.cpp:1266
#24 0x00007fb6b5708468 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x1ecda50, event=0x7fffaae3f4c0) at kernel/qcoreapplication.cpp:726
#25 0x00007fb6b43d675c in QApplicationPrivate::notify_helper (this=0x1473090, receiver=0x1ecda50, e=0x7fffaae3f4c0) at kernel/qapplication.cpp:4052
#26 0x00007fb6b43def40 in QApplication::notify (this=<value optimized out>, receiver=0x1ecda50, e=0x7fffaae3f4c0) at kernel/qapplication.cpp:4009
#27 0x00007fb6b935f5c5 in KApplication::notify (this=0x7fffaae44c20, receiver=0x1ecda50, event=0x7fffaae3f4c0) at /usr/local/src/kde/4.3.0/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#28 0x00007fb6b570915c in QCoreApplication::notifyInternal (this=0x7fffaae44c20, receiver=0x1ecda50, event=0x7fffaae3f4c0) at kernel/qcoreapplication.cpp:610
#29 0x00007fb6b4454ddb in QX11Data::xdndHandleDrop (this=<value optimized out>, xe=<value optimized out>, passive=<value optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#30 0x00007fb6b4459617 in QDragManager::drop (this=0x2f4bc60) at kernel/qdnd_x11.cpp:1709
#31 0x00007fb6b44597ac in QDragManager::eventFilter (this=0x2f4bc60, o=<value optimized out>, e=<value optimized out>) at kernel/qdnd_x11.cpp:1302
#32 0x00007fb6b570852c in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=0x1473090, receiver=0x378d9d0, event=0x7fffaae3fe30) at kernel/qcoreapplication.cpp:707
#33 0x00007fb6b43d66f6 in QApplicationPrivate::notify_helper (this=0x281b, receiver=0x281b, e=0x6) at kernel/qapplication.cpp:4031
#34 0x00007fb6b43df15a in QApplication::notify (this=<value optimized out>, receiver=0x378d9d0, e=0x7fffaae3fe30) at kernel/qapplication.cpp:3758
#35 0x00007fb6b935f5c5 in KApplication::notify (this=0x7fffaae44c20, receiver=0x378d9d0, event=0x7fffaae3fe30) at /usr/local/src/kde/4.3.0/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#36 0x00007fb6b570915c in QCoreApplication::notifyInternal (this=0x7fffaae44c20, receiver=0x378d9d0, event=0x7fffaae3fe30) at kernel/qcoreapplication.cpp:610
#37 0x00007fb6b43de3a8 in QApplicationPrivate::sendMouseEvent (receiver=0x378d9d0, event=0x7fffaae3fe30, alienWidget=0x0, nativeWidget=0x378d9d0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fb6b4e34010) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#38 0x00007fb6b4448269 in QETWidget::translateMouseEvent (this=0x378d9d0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4409
#39 0x00007fb6b4446fa5 in QApplication::x11ProcessEvent (this=0x7fffaae44c20, event=0x7fffaae41800) at kernel/qapplication_x11.cpp:3550
#40 0x00007fb6b446e4f4 in x11EventSourceDispatch (s=0x1474d00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#41 0x00007fb6aa9ff701 in IA__g_main_context_dispatch (context=0x14726c0) at gmain.c:1814
#42 0x00007fb6aaa02da0 in g_main_context_iterate (context=0x14726c0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2448
#43 0x00007fb6aaa02f3c in IA__g_main_context_iteration (context=0x14726c0, may_block=1) at gmain.c:2511
#44 0x00007fb6b573243f in QEventDispatcherGlib::processEvents (this=0x143dee0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#45 0x00007fb6b446dc9f in QGuiEventDispatcherGlib::processEvents (this=0x281b, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#46 0x00007fb6b57079f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1427891472}) at kernel/qeventloop.cpp:149
#47 0x00007fb6b5707dc4 in QEventLoop::exec (this=0x3cadc70, flags={i = -1427891136}) at kernel/qeventloop.cpp:201
#48 0x00007fb6b4458fa4 in QDragManager::drag (this=0x2f4bc60, o=<value optimized out>) at kernel/qdnd_x11.cpp:1969
#49 0x00007fb6b43e9238 in QDrag::exec (this=0x2af3080, supportedActions={i = -1427890976}, defaultDropAction=Qt::IgnoreAction) at kernel/qdrag.cpp:282
#50 0x00007fb6b43e92e3 in QDrag::exec (this=0x281b, supportedActions=<value optimized out>) at kernel/qdrag.cpp:239
#51 0x00007fb6b87bed28 in KMail::MessageListView::Widget::viewStartDragRequest (this=0x1e6d710) at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/messagelistview/widget.cpp:803
#52 0x00007fb6b8820fd6 in KMail::MessageListView::Core::View::mouseMoveEvent (this=0x1f08c80, e=0x7fffaae42d50) at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/messagelistview/core/view.cpp:2058
#53 0x00007fb6b44277b8 in QWidget::event (this=0x1f08c80, event=0x7fffaae42d50) at kernel/qwidget.cpp:7534
#54 0x00007fb6b47b179b in QFrame::event (this=0x1f08c80, e=0x7fffaae42d50) at widgets/qframe.cpp:559
#55 0x00007fb6b48e734d in QAbstractItemView::viewportEvent (this=0x1f08c80, event=0x7fffaae42d50) at itemviews/qabstractitemview.cpp:1476
#56 0x00007fb6b491e9e9 in QTreeView::viewportEvent (this=0x1f08c80, event=0x7fffaae42d50) at itemviews/qtreeview.cpp:1266
#57 0x00007fb6b5708468 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x14cab40, event=0x7fffaae42d50) at kernel/qcoreapplication.cpp:726
#58 0x00007fb6b43d675c in QApplicationPrivate::notify_helper (this=0x1473090, receiver=0x14cab40, e=0x7fffaae42d50) at kernel/qapplication.cpp:4052
#59 0x00007fb6b43df15a in QApplication::notify (this=<value optimized out>, receiver=0x14cab40, e=0x7fffaae42d50) at kernel/qapplication.cpp:3758
#60 0x00007fb6b935f5c5 in KApplication::notify (this=0x7fffaae44c20, receiver=0x14cab40, event=0x7fffaae42d50) at /usr/local/src/kde/4.3.0/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#61 0x00007fb6b570915c in QCoreApplication::notifyInternal (this=0x7fffaae44c20, receiver=0x14cab40, event=0x7fffaae42d50) at kernel/qcoreapplication.cpp:610
#62 0x00007fb6b43de3a8 in QApplicationPrivate::sendMouseEvent (receiver=0x14cab40, event=0x7fffaae42d50, alienWidget=0x14cab40, nativeWidget=0x18d2b80, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fb6b4e34010) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#63 0x00007fb6b4448269 in QETWidget::translateMouseEvent (this=0x18d2b80, event=<value optimized out>) at kernel/qapplication_x11.cpp:4409
#64 0x00007fb6b4446fa5 in QApplication::x11ProcessEvent (this=0x7fffaae44c20, event=0x7fffaae44720) at kernel/qapplication_x11.cpp:3550
#65 0x00007fb6b446e4f4 in x11EventSourceDispatch (s=0x1474d00, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#66 0x00007fb6aa9ff701 in IA__g_main_context_dispatch (context=0x14726c0) at gmain.c:1814
#67 0x00007fb6aaa02da0 in g_main_context_iterate (context=0x14726c0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2448
#68 0x00007fb6aaa02f3c in IA__g_main_context_iteration (context=0x14726c0, may_block=1) at gmain.c:2511
#69 0x00007fb6b573243f in QEventDispatcherGlib::processEvents (this=0x143dee0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#70 0x00007fb6b446dc9f in QGuiEventDispatcherGlib::processEvents (this=0x281b, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#71 0x00007fb6b57079f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1427879408}) at kernel/qeventloop.cpp:149
#72 0x00007fb6b5707dc4 in QEventLoop::exec (this=0x7fffaae44a50, flags={i = -1427879328}) at kernel/qeventloop.cpp:201
#73 0x00007fb6b570a094 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#74 0x0000000000403cb1 in main (argc=1, argv=0x7fffaae44db8) at /usr/local/src/kde/4.3.0/kdepim-4.3.0/kmail/main.cpp:146

Reported using DrKonqi
Comment 1 Dario Andres 2009-08-07 19:14:48 UTC
Backtrace of bug 199111 seems to be related to this too. Thanks
Comment 2 Martin Koller 2009-08-07 23:15:47 UTC
This comes from an assert in view.cpp
    MessageItem * aMessage = items.last();
    Q_ASSERT( aMessage );

I assume this code should not really have asserts ....
Comment 3 Christophe Marin 2009-08-09 12:16:35 UTC

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