Bug 199267

Summary: Kontact crash while kmail was filtering inbox mails (on 3rd pass with a new filter) [QDebug, KMail::MessageListView::Core::View::setCurrentMessageItem, KMail::MessageListView::Widget::activateMessageItemByMsgBase]
Product: [Unmaintained] kmail Reporter: rapsys <rapsys>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: andresbajotierra, kdebugs, martin, ralf, wg3w
Priority: NOR    
Version: 1.12.1   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description rapsys 2009-07-07 11:58:29 UTC
Application that crashed: kontact
Version of the application: 4.3.0 rc1
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.2
Operating System: Linux 2.6.30-server-0.rc8.1mnb i686
Distribution: "Mandriva Linux 2009.1"

What I was doing when the application crashed:
I have added the bogofilter spam filter, and some custom one, filtered 2 times and on 3rd after adding a new filter it crashed.

To filter i selected all ~ 1500 inbox dimap mail and hited Ctrl+j

I suspect that the kio_imap4 tried to auto-fetch new mails while the filtering was active.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  QTextStreamPrivate::putString (this=0x9d28de0, s=@0x2c, number=false) at ../../src/corelib/tools/qstring.h:711
#6  0xb76fdd7c in QTextStream::operator<< (this=0xa923130, string=@0x2c) at io/qtextstream.cpp:2511
#7  0xb0f53986 in QDebug::operator<< (this=0xbf86793c, t=@0x2c) at /usr/lib/qt4/include/QtCore/qdebug.h:108
#8  0xb131c0f4 in KMail::MessageListView::Core::View::setCurrentMessageItem (this=0x979ae18, it=0x0) at /usr/src/debug/kdepim-4.2.95/kmail/messagelistview/core/view.cpp:766
#9  0xb12d0ad1 in KMail::MessageListView::Widget::activateMessageItemByMsgBase (this=0x96e0998, msg=0xa6a6808) at /usr/src/debug/kdepim-4.2.95/kmail/messagelistview/widget.cpp:276
#10 0xb12c7ddf in KMail::MessageListView::Pane::activateMessage (this=0x96855a8, msg=0xa6a6808) at /usr/src/debug/kdepim-4.2.95/kmail/messagelistview/pane.cpp:603
#11 0xb11af939 in KMMainWidget::slotMsgPopup (this=0x9438e08, msg=@0xa6a6808, aUrl=@0xbf867c74, aPoint=@0x0) at /usr/src/debug/kdepim-4.2.95/kmail/kmmainwidget.cpp:3390
#12 0xb11c6460 in KMMainWidget::qt_metacall (this=0x9438e08, _c=QMetaObject::InvokeMetaMethod, _id=100, _a=0xbf867bb0) at /usr/src/debug/kdepim-4.2.95/build/kmail/kmmainwidget.moc:448
#13 0xb776ff29 in QMetaObject::activate (sender=0x97193d8, from_signal_index=28, to_signal_index=28, argv=0xbf867bb0) at kernel/qobject.cpp:3104
#14 0xb7770c65 in QMetaObject::activate (sender=0x97193d8, m=0xb1519fb0, local_signal_index=1, argv=0xbf867bb0) at kernel/qobject.cpp:3178
#15 0xb10130e5 in KMReaderWin::popupMenu (this=0x97193d8, _t1=@0xa6a6808, _t2=@0xbf867c74, _t3=@0xbf867e54) at /usr/src/debug/kdepim-4.2.95/build/kmail/kmreaderwin.moc:233
#16 0xb121206a in KMReaderWin::emitPopupMenu (this=0x97193d8, url=@0xbf867c74, p=@0xbf867e54) at /usr/src/debug/kdepim-4.2.95/kmail/kmreaderwin.h:282
#17 0xb1210b23 in handleContextMenuRequest (this=0x9ea2270, url=@0xbf867c74, p=@0xbf867e54, w=0x0) at /usr/src/debug/kdepim-4.2.95/kmail/urlhandlermanager.cpp:596
#18 0xb120e2ee in KMail::URLHandlerManager::handleContextMenuRequest (this=0x9e7bb20, url=@0xbf867c74, p=@0xbf867e54, w=0x97193d8) at /usr/src/debug/kdepim-4.2.95/kmail/urlhandlermanager.cpp:316
#19 0xb1016175 in KMReaderWin::slotUrlPopup (this=0x97193d8, aUrl=@0x0, aPos=@0xbf867e54) at /usr/src/debug/kdepim-4.2.95/kmail/kmreaderwin.cpp:2032
#20 0xb1020a20 in KMReaderWin::qt_metacall (this=0x97193d8, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbf867da4) at /usr/src/debug/kdepim-4.2.95/build/kmail/kmreaderwin.moc:176
#21 0xb776ff29 in QMetaObject::activate (sender=0x97ca600, from_signal_index=15, to_signal_index=15, argv=0xbf867da4) at kernel/qobject.cpp:3104
#22 0xb7770c65 in QMetaObject::activate (sender=0x97ca600, m=0xb693d0c8, local_signal_index=1, argv=0xbf867da4) at kernel/qobject.cpp:3178
#23 0xb63331ed in KHTMLPart::popupMenu (this=0x97ca600, _t1=@0x97cf064, _t2=@0xbf867e54) at /usr/src/debug/kdelibs-4.2.95/build/khtml/khtml_part.moc:407
#24 0xb633c50c in KHTMLPart::popupMenu (this=0x97ca600, linkUrl=@0x97cf064) at /usr/src/debug/kdelibs-4.2.95/khtml/khtml_part.cpp:4888
#25 0xb6341270 in KHTMLPart::khtmlMousePressEvent (this=0x97ca600, event=0xbf8683f4) at /usr/src/debug/kdelibs-4.2.95/khtml/khtml_part.cpp:6169
#26 0xb633601d in KHTMLPart::customEvent (this=0x97ca600, event=0xbf8683f4) at /usr/src/debug/kdelibs-4.2.95/khtml/khtml_part.cpp:5922
#27 0xb7769e1b in QObject::event (this=0x97ca600, e=0xbf8683f4) at kernel/qobject.cpp:1133
#28 0xb6d730dc in QApplicationPrivate::notify_helper (this=0x9155a50, receiver=0x97ca600, e=0xbf8683f4) at kernel/qapplication.cpp:4056
#29 0xb6d7ac2e in QApplication::notify (this=0xbf86a620, receiver=0x97ca600, e=0xbf8683f4) at kernel/qapplication.cpp:3603
#30 0xb7c62c48 in KApplication::notify (this=0xbf86a620, receiver=0x97ca600, event=0xbf8683f4) at /usr/src/debug/kdelibs-4.2.95/kdeui/kernel/kapplication.cpp:302
#31 0xb775979e in QCoreApplication::notifyInternal (this=0xbf86a620, receiver=0x97ca600, event=0xbf8683f4) at kernel/qcoreapplication.cpp:610
#32 0xb6330bcd in QCoreApplication::sendEvent (receiver=0x97ca600, event=0x2c) at /usr/lib/qt4/include/QtCore/qcoreapplication.h:213
#33 0xb632350e in KHTMLView::mousePressEvent (this=0x97acb40, _mouse=0xbf8683f4) at /usr/src/debug/kdelibs-4.2.95/khtml/khtmlview.cpp:1240
#34 0xb6dca8ea in QWidget::event (this=0x97acb40, event=0xbf868c80) at kernel/qwidget.cpp:7545
#35 0xb718ccf5 in QFrame::event (this=0x97acb40, e=0xbf868c80) at widgets/qframe.cpp:559
#36 0xb631f514 in KHTMLView::widgetEvent (this=0x97acb40, e=0xbf868c80) at /usr/src/debug/kdelibs-4.2.95/khtml/khtmlview.cpp:2325
#37 0xb6323d5d in KHTMLView::eventFilter (this=0x97acb40, o=0x97ad388, e=0xbf868c80) at /usr/src/debug/kdelibs-4.2.95/khtml/khtmlview.cpp:2189
#38 0xb775890e in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x9155a50, receiver=0x97ad388, event=0xbf868c80) at kernel/qcoreapplication.cpp:726
#39 0xb6d730af in QApplicationPrivate::notify_helper (this=0x9155a50, receiver=0x97ad388, e=0xbf868c80) at kernel/qapplication.cpp:4052
#40 0xb6d7b4f3 in QApplication::notify (this=0x97ad388, receiver=0x97ad388, e=0xbf868c80) at kernel/qapplication.cpp:3758
#41 0xb7c62c48 in KApplication::notify (this=0xbf86a620, receiver=0x97ad388, event=0xbf868c80) at /usr/src/debug/kdelibs-4.2.95/kdeui/kernel/kapplication.cpp:302
#42 0xb775979e in QCoreApplication::notifyInternal (this=0xbf86a620, receiver=0x97ad388, event=0xbf868c80) at kernel/qcoreapplication.cpp:610
#43 0xb6d7a51c in QApplicationPrivate::sendMouseEvent (receiver=0x97ad388, event=0xbf868c80, alienWidget=0x97ad388, nativeWidget=0x9438e08, buttonDown=0xb7613a60, lastMouseReceiver=@0xb7613a64)
    at ../../src/corelib/kernel/qcoreapplication.h:216
