Bug 120270

Summary: KMail regression: crashes syncing disconnected IMAP account
Product: [Unmaintained] kmail Reporter: Adam Porter <adam>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 1.9.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Adam Porter 2006-01-16 23:06:36 UTC
Version:           1.9.1 (using KDE KDE 3.5.0)
Installed from:    Debian testing/unstable Packages
OS:                Linux

[There's also a report at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348131]

I recently upgraded to KDE 3.5 from Debian/unstable, and then upgraded KDE-PIM to 3.5, including KMail 1.9.1.  KMail 1.8.3 never gave me any real problems; once in a while it'd crash while idling in the background, but I'd just restart it when I needed it, and it was fine.  But KMail 1.9.1 has a very ugly crash bug with disconnected IMAP.  Every time it tries to sync my inbox, it crashes.  This makes it *completely useless*!

I was able to fix it for a short while by moving all the messages from the inbox to another folder, and after syncing the whole account, it didn't crash.  Then I moved them back to the inbox, and on the next sync, it started crashing again.  Argh!

It didn't crash for the first few days I used it, but then it started crashing every time, and the backtrace always showed the same "flagsToStatus" thing.  I'm guessing that there's a message in the inbox with some flag that KMail doesn't like, but 1.8.3 never had this problem.

Now I'm going to have to downgrade to 1.8.3.  But that means taking all of KDE-PIM with it (argh, why can't they be more separate?), and when I tried that earlier, KNode crashed immediately on starting (argh).

Sorry for the "argh"s, but I'm a little frustrated.  Why oh why are e-mail clients so much trouble?!  They've got to be the most troublesome, buggy apps that exist.

Anyway, here's the backtrace from the last crash, and then a different backtrace from yesterday.

--START--
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1246505280 (LWP 1202)]
[New Thread -1274365008 (LWP 1207)]
[New Thread -1265972304 (LWP 1206)]
[New Thread -1257579600 (LWP 1205)]
[New Thread -1249186896 (LWP 1204)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#4  0xb7c7781d in KMHeaders::msgRemoved () from /usr/lib/libkmailprivate.so
#5  0xb7c791c9 in KMHeaders::qt_invoke () from /usr/lib/libkmailprivate.so
#6  0xb71deb57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#7  0xb7ca7e7f in KMFolder::msgRemoved () from /usr/lib/libkmailprivate.so
#8  0xb7cabe0d in KMFolder::qt_emit () from /usr/lib/libkmailprivate.so
#9  0xb71deb2e in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#10 0xb7cc59bf in FolderStorage::msgRemoved ()
   from /usr/lib/libkmailprivate.so
#11 0xb7cc74db in FolderStorage::take () from /usr/lib/libkmailprivate.so
#12 0xb7d713dc in KMFolderMaildir::take () from /usr/lib/libkmailprivate.so
#13 0xb7d5bf8b in KMFolderCachedImap::take () from /usr/lib/libkmailprivate.so
#14 0xb7ca6a1e in KMFolder::take () from /usr/lib/libkmailprivate.so
#15 0xb7cf26cd in KMFilterMgr::endFiltering ()
   from /usr/lib/libkmailprivate.so
#16 0xb7cf43d5 in KMFilterMgr::process () from /usr/lib/libkmailprivate.so
#17 0xb7c66940 in KMAccount::processNewMsg () from /usr/lib/libkmailprivate.so
#18 0xb7d5eeef in KMFolderCachedImap::addMsgInternal ()
   from /usr/lib/libkmailprivate.so
#19 0xb7e25b39 in KMail::CachedImapJob::slotGetNextMessage ()
   from /usr/lib/libkmailprivate.so
#20 0xb7e24f20 in KMail::CachedImapJob::qt_invoke ()
   from /usr/lib/libkmailprivate.so
#21 0xb71deb57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#22 0xb5d25f72 in KIO::Job::result () from /usr/lib/libkio.so.4
#23 0xb5d79eac in KIO::Job::emitResult () from /usr/lib/libkio.so.4
#24 0xb5d7a01e in KIO::SimpleJob::slotFinished () from /usr/lib/libkio.so.4
#25 0xb5d7a75d in KIO::TransferJob::slotFinished () from /usr/lib/libkio.so.4
#26 0xb5d7bd8a in KIO::TransferJob::qt_invoke () from /usr/lib/libkio.so.4
#27 0xb71deb57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#28 0xb71df63b in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#29 0xb5d20bdc in KIO::SlaveInterface::finished () from /usr/lib/libkio.so.4
#30 0xb5d94318 in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.4
#31 0xb5d39417 in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.4
#32 0xb5d3e00b in KIO::Slave::gotInput () from /usr/lib/libkio.so.4
#33 0xb5d3e1bb in KIO::Slave::qt_invoke () from /usr/lib/libkio.so.4
#34 0xb71deb57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#35 0xb71df4a5 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#36 0xb756fcbc in QSocketNotifier::activated () from /usr/lib/libqt-mt.so.3
#37 0xb71ff569 in QSocketNotifier::event () from /usr/lib/libqt-mt.so.3
#38 0xb7174698 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#39 0xb71748b6 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#40 0xb787a8ae in KApplication::notify () from /usr/lib/libkdecore.so.4
#41 0xb71045e5 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#42 0xb7165ac9 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/libqt-mt.so.3
#43 0xb7118334 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#44 0xb718cda2 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#45 0xb718cccb in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#46 0xb7173225 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#47 0x0804a098 in ?? ()
#48 0xbfa97948 in ?? ()
#49 0xbfa97b34 in ?? ()
#50 0x00000000 in ?? ()
--END--

--START--
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1246951744 (LWP 30056)]
[New Thread -1274811472 (LWP 30060)]
[New Thread -1266418768 (LWP 30059)]
[New Thread -1258026064 (LWP 30058)]
[New Thread -1249633360 (LWP 30057)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#4  0x656e2e73 in ?? ()
#5  0xb7cdece1 in KMFolderImap::flagsToStatus ()
   from /usr/lib/libkmailprivate.so
#6  0xb7cfad4f in KMFolderCachedImap::slotGetMessagesData ()
   from /usr/lib/libkmailprivate.so
#7  0xb7cfc742 in KMFolderCachedImap::qt_invoke ()
   from /usr/lib/libkmailprivate.so
#8  0xb7171b57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#9  0xb5cbac6f in KIO::TransferJob::data () from /usr/lib/libkio.so.4
#10 0xb5cbace8 in KIO::TransferJob::slotData () from /usr/lib/libkio.so.4
#11 0xb5d0eda9 in KIO::TransferJob::qt_invoke () from /usr/lib/libkio.so.4
#12 0xb7171b57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#13 0xb5cb7e32 in KIO::SlaveInterface::data () from /usr/lib/libkio.so.4
#14 0xb5d273b1 in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.4
#15 0xb5ccc417 in KIO::SlaveInterface::dispatch () from /usr/lib/libkio.so.4
#16 0xb5cd100b in KIO::Slave::gotInput () from /usr/lib/libkio.so.4
#17 0xb5cd11bb in KIO::Slave::qt_invoke () from /usr/lib/libkio.so.4
#18 0xb7171b57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#19 0xb71724a5 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#20 0xb7502cbc in QSocketNotifier::activated () from /usr/lib/libqt-mt.so.3
#21 0xb7192569 in QSocketNotifier::event () from /usr/lib/libqt-mt.so.3
#22 0xb7107698 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#23 0xb71078b6 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#24 0xb780d8ae in KApplication::notify () from /usr/lib/libkdecore.so.4
#25 0xb70975e5 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#26 0xb70f8ac9 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/libqt-mt.so.3
#27 0xb70ab334 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#28 0xb711fda2 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#29 0xb711fccb in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#30 0xb7106225 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#31 0x0804a098 in ?? ()
#32 0xbfd299f8 in ?? ()
#33 0xbfd29be4 in ?? ()
#34 0x00000000 in ?? ()
--END--
Comment 1 Adam Porter 2006-01-17 02:17:22 UTC
I tried wiping out the local cache by removing the account, and letting KMail resync it.  That worked...for a while.  It completely synced the account, including all folders and the inbox.  I left it running for an hour or so in the background, and everything seemed fine.  Then, suddenly, it crashed again.

I installed the kdelibs-dbg package.  Here's another backtrace.

--START--
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1246927168 (LWP 9043)]
[New Thread -1274786896 (LWP 9049)]
[New Thread -1266394192 (LWP 9048)]
[New Thread -1258001488 (LWP 9047)]
[New Thread -1249608784 (LWP 9046)]
[KCrash handler]
#4  0x75716564 in ?? ()
#5  0xb7ce4ce1 in KMFolderImap::flagsToStatus ()
   from /usr/lib/libkmailprivate.so
#6  0xb7d00d4f in KMFolderCachedImap::slotGetMessagesData ()
   from /usr/lib/libkmailprivate.so
#7  0xb7d02742 in KMFolderCachedImap::qt_invoke ()
   from /usr/lib/libkmailprivate.so
#8  0xb7177b57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#9  0xb5cc0c6f in KIO::TransferJob::data (this=0x8586dd0, t0=0x858d888, 
    t1=@0x858d888) at jobclasses.moc:993
#10 0xb5cc0ce8 in KIO::TransferJob::slotData (this=0x8586dd0, 
    _data=@0x858d888) at job.cpp:902
#11 0xb5d14da9 in KIO::TransferJob::qt_invoke (this=0x8586dd0, _id=18, 
    _o=0xbf830c24) at jobclasses.moc:1072
#12 0xb7177b57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#13 0xb5cbde32 in KIO::SlaveInterface::data (this=0x84853a8, t0=@0x858d888)
    at slaveinterface.moc:194
#14 0xb5d2d3b1 in KIO::SlaveInterface::dispatch (this=0x84853a8, _cmd=100, 
    rawdata=@0xbf830e20) at slaveinterface.cpp:234
#15 0xb5cd2417 in KIO::SlaveInterface::dispatch (this=0x84853a8)
    at slaveinterface.cpp:173
#16 0xb5cd700b in KIO::Slave::gotInput (this=0x84853a8) at slave.cpp:300
#17 0xb5cd71bb in KIO::Slave::qt_invoke (this=0x84853a8, _id=4, _o=0xbf830f48)
    at slave.moc:113
#18 0xb7177b57 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#19 0xb71784a5 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#20 0xb7508cbc in QSocketNotifier::activated () from /usr/lib/libqt-mt.so.3
#21 0xb7198569 in QSocketNotifier::event () from /usr/lib/libqt-mt.so.3
#22 0xb710d698 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#23 0xb710d8b6 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#24 0xb78138ae in KApplication::notify (this=0xbf831538, receiver=0x8484ca0, 
    event=0xbf831290) at kapplication.cpp:550
#25 0xb709d5e5 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#26 0xb70feac9 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/libqt-mt.so.3
#27 0xb70b1334 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#28 0xb7125da2 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#29 0xb7125ccb in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#30 0xb710c225 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#31 0x0804a098 in ?? ()
#32 0xbf831538 in ?? ()
#33 0xbf831724 in ?? ()
#34 0x00000000 in ?? ()
--END--
Comment 2 Stephan Binner 2006-01-17 10:42:16 UTC
I experienced the same crash as the latter yesterday, and have debug infos:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1247811168 (LWP 26503)]
[New Thread -1278329936 (LWP 26507)]
[New Thread -1269941328 (LWP 26506)]
[New Thread -1261552720 (LWP 26505)]
[New Thread -1253164112 (LWP 26504)]
[KCrash handler]
#3  0x74736e6f in ?? ()
#4  0xb7b929c1 in KMFolderImap::flagsToStatus (msg=0x881af30, flags=1, 
    newMsg=true) at kmfolderimap.cpp:1367
#5  0xb7df6e47 in KMFolderCachedImap::slotGetMessagesData (this=0x834a1c8, 
    job=0x883a9c8, data=@0xbf966ea0) at kmfoldercachedimap.cpp:1458
#6  0xb7e026c2 in KMFolderCachedImap::qt_invoke (this=0x834a1c8, _id=9, 
    _o=0xbf966ba0) at kmfoldercachedimap.moc:372
#7  0xb734b249 in QObject::activate_signal (this=0x883a9c8, clist=0x8d880c0, 
    o=0xbf966ba0) at qobject.cpp:2356
#8  0xb63a5d6d in KIO::TransferJob::data (this=0x883a9c8, t0=0x883a9c8, 
    t1=@0xbf966ea0) at jobclasses.moc:993
#9  0xb63a5df8 in KIO::TransferJob::slotData (this=0x883a9c8, 
    _data=@0xbf966ea0) at job.cpp:902
#10 0xb63e46f9 in KIO::TransferJob::qt_invoke (this=0x883a9c8, _id=18, 
    _o=0xbf966c94) at jobclasses.moc:1072
#11 0xb734b249 in QObject::activate_signal (this=0x8618ff8, clist=0x86683e8, 
    o=0xbf966c94) at qobject.cpp:2356
#12 0xb63a903e in KIO::SlaveInterface::data (this=0x8618ff8, t0=@0xbf966ea0)
    at slaveinterface.moc:194
#13 0xb64140a5 in KIO::SlaveInterface::dispatch (this=0x8618ff8, _cmd=100, 
    rawdata=@0xbf966ea0) at slaveinterface.cpp:234
#14 0xb6401848 in KIO::SlaveInterface::dispatch (this=0x8618ff8)
    at slaveinterface.cpp:173
#15 0xb63b6e7b in KIO::Slave::gotInput (this=0x8618ff8) at slave.cpp:300
#16 0xb64034c0 in KIO::Slave::qt_invoke (this=0x8618ff8, _id=4, _o=0xbf966fb4)
    at slave.moc:113
#17 0xb734b249 in QObject::activate_signal (this=0x85d38a0, clist=0x8588140, 
    o=0xbf966fb4) at qobject.cpp:2356
#18 0xb734b912 in QObject::activate_signal (this=0x85d38a0, signal=2, param=16)
    at qobject.cpp:2449
#19 0xb768a410 in QSocketNotifier::activated (this=0x85d38a0, t0=16)
    at moc_qsocketnotifier.cpp:85
#20 0xb73691a0 in QSocketNotifier::event (this=0x85d38a0, e=0xbf967258)
    at qsocketnotifier.cpp:258
#21 0xb72eb967 in QApplication::internalNotify (this=0xbf967464, 
    receiver=0x85d38a0, e=0xbf967258) at qapplication.cpp:2636
#22 0xb72ec651 in QApplication::notify (this=0xbf967464, receiver=0x85d38a0, 
    e=0xbf967258) at qapplication.cpp:2359
#23 0xb79ab00e in KApplication::notify (this=0xbf967464, receiver=0x85d38a0, 
    event=0xbf967258) at kapplication.cpp:552
#24 0xb72e0421 in QEventLoop::activateSocketNotifiers (this=0x816eea8)
    at qapplication.h:520
#25 0xb729a7ce in QEventLoop::processEvents (this=0x816eea8, flags=4)
    at qeventloop_x11.cpp:383
#26 0xb7302741 in QEventLoop::enterLoop (this=0x816eea8) at qeventloop.cpp:198
#27 0xb73025be in QEventLoop::exec (this=0x816eea8) at qeventloop.cpp:145
#28 0xb72eb3ff in QApplication::exec (this=0xbf967464) at qapplication.cpp:2759
#29 0x0804a0c4 in main (argc=-1209623632, argv=0xb7b92c40)
    at /usr/src/debug/kdepim-3.5.0/kmail/main.cpp:110
#30 0xb6eeb748 in __libc_start_main () from /lib/libc.so.6
#31 0x08049e41 in _start ()
Comment 3 Stephan Binner 2006-01-17 14:18:00 UTC

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