Version: 1.10.90 (using 4.1.80 (KDE 4.1.80 (KDE 4.2 Beta1)), compiled sources) Compiler: gcc OS: Linux (i686) release 2.6.27.2-tmb-laptop-1mdv KMail crashes on its own when synchronising certain dimap folders with an assertion failure. This seems to emerge when moving mail to a folder. At the next full sync, kmail crashes: ASSERT: "!transferInProgress( serNum )" in file /home/tmacieir/src/kde4/KDE/kdepim/kmail/messageproperty.cpp, line 180 Backtrace: Thread 1 (Thread 0xb476eb00 (LWP 17709)): [KCrash Handler] #6 0xffffe424 in __kernel_vsyscall () #7 0xb6a54d90 in raise () from /lib/i686/libc.so.6 #8 0xb6a567f8 in abort () from /lib/i686/libc.so.6 #9 0xb6cd6f94 in qt_message_output (msgType=QtFatalMsg, buf=0xbf92e500 "ASSERT: \"!transferInProgress( serNum )\" in file /home/tmacieir/src/kde4/KDE/kdepim/kmail/messageproperty.cpp, line 180") at /home/tmacieir/src/troll/qt-4.4/src/corelib/global/qglobal.cpp:2076 #10 0xb6cd6ff8 in qFatal (msg=0xb6e59ec4 "ASSERT: \"%s\" in file %s, line %d") at /home/tmacieir/src/troll/qt-4.4/src/corelib/global/qglobal.cpp:2277 #11 0xb6cd7444 in qt_assert (assertion=0xb14d6dfb "!transferInProgress( serNum )", file=0xb14d6da0 "/home/tmacieir/src/kde4/KDE/kdepim/kmail/messageproperty.cpp", line=180) at /home/tmacieir/src/troll/qt-4.4/src/corelib/global/qglobal.cpp:1846 #12 0xb1023e00 in KMail::MessageProperty::forget (msgBase=0x9a008c8) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/messageproperty.cpp:180 #13 0xb1087fda in ~KMMsgBase (this=0x9a008c8) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/kmmsgbase.cpp:125 #14 0xb0eee934 in ~KMMessage (this=0x9a008c8) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/kmmessage.cpp:225 #15 0xb1091189 in KMMsgList::clear (this=0x9441728, doDelete=true, syncDict=false) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/kmmsglist.cpp:37 #16 0xb11047af in KMFolderMaildir::reallyDoClose (this=0x94416d8) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/kmfoldermaildir.cpp:203 #17 0xb10e78b3 in KMFolderCachedImap::reallyDoClose (this=0x94416d8) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/kmfoldercachedimap.cpp:238 #18 0xb1011a4d in FolderStorage::close (this=0x6, aForced=45) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/folderstorage.cpp:110 #19 0xb10e5d8d in KMFolderCachedImap::resetSyncState (this=0x94416d8) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/kmfoldercachedimap.cpp:2545 #20 0xb10b7ab4 in KMAcctCachedImap::killAllJobs (this=0x942a450, disconnectSlave=<value optimized out>) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/kmacctcachedimap.cpp:110 #21 0xb10ab08f in KMail::ImapAccountBase::handleError (this=0x942a450, errorCode=124, errorMsg=@0xbf930908, job=0x99f3490, context=@0xbf930a08, abortSync=false) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/imapaccountbase.cpp:1015 #22 0xb10a522b in KMail::ImapAccountBase::handleJobError (this=0x942a450, job=0x99f3490, context=@0xbf930a08, abortSync=false) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/imapaccountbase.cpp:367 #23 0xb10a5f4a in KMail::ImapAccountBase::handlePutError (this=0x942a450, job=0x99f3490, jd=@0x9a0005c, folder=0x94415e8) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/imapaccountbase.cpp:959 #24 0xb1234f6f in KMail::CachedImapJob::slotPutMessageResult (this=0x99f31c0, job=0x99f3490) at /home/tmacieir/src/kde4/KDE/kdepim/kmail/cachedimapjob.cpp:482 #25 0xb123bf37 in KMail::CachedImapJob::qt_metacall (this=0x99f31c0, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf930bec) at /home/tmacieir/obj/kde4/KDE/kdepim/kmail/cachedimapjob.moc:107 #26 0xb6e0e66c in QMetaObject::activate (sender=0x99f3490, from_signal_index=7, to_signal_index=7, argv=0xbf930bec) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:3002 #27 0xb6e0ec1f in QMetaObject::activate (sender=0x99f3490, m=0xb70fc888, local_signal_index=3, argv=0xbf930bec) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:3072 #28 0xb6fcb984 in KJob::result (this=0x99f3490, _t1=0x99f3490) at /home/tmacieir/obj/kde4/KDE/kdelibs/kdecore/kjob.moc:186 #29 0xb6fcbed7 in KJob::emitResult (this=0x99f3490) at /home/tmacieir/src/kde4/KDE/kdelibs/kdecore/jobs/kjob.cpp:294 #30 0xb6057993 in KIO::SimpleJob::slotFinished (this=0x99f3490) at /home/tmacieir/src/kde4/KDE/kdelibs/kio/kio/job.cpp:489 #31 0xb6057d6c in KIO::TransferJob::slotFinished (this=0x99f3490) at /home/tmacieir/src/kde4/KDE/kdelibs/kio/kio/job.cpp:957 #32 0xb60552b4 in KIO::SimpleJob::slotError (this=0x99f3490, err=124, errorText=@0xbf930fdc) at /home/tmacieir/src/kde4/KDE/kdelibs/kio/kio/job.cpp:501 #33 0xb605711e in KIO::SimpleJob::qt_metacall (this=0x99f3490, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf930f28) at /home/tmacieir/obj/kde4/KDE/kdelibs/kio/jobclasses.moc:155 #34 0xb605eb48 in KIO::TransferJob::qt_metacall (this=0x99f3490, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0xbf930f28) at /home/tmacieir/obj/kde4/KDE/kdelibs/kio/jobclasses.moc:324 #35 0xb6e0e66c in QMetaObject::activate (sender=0x9578ed0, from_signal_index=6, to_signal_index=6, argv=0xbf930f28) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:3002 #36 0xb6e0ec1f in QMetaObject::activate (sender=0x9578ed0, m=0xb61e48a4, local_signal_index=2, argv=0xbf930f28) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:3072 #37 0xb6106ce5 in KIO::SlaveInterface::error (this=0x9578ed0, _t1=124, _t2=@0xbf930fdc) at /home/tmacieir/obj/kde4/KDE/kdelibs/kio/slaveinterface.moc:151 #38 0xb6108cbe in KIO::SlaveInterface::dispatch (this=0x9578ed0, _cmd=102, rawdata=@0xbf931094) at /home/tmacieir/src/kde4/KDE/kdelibs/kio/kio/slaveinterface.cpp:208 #39 0xb6108932 in KIO::SlaveInterface::dispatch (this=0x9578ed0) at /home/tmacieir/src/kde4/KDE/kdelibs/kio/kio/slaveinterface.cpp:91 #40 0xb60fb0e0 in KIO::Slave::gotInput (this=0x9578ed0) at /home/tmacieir/src/kde4/KDE/kdelibs/kio/kio/slave.cpp:322 #41 0xb60fc538 in KIO::Slave::qt_metacall (this=0x9578ed0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf931190) at /home/tmacieir/obj/kde4/KDE/kdelibs/kio/slave.moc:75 #42 0xb6e0e66c in QMetaObject::activate (sender=0x96a49c0, from_signal_index=4, to_signal_index=4, argv=0x0) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:3002 #43 0xb6e0ec1f in QMetaObject::activate (sender=0x96a49c0, m=0xb61e1380, local_signal_index=0, argv=0x0) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:3072 #44 0xb60264a3 in KIO::Connection::readyRead (this=0x96a49c0) at /home/tmacieir/obj/kde4/KDE/kdelibs/kio/connection.moc:84 #45 0xb60273df in KIO::ConnectionPrivate::dequeue (this=0x969f3a8) at /home/tmacieir/src/kde4/KDE/kdelibs/kio/kio/connection.cpp:82 #46 0xb6028319 in KIO::Connection::qt_metacall (this=0x96a49c0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x9a499f8) at /home/tmacieir/obj/kde4/KDE/kdelibs/kio/connection.moc:72 #47 0xb6e07252 in QMetaCallEvent::placeMetaCall (this=0x99e6a70, object=0x96a49c0) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:503 #48 0xb6e0c1ac in QObject::event (this=0x96a49c0, e=0x99e6a70) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qobject.cpp:1120 #49 0xb722ff37 in QApplicationPrivate::notify_helper (this=0x8d314c8, receiver=0x96a49c0, e=0x99e6a70) at /home/tmacieir/src/troll/qt-4.4/src/gui/kernel/qapplication.cpp:3778 #50 0xb723024c in QApplication::notify (this=0xbf931c2c, receiver=0x96a49c0, e=0x99e6a70) at /home/tmacieir/src/troll/qt-4.4/src/gui/kernel/qapplication.cpp:3368 #51 0xb7d13c9b in KApplication::notify (this=0xbf931c2c, receiver=0x96a49c0, event=0x99e6a70) at /home/tmacieir/src/kde4/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307 #52 0xb6df5f9f in QCoreApplication::notifyInternal (this=0xbf931c2c, receiver=0x96a49c0, event=0x99e6a70) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qcoreapplication.cpp:561 #53 0xb6dfa9bd in QCoreApplication::sendEvent (receiver=0x96a49c0, event=0x99e6a70) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qcoreapplication.h:183 #54 0xb6df6562 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8d1bef8) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qcoreapplication.cpp:1179 #55 0xb6df67f7 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qcoreapplication.cpp:1072 #56 0xb6e2db42 in QCoreApplication::sendPostedEvents () at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qcoreapplication.h:188 #57 0xb6e2cd2f in postEventSourceDispatch (s=0x8d33128) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qeventdispatcher_glib.cpp:179 #58 0xb52597ca in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #59 0xb525cee8 in ?? () from /usr/lib/libglib-2.0.so.0 #60 0xb525d0a8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #61 0xb6e2bf46 in QEventDispatcherGlib::processEvents (this=0x8d2c4b0, flags={i = -1080878616}) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qeventdispatcher_glib.cpp:293 #62 0xb72f10a8 in QGuiEventDispatcherGlib::processEvents (this=0x8d2c4b0, flags={i = -1080878568}) at /home/tmacieir/src/troll/qt-4.4/src/gui/kernel/qguieventdispatcher_glib.cpp:172 #63 0xb6df25e8 in QEventLoop::processEvents (this=0xbf931a98, flags={i = -1080878512}) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qeventloop.cpp:117 #64 0xb6df2826 in QEventLoop::exec (this=0xbf931a98, flags={i = -1080878432}) at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qeventloop.cpp:168 #65 0xb6df6919 in QCoreApplication::exec () at /home/tmacieir/src/troll/qt-4.4/src/corelib/kernel/qcoreapplication.cpp:826 #66 0xb722fc50 in QApplication::exec () at /home/tmacieir/src/troll/qt-4.4/src/gui/kernel/qapplication.cpp:3306 #67 0x0804baca in main (argc=1, argv=0xbf931e24) at /home/tmacieir/src/kde4/KDE/kdepim/kontact/src/main.cpp:218
May I say that this is a showstopper for KDE 4.2? This makes KMail crash unexpectedly and it's very hard to track down for fixing.
*** This bug has been marked as a duplicate of bug 156991 ***
Reopening, this is not a duplicate of the other bug, the assert can be triggered by different situation, and this one is differrent (apparently happening it there is an error when uploading the message to the server during the sync). For me, the situation remains, I still can't reproduce this :(
*** Bug 174816 has been marked as a duplicate of this bug. ***
kio_imap4 is a KIO::TCPSlaveBase. Can it be that bug 176638 caused the upload error? If so, with that bug fixed, it might be difficult to reproduce this issue.
Reproductible here too...both work machine and at home with a different mail server...same backtrace...Seems to happen when message are uploaded to the server, and at the same time a sync is in progress. Clearing the cache fix the problem for the current sync but at the next sync it crash...
*** Bug 179395 has been marked as a duplicate of this bug. ***
Does it happens only with disconnected or even with standard IMAP?
*** Bug 179125 has been marked as a duplicate of this bug. ***
Application: KMail (kmail), signal SIGABRT 0x00007f6a91b5ad21 in nanosleep () from /lib/libc.so.6 [Current thread is 0 (LWP 5094)] Thread 2 (Thread 0x7f6a793cb950 (LWP 5097)): #0 0x00007f6a8d64f56d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007f6a9263c917 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4 #2 0x00007f6a92632409 in ?? () from /usr/lib/libQtCore.so.4 #3 0x00007f6a9263b952 in ?? () from /usr/lib/libQtCore.so.4 #4 0x00007f6a8d64b3ba in start_thread () from /lib/libpthread.so.0 #5 0x00007f6a91b98fcd in clone () from /lib/libc.so.6 #6 0x0000000000000000 in ?? () Thread 1 (Thread 0x7f6a971c4750 (LWP 5094)): [KCrash Handler] #5 0x00007f6a91ae5fb5 in raise () from /lib/libc.so.6 #6 0x00007f6a91ae7bc3 in abort () from /lib/libc.so.6 #7 0x00007f6a92633885 in qt_message_output () from /usr/lib/libQtCore.so.4 #8 0x00007f6a926339cb in qFatal () from /usr/lib/libQtCore.so.4 #9 0x00007f6a95d5ecf8 in ?? () from /usr/lib/libkmailprivate.so.4 #10 0x00007f6a95dbb603 in ?? () from /usr/lib/libkmailprivate.so.4 #11 0x00007f6a95c3bbf9 in ?? () from /usr/lib/libkmailprivate.so.4 #12 0x00007f6a95dc43a2 in ?? () from /usr/lib/libkmailprivate.so.4 #13 0x00007f6a95e323ad in ?? () from /usr/lib/libkmailprivate.so.4 #14 0x00007f6a95e1ff03 in ?? () from /usr/lib/libkmailprivate.so.4 #15 0x00007f6a95e2d943 in ?? () from /usr/lib/libkmailprivate.so.4 #16 0x00007f6a95e2dd84 in ?? () from /usr/lib/libkmailprivate.so.4 #17 0x00007f6a9273a1f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #18 0x00007f6a966766b2 in KJob::result () from /usr/lib/libkdecore.so.5 #19 0x00007f6a96676a2f in KJob::emitResult () from /usr/lib/libkdecore.so.5 #20 0x00007f6a9604d16f in ?? () from /usr/lib/libkmailprivate.so.4 #21 0x00007f6a9604d27d in ?? () from /usr/lib/libkmailprivate.so.4 #22 0x00007f6a9273a1f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #23 0x00007f6a9604c732 in ?? () from /usr/lib/libkmailprivate.so.4 #24 0x00007f6a9604de9b in ?? () from /usr/lib/libkmailprivate.so.4 #25 0x00007f6a9604c818 in ?? () from /usr/lib/libkmailprivate.so.4 #26 0x00007f6a9273a1f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #27 0x00007f6a966768b1 in KJob::infoMessage () from /usr/lib/libkdecore.so.5 #28 0x00007f6a94176b87 in ?? () from /usr/lib/libkio.so.5 #29 0x00007f6a94179356 in KIO::SimpleJob::qt_metacall () from /usr/lib/libkio.so.5 #30 0x00007f6a9417f855 in KIO::TransferJob::qt_metacall () from /usr/lib/libkio.so.5 #31 0x00007f6a9604c7a5 in ?? () from /usr/lib/libkmailprivate.so.4 #32 0x00007f6a9273a1f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #33 0x00007f6a9422faf5 in KIO::SlaveInterface::infoMessage () from /usr/lib/libkio.so.5 #34 0x00007f6a942330b0 in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.5 #35 0x00007f6a942301c2 in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.5 #36 0x00007f6a942213b3 in KIO::Slave::gotInput () from /usr/lib/libkio.so.5 #37 0x00007f6a942236b8 in KIO::Slave::qt_metacall () from /usr/lib/libkio.so.5 #38 0x00007f6a9273a1f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #39 0x00007f6a94149301 in ?? () from /usr/lib/libkio.so.5 #40 0x00007f6a9414975a in KIO::Connection::qt_metacall () from /usr/lib/libkio.so.5 #41 0x00007f6a92734848 in QObject::event () from /usr/lib/libQtCore.so.4 #42 0x00007f6a92e6983d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #43 0x00007f6a92e71a2a in QApplication::notify () from /usr/lib/libQtGui.so.4 #44 0x00007f6a96bfa26b in KApplication::notify () from /usr/lib/libkdeui.so.5 #45 0x00007f6a9272475c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #46 0x00007f6a927253ca in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4 #47 0x00007f6a9274e1e3 in ?? () from /usr/lib/libQtCore.so.4 #48 0x00007f6a8981d20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #49 0x00007f6a898208e0 in ?? () from /usr/lib/libglib-2.0.so.0 #50 0x00007f6a89820a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #51 0x00007f6a9274de6f in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #52 0x00007f6a92f01c9f in ?? () from /usr/lib/libQtGui.so.4 #53 0x00007f6a92723002 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #54 0x00007f6a927233cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #55 0x00007f6a92725694 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4 #56 0x000000000040309b in _start ()
Same Backtrace like Paul Qt: 4.5.0 KDE: 4.2.3 (KDE 4.2.3) KMail: 1.11.3 Ubuntu Packages In commandline it wrotes: ASSERT: "!transferInProgress( serNum )" in file /build/buildd/kdepim-4.2.3/kmail/messageproperty.cpp, line 180 Seems to be Mails with attachments.
Created attachment 34071 [details] kmail_crash_28052009_dimap_signal6 on dimap not the same backtrace
*** Bug 201779 has been marked as a duplicate of this bug. ***
*** Bug 202103 has been marked as a duplicate of this bug. ***
*** Bug 182565 has been marked as a duplicate of this bug. ***
*** Bug 182894 has been marked as a duplicate of this bug. ***
*** Bug 190410 has been marked as a duplicate of this bug. ***
*** Bug 194367 has been marked as a duplicate of this bug. ***
*** Bug 195624 has been marked as a duplicate of this bug. ***
*** Bug 245420 has been marked as a duplicate of this bug. ***
[Comment from a bug triager] From bug 249902: - What I was doing when the application crashed: Kmail crashed after I tried to open a message which contained an attachment with russian file name during the check for new mail.
*** Bug 249902 has been marked as a duplicate of this bug. ***
*** Bug 270014 has been marked as a duplicate of this bug. ***
Seems like this doesn’t happen anymore with KDEPIM 4.6 beta5
Thank you for taking the time to file a bug report. KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2. We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.