Bug 74591 - kmail crashes after retrieving imap folders
Summary: kmail crashes after retrieving imap folders
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
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-02-08 17:06 UTC by Farhan Ahmed
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Farhan Ahmed 2004-02-08 17:06:46 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.2.3 
OS:          Linux

When I specified an imap server to Kmail, it retrieved the entire directory structure of my home directory on the specified server. Unfortunately, there were thousands of files and subdirectories on the server and KMail prompted me with numerous "Unreadable folder" messages to the point that it crashed (after 86th pop up message). Now when I try to start Kmail, it gives me the following error on the console:

-------------
bash-2.05b$ kmail
QSettings::sync: filename is null/empty
kdecore (KAccel): WARNING: KKeySequence::init( seq ): key[0] is null.
kdecore (KAccel): WARNING: KKeySequence::init( seq ): key[0] is null.
kmail: WARNING: KMFolderImap::processNewMail - imapPath of bin is empty!
kmail: WARNING: KMFolderImap::processNewMail - imapPath of cprog is empty!
*** KMail got signal 11 (Crashing)
ERROR: Communication problem with kmail, it probably crashed.
-------------

The backtrace gives the following:

-------------
(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)...[New Thread 16384 (LWP 26426)]

0x41bfd137 in waitpid () from /lib/libpthread.so.0
#0  0x41bfd137 in waitpid () from /lib/libpthread.so.0
#1  0x412b357e in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#2  0x41bfbfea in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x4026f5ef in KMAcctImap::processNewMail(bool) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#5  0x4021add9 in KMAcctMgr::processNextCheck(bool) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#6  0x4021a9b3 in KMAcctMgr::singleCheckMail(KMAccount*, bool) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#7  0x4021b393 in KMAcctMgr::checkMail(bool) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#8  0x40312b5f in KMMainWidget::slotCheckMail() ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#9  0x40310a24 in KMMainWidget::readConfig() ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#10 0x4030f0f7 in KMMainWidget::KMMainWidget(QWidget*, char const*, KActionCollection*, KConfig*) () from /usr/kde/3.2/lib/libkmailprivate.so.0
#11 0x40134e10 in KMMainWin::KMMainWin(QWidget*) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#12 0x402a5890 in KMKernel::openReader() ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#13 0x402aafd8 in KMKernel::action(bool, bool, QString const&, QString const&, QString const&, QString const&, QString const&, KURL const&, KURL::List const&)
    () from /usr/kde/3.2/lib/libkmailprivate.so.0
#14 0x402a556e in KMKernel::handleCommandLine(bool) ()
   from /usr/kde/3.2/lib/libkmailprivate.so.0
#15 0x08049f44 in QObject::checkConnectArgs(char const*, QObject const*, char const*) ()
#16 0x412d1e47 in KUniqueApplication::processDelayed() ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#17 0x412d22a9 in KUniqueApplication::qt_invoke(int, QUObject*) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#18 0x4166b240 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#19 0x41985292 in QSignal::signal(QVariant const&) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#20 0x41685178 in QSignal::activate() () from /usr/qt/3/lib/libqt-mt.so.3
#21 0x4168c6f3 in QSingleShotTimer::event(QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0x416103d5 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#23 0x4160f7c5 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#24 0x41225b1c in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.2/lib/libkdecore.so.4
#25 0x415ffb2d in QEventLoop::activateTimers() ()
   from /usr/qt/3/lib/libqt-mt.so.3
#26 0x415bcb84 in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#27 0x41623636 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#28 0x416234d8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#29 0x41610621 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#30 0x0804a0f0 in QObject::checkConnectArgs(char const*, QObject const*, char const*) ()
#31 0x41d537a7 in __libc_start_main () from /lib/libc.so.6
-------------

The .xsession-errors has the following relevant part:
-------------
kdecore (KAccel): WARNING: KKeySequence::init( seq ): key[0] is null.
kdecore (KAccel): WARNING: KKeySequence::init( seq ): key[0] is null.
kmail: WARNING: KMFolderImap::processNewMail - imapPath of archive is empty!
kmail: WARNING: KMFolderImap::processNewMail - imapPath of backup is empty!
*** KMail got signal 11 (Crashing)
DCOP aborting (delayed) call from 'anonymous-26377' to 'kmail'
ERROR: Communication problem with kmail, it probably crashed.
-------------

What could be the problem? The imap server is running the following:

--------------------
bash-2.05b$ telnet mail.cs.lafayette.edu 143
Trying 139.147.204.10...
Connected to mail.cs.lafayette.edu.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] mail.cs.lafayette.edu IMAP4rev1 2001.315rh at Sun, 8 Feb 2004 11:04:35 -0500 (EST)
---------------------
Comment 1 Carsten Burghardt 2004-02-09 18:37:37 UTC
CVS commit by burghard: 

Set the child to null so that nobody and nothing tries to access the folderdir.
CCMAIL: 74591-done@bugs.kde.org


  M +1 -0      kmfolder.cpp   1.295.4.1


--- kdepim/kmail/kmfolder.cpp  #1.295:1.295.4.1
@@ -720,4 +720,5 @@ int KMFolder::remove()
   assert(!name().isEmpty());
 
+  mChild = 0;
   clearIndex(true, true); // delete and remove from dict
   close(TRUE);