Bug 77145 - kmail crashes after starting and accepting my IMAP mailbox password
Summary: kmail crashes after starting and accepting my IMAP mailbox password
Status: RESOLVED DUPLICATE of bug 73667
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 03:19 UTC by Justin Randall
Modified: 2007-09-14 12:17 UTC (History)
0 users

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 Justin Randall 2004-03-10 03:19:13 UTC
Version:           3.2.0 (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc-3.3.2 
OS:          Linux

backtrace
(no debugging symbols found)...Using host libthread_db library "/lib/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)...
0x41d6d5b8 in waitpid () from /lib/libpthread.so.0
#0  0x41d6d5b8 in waitpid () from /lib/libpthread.so.0
#1  0x41372eb4 in ?? () from /usr/kde/3.2/lib/libkdecore.so.4
#2  0x412b1390 in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#3  0x41d6c383 in __pthread_clock_settime () from /lib/libpthread.so.0
#4  <signal handler called>
#5  0x00000049 in ?? ()
#6  0x401abaa1 in KMHeaders::msgRemoved(int, QString, QString) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#7  0x401b5b18 in KMHeaders::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#8  0x41674d0c in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#9  0x401e90a3 in KMFolder::msgRemoved(int, QString, QString) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#10 0x401e5c55 in KMFolder::removeMsg(int, bool) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#11 0x4027f43a in KMFolderImap::removeMsg(int, bool) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#12 0x40284344 in KMFolderImap::slotListFolderResult(KIO::Job*) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#13 0x40289fdc in KMFolderImap::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#14 0x41674d0c in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#15 0x40d0b468 in KIO::Job::result(KIO::Job*) ()
   from /usr/kde/3.2/lib/libkio.so.4
#16 0x40cf6d0f in KIO::Job::emitResult() () from /usr/kde/3.2/lib/libkio.so.4
#17 0x40cf817e in KIO::SimpleJob::slotFinished() ()
   from /usr/kde/3.2/lib/libkio.so.4
#18 0x40cff9a2 in KIO::ListJob::slotFinished() ()
   from /usr/kde/3.2/lib/libkio.so.4
#19 0x40d0dc79 in KIO::ListJob::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.2/lib/libkio.so.4
#20 0x41674d0c in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0x41674b44 in QObject::activate_signal(int) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0x40ceb07e in KIO::SlaveInterface::finished() ()
   from /usr/kde/3.2/lib/libkio.so.4
#23 0x40ce9d4f in KIO::SlaveInterface::dispatch(int, QMemArray<char> const&) ()
   from /usr/kde/3.2/lib/libkio.so.4
#24 0x40ce9329 in KIO::SlaveInterface::dispatch() ()
   from /usr/kde/3.2/lib/libkio.so.4
#25 0x40ce6ddb in KIO::Slave::gotInput() () from /usr/kde/3.2/lib/libkio.so.4
#26 0x40ce88e0 in KIO::Slave::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.2/lib/libkio.so.4
#27 0x41674d0c in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#28 0x41674e6d in QObject::activate_signal(int, int) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#29 0x419a4ac2 in QSocketNotifier::activated(int) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#30 0x41690f30 in QSocketNotifier::event(QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#31 0x41619acf in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#32 0x41618e9b in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#33 0x4121dd4c in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#34 0x4160957a in QEventLoop::activateSocketNotifiers() ()
   from /usr/qt/3/lib/libqt-mt.so.3
#35 0x415c52a1 in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#36 0x4162bae8 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#37 0x4162b998 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#38 0x41619d21 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#39 0x0804a572 in ?? ()
#40 0xbffff430 in ?? ()
#41 0xbffff330 in ?? ()

I build with some debugging information, but sources weren't available since I installed this as part of Gentoo's KDE packages. 

There appears to be some kind of folder activity just after I enter my password and just before the crash.
Comment 1 Justin Randall 2004-03-10 05:00:11 UTC
This also happens with the latest version in CVS, same callstack. More info: it is failing when deleting removedItem in frame #6. The next address on the callstack indicates something is getting trashed. 

Also worth noting: Running the CVS version didn't take me immediately to my imap folder. The crash doesn't occur until my IMAP inbox folder is opened AND an item is being removed from the message list.
Comment 2 Justin Randall 2004-03-10 05:24:37 UTC
Stepping through the code, it's the second call to KMHeaders::msgRemoved() that causes the crash.

It may be worth noting that I have enabled, then disabled message threading, though messages still appeared to be threaded. From another workstation (at work), I read and deleted some email. KMail started crashing when I returned home.

To workaround the problem, I selected "cancel" when prompted for a password, then re-enabled "thread message headers" in the "configure kmail" "appearance" section.

I think these are the steps to reproduce:
1. enable message threading under "settings->configure kmail->appearance->headers"
2. disable message threading
3. login from another location
4. delete some threaded messages
5. login from the original location
6. open folder
Comment 3 Carsten Burghardt 2004-05-04 23:47:46 UTC

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