Bug 192815

Summary: checking dimap accoung after a remove duplicated messages
Product: [Unmaintained] kmail Reporter: Jaime Torres <jtamate>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, gaboo, simon
Priority: NOR    
Version: SVN trunk (KDE 4)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jaime Torres 2009-05-15 20:04:51 UTC
Application that crashed: kmail
Version of the application: 1.11.90
KDE Version: 4.2.85 (KDE 4.2.85 (KDE 4.3 Beta1))
Qt Version: 4.5.0
Operating System: Linux 2.6.29.2-9-default-jta x86_64

What I was doing when the application crashed:
After checking for new mail, killed kmail manually.
Then I had duplicated messages in the incoming dimap folder. But new incoming mail only appeared once.
I used the remove duplicated messages, and tried to see some messages, wich marked them as empty (and unknown date). Forcing the machine one step forward I checked again mail, and crash.



 -- Backtrace:
Application: KMail (kmail), signal: Aborted
[KCrash Handler]
#5  0x00007f5f18e86645 in raise () from /lib64/libc.so.6
#6  0x00007f5f18e87c33 in abort () from /lib64/libc.so.6
#7  0x00007f5f1ad911fd in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at /g/kde4svn/qt-copy/src/corelib/global/qglobal.cpp:2006
#8  0x00007f5f1ad9133b in qFatal (msg=<value optimized out>) at /g/kde4svn/qt-copy/src/corelib/global/qglobal.cpp:2201
#9  0x00007f5f1d770a8d in KMail::MessageListView::Core::Model::removeMessageFromSubjectBasedThreadingCache (this=<value optimized out>, mi=0x15ca430)
    at /g/kde4svn/kdepim/kmail/messagelistview/core/model.cpp:1631
#10 0x00007f5f1d774be3 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJobPass1Cleanup (this=0xbceaf0, job=0x2b420a0, tStart=@0x7fff2684c1a0)
    at /g/kde4svn/kdepim/kmail/messagelistview/core/model.cpp:3052
#11 0x00007f5f1d7760c4 in KMail::MessageListView::Core::Model::viewItemJobStepInternalForJob (this=0xbceaf0, job=0x2b420a0, tStart=@0x7fff2684c1a0)
    at /g/kde4svn/kdepim/kmail/messagelistview/core/model.cpp:3387
#12 0x00007f5f1d77677e in KMail::MessageListView::Core::Model::viewItemJobStepInternal (this=0xbceaf0) at /g/kde4svn/kdepim/kmail/messagelistview/core/model.cpp:3728
#13 0x00007f5f1d776d9a in KMail::MessageListView::Core::Model::viewItemJobStep (this=0xbceaf0) at /g/kde4svn/kdepim/kmail/messagelistview/core/model.cpp:3884
#14 0x00007f5f1d440ac8 in KMail::MessageListView::Core::Model::qt_metacall (this=0xbceaf0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2684c470)
    at /g/build/kdepim/kmail/moc_model.cpp:76
#15 0x00007f5f1aea5a04 in QMetaObject::activate (sender=0xbceb28, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff)
    at /g/kde4svn/qt-copy/src/corelib/kernel/qobject.cpp:3060
#16 0x00007f5f1ae9eb33 in QObject::event (this=0xbceb28, e=0x41f3) at /g/kde4svn/qt-copy/src/corelib/kernel/qobject.cpp:1073
#17 0x00007f5f19acf55d in QApplicationPrivate::notify_helper (this=0x6d1f70, receiver=0xbceb28, e=0x7fff2684cb40) at /g/kde4svn/qt-copy/src/gui/kernel/qapplication.cpp:4084
#18 0x00007f5f19ad660e in QApplication::notify (this=0x7fff2684cf90, receiver=0xbceb28, e=0x7fff2684cb40) at /g/kde4svn/qt-copy/src/gui/kernel/qapplication.cpp:4049
#19 0x00007f5f1e22089e in KApplication::notify (this=0x7fff2684cf90, receiver=0xbceb28, event=0x7fff2684cb40) at /g/kde4svn/kdelibs/kdeui/kernel/kapplication.cpp:307
#20 0x00007f5f1ae8dc33 in QCoreApplication::notifyInternal (this=0x7fff2684cf90, receiver=0xbceb28, event=0x7fff2684cb40) at /g/kde4svn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:602
#21 0x00007f5f1aebd51e in QTimerInfoList::activateTimers (this=0x6d5030) at ../../include/QtCore/../../../../kde4svn/qt-copy/src/corelib/kernel/qcoreapplication.h:213
#22 0x00007f5f1aeb9bfd in timerSourceDispatch (source=<value optimized out>) at /g/kde4svn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:164
#23 0x00007f5f0fff10fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#24 0x00007f5f0fff48cd in ?? () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f5f0fff4a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f5f1aeb9b6f in QEventDispatcherGlib::processEvents (this=0x60e7f0, flags=<value optimized out>) at /g/kde4svn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:323
#27 0x00007f5f19b6c71f in QGuiEventDispatcherGlib::processEvents (this=0x41f3, flags=<value optimized out>) at /g/kde4svn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#28 0x00007f5f1ae8c772 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 646237616}) at /g/kde4svn/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#29 0x00007f5f1ae8cb3d in QEventLoop::exec (this=0x7fff2684cdf0, flags={i = 646237696}) at /g/kde4svn/qt-copy/src/corelib/kernel/qeventloop.cpp:200
#30 0x00007f5f1ae8eee4 in QCoreApplication::exec () at /g/kde4svn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:880
#31 0x00000000004031d5 in main (argc=<value optimized out>, argv=<value optimized out>) at /g/kde4svn/kdepim/kmail/main.cpp:146

This bug may be a duplicate of or related to bug 187334
Comment 1 Jaime Torres 2009-05-15 20:18:18 UTC
konsole output:

kmail(16883) KMFolderMaildir::removeFile: Can't delete "/home/jtamate/.kde/share/apps/kmail/dimap/.1936280611.directory/INBOX/new/1242405339.15395.5wsRW" "No existe el fichero o el directorio"
ASSERT: "*it == mi" in file /g/kde4svn/kdepim/kmail/messagelistview/core/model.cpp, line 1631
Comment 2 Dario Andres 2009-05-15 21:09:51 UTC
The backtrace on bug 187334 seems to be similar to this, but it is posted by a different reporter than bug 187334 comment 0. So we can't consider it for marking as duplicate.
Comment 3 Dario Andres 2009-05-28 14:26:51 UTC
*** Bug 194430 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-05-28 14:27:54 UTC
*** Bug 193212 has been marked as a duplicate of this bug. ***
Comment 5 Szymon Stefanek 2009-05-29 01:49:53 UTC
SVN commit 974322 by stefanek:

Avoid another condition that may cause the threading
cache to become unsorted (and thus cause asserts on
item removal).

BUG: 187334
BUG: 192815
BUG: 194430




 M  +37 -5     model.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=974322