#44 0xb6debeba in QETWidget::translateMouseEvent (this=0x9438e08, event=0xbf86a2cc) at kernel/qapplication_x11.cpp:4409
#45 0xb6deb3ab in QApplication::x11ProcessEvent (this=0xbf86a620, event=0xbf86a2cc) at kernel/qapplication_x11.cpp:3428
#46 0xb6e167c8 in x11EventSourceDispatch (s=0x9158670, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#47 0xb500beb2 in IA__g_main_context_dispatch (context=0x9157aa0) at gmain.c:1960
#48 0xb500f868 in g_main_context_iterate (context=0x9157aa0, block=<value optimized out>, dispatch=1, self=0x915c3f8) at gmain.c:2591
#49 0xb500f98e in IA__g_main_context_iteration (context=0x9157aa0, may_block=1) at gmain.c:2654
#50 0xb77859d8 in QEventDispatcherGlib::processEvents (this=0x915c280, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:327
#51 0xb6e15efa in QGuiEventDispatcherGlib::processEvents (this=0x915c280, flags={i = 36}) at kernel/qguieventdispatcher_glib.cpp:202
#52 0xb7757d8d in QEventLoop::processEvents (this=0xbf86a584, flags=) at kernel/qeventloop.cpp:149
#53 0xb77581d9 in QEventLoop::exec (this=0xbf86a584, flags={i = 0}) at kernel/qeventloop.cpp:201
#54 0xb775a6c0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#55 0xb6d72f44 in QApplication::exec () at kernel/qapplication.cpp:3525
#56 0x0804b165 in main (argc=1, argv=0xbf86a804) at /usr/src/debug/kdepim-4.2.95/kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Christophe Marin 2009-10-29 13:29:21 UTC
*** Bug 212259 has been marked as a duplicate of this bug. ***
Comment 2 Dario Andres 2009-11-11 01:10:50 UTC
From bug 214049:
---
What I was doing when the application crashed:
This happened immediately after I filtered three messages out of the queue
after creating the filter to use for the purpose. Two messages were left in the
stack, both of which will be deleted ASAP.
Comment 3 Dario Andres 2009-11-11 01:10:54 UTC
*** Bug 214049 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-12-30 03:00:16 UTC
From bug 220625:
---
What I was doing when the application crashed:
Kmail crash when I open email in a research.
Notice that the email that is to be open is located in a virtual folder came
from a Thunderbird import.
This bug is reproducable.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#6  QString (this=0xf9609d8, s=..., number=false) at
../../include/QtCore/../../src/corelib/tools/qstring.h:711
#7  QTextStreamPrivate::putString (this=0xf9609d8, s=..., number=false) at
io/qtextstream.cpp:933
#8  0xb65b518b in QTextStream::operator<< (this=0xc9238c0, string=...) at
io/qtextstream.cpp:2511
#9  0xb0b7f198 in QDebug::operator<< (this=0xaee4318, it=0x0) at
/usr/include/qt4/QtCore/qdebug.h:108
#10 KMail::MessageListView::Core::View::setCurrentMessageItem (this=0xaee4318,
it=0x0) at ../../kmail/messagelistview/core/view.cpp:768
#11 0xb0b28b24 in KMail::MessageListView::Widget::activateMessageItemByMsgBase
(this=0xaf37c00, msg=0xedae460) at ../../kmail/messagelistview/widget.cpp:276
#12 0xb0b1effb in KMail::MessageListView::Pane::activateMessage
(this=0xa732ad8, msg=0xedae460) at ../../kmail/messagelistview/pane.cpp:604
#13 0xb09c115a in KMMainWidget::slotSelectMessage (this=0xa5107b0,
msg=0xedae460) at ../../kmail/kmmainwidget.cpp:3150
#14 0xb0920a33 in KMail::SearchWindow::slotShowMsg (this=0xb9bec78,
item=0xe7fb5e8) at ../../kmail/searchwindow.cpp:726
#15 0xb0920f6e in KMail::SearchWindow::qt_metacall (this=0xb9bec78,
_c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbff2eee4) at
./searchwindow.moc:128
Comment 5 Dario Andres 2009-12-30 03:00:20 UTC
*** Bug 220625 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2010-02-17 16:23:44 UTC
From bug 227351:
-- What I was doing when the application crashed:
- Do a search on a folder.
- In the main Kmail window change to another folder.
- Go back to search window and click on a mail found in search causes crash.
---
I have some mailboxes with 2500+ emails, the crash only seems to occur when the
search is done on these. When the search is done on other mailboxes with less
than 1000 emails the crash doesn't happen.
I have removed some mail from a mailbox that was causing the crash to bring the
number of emails down to 1300 approx. The crash now no longer occurs when the
search is done on this mailbox.
Comment 7 Dario Andres 2010-02-17 16:23:55 UTC
*** Bug 226037 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2010-02-22 02:07:34 UTC
*** Bug 227351 has been marked as a duplicate of this bug. ***
Comment 9 Christophe Marin 2011-02-14 18:37:50 UTC
*** Bug 234346 has been marked as a duplicate of this bug. ***
Comment 10 Myriam Schweingruber 2012-08-19 10:48:13 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding