Bug 73667 - crash on kmail startup after requesting passwords for imap boxes
Summary: crash on kmail startup after requesting passwords for imap boxes
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.6
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 70465 77145 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-28 09:24 UTC by basur
Modified: 2007-09-14 12:17 UTC (History)
3 users (show)

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 basur 2004-01-28 09:24:43 UTC
Version:           1.6 (using KDE 3.2.0 RC1, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-99-athlon

Kontact crashes on startup, if it requests passwords for more than one imap mailbox, before the main window is displayed.
When entering one or more of the required password Kontact crashes, i suggest because of KMail.
If I cancel ALL password dialogs it starts without a problem but as soon as I confirm just one with a valid password it crashes.
This problem only occurs when being asked for more than one imap password.

The program is running on SuSE 9.0 with preompiled packages of KDE3.2RC1 for SuSE.

Here is the crash report:
[New Thread 16384 (LWP 1767)]
0x414a7a86 in waitpid () from /lib/i686/libpthread.so.0
#0  0x414a7a86 in waitpid () from /lib/i686/libpthread.so.0
#1  0x409b0c1a in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x414a696c in __pthread_sighandler () from /lib/i686/libpthread.so.0
#3  <signal handler called>
#4  0x40ec4476 in QListViewItem::QListViewItem(QListViewItem*, QString, QString, QString, QString, QString, QString, QString, QString) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#5  0x406ec2e7 in KListViewItem::KListViewItem(QListViewItem*, QString, QString, QString, QString, QString, QString, QString, QString) ()
   from /opt/kde3/lib/libkdeui.so.4
#6  0x424f9a08 in KFolderTreeItem::KFolderTreeItem(KFolderTreeItem*, QString const&, KFolderTreeItem::Protocol, KFolderTreeItem::Type, int, int) ()
   from /opt/kde3/lib/libkdenetwork.so.2
#7  0x41db4aa5 in KMFolderTreeItem::KMFolderTreeItem(KFolderTreeItem*, QString const&, KMFolder*) () from /opt/kde3/lib/libkmailprivate.so.0
#8  0x41db7670 in KMFolderTree::addDirectory(KMFolderDir*, KMFolderTreeItem*)
    () from /opt/kde3/lib/libkmailprivate.so.0
#9  0x41db77ec in KMFolderTree::addDirectory(KMFolderDir*, KMFolderTreeItem*)
    () from /opt/kde3/lib/libkmailprivate.so.0
#10 0x41db70ad in KMFolderTree::reload(bool) ()
   from /opt/kde3/lib/libkmailprivate.so.0
#11 0x41dbbef3 in KMFolderTree::toggleColumn(int, bool) ()
   from /opt/kde3/lib/libkmailprivate.so.0
#12 0x41f3cd76 in KMMainWidget::readConfig() ()
   from /opt/kde3/lib/libkmailprivate.so.0
#13 0x41f3bd7e in KMMainWidget::KMMainWidget(QWidget*, char const*, KActionCollection*, KConfig*) () from /opt/kde3/lib/libkmailprivate.so.0
#14 0x41bf1fcf in KMailPart::KMailPart(QWidget*, char const*, QObject*, char const*, QStringList const&) () from /opt/kde3/lib/kde3/libkmailpart.so.1
#15 0x41bf3e80 in KDEPrivate::ConcreteFactory<KMailPart, QObject>::create(QWidget*, char const*, QObject*, char const*, QStringList const&, KDEPrivate::Type2Type<KParts::Part>) () from /opt/kde3/lib/kde3/libkmailpart.so.1
#16 0x41bf3e1b in KDEPrivate::ConcreteFactory<KMailPart, QObject>::create(QWidget*, char const*, QObject*, char const*, char const*, QStringList const&) ()
   from /opt/kde3/lib/kde3/libkmailpart.so.1
#17 0x41bf3d08 in KParts::GenericFactory<KMailPart>::createPartObject(QWidget*, char const*, QObject*, char const*, char const*, QStringList const&) ()
   from /opt/kde3/lib/kde3/libkmailpart.so.1
#18 0x4013e66f in KParts::Factory::createPart(QWidget*, char const*, QObject*, char const*, char const*, QStringList const&) ()
   from /opt/kde3/lib/libkparts.so.2
#19 0x40106046 in KParts::ReadOnlyPart* KParts::ComponentFactory::createPartInstanceFromFactory<KParts::ReadOnlyPart>(KParts::Factory*, QWidget*, char const*, QObject*, char const*, QStringList const&) ()
   from /opt/kde3/lib/libkpinterfaces.so.1
#20 0x40105f89 in KParts::ReadOnlyPart* KParts::ComponentFactory::createPartInstanceFromLibrary<KParts::ReadOnlyPart>(char const*, QWidget*, char const*, QObject*, char const*, QStringList const&, int*) ()
   from /opt/kde3/lib/libkpinterfaces.so.1
#21 0x401038a5 in Kontact::Core::createPart(char const*) ()
   from /opt/kde3/lib/libkpinterfaces.so.1
#22 0x401046d1 in Kontact::Plugin::loadPart() ()
   from /opt/kde3/lib/libkpinterfaces.so.1
#23 0x41b19fd5 in KMailPlugin::createPart() ()
   from /opt/kde3/lib/kde3/libkontact_kmailplugin.so
#24 0x401048f2 in Kontact::Plugin::part() ()
   from /opt/kde3/lib/libkpinterfaces.so.1
#25 0x0805c0fa in Kontact::MainWindow::selectPlugin(Kontact::Plugin*) ()
#26 0x0805c77c in Kontact::MainWindow::loadSettings() ()
#27 0x0805a7c4 in Kontact::MainWindow::MainWindow() ()
#28 0x08059a38 in KontactApp::newInstance() ()
#29 0x409cd09d in KUniqueApplication::processDelayed() ()
   from /opt/kde3/lib/libkdecore.so.4
#30 0x409cd4ec in KUniqueApplication::qt_invoke(int, QUObject*) ()
   from /opt/kde3/lib/libkdecore.so.4
#31 0x40dea9db in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#32 0x4112acca in QSignal::signal(QVariant const&) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x40e05768 in QSignal::activate() () from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0x40e0d1b3 in QSingleShotTimer::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x40d89826 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x40d88b4e in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x40930464 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#38 0x40d75f73 in QEventLoop::activateTimers() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0x40d2fd77 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0x40d9c280 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#41 0x40d9c176 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#42 0x40d89abf in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#43 0x08059c9c in main ()
Comment 1 Matt Rogers 2004-02-04 02:24:00 UTC
Subject: kdenetwork/kopete/plugins/webpresence

CVS commit by mattr: 

Fix bug 73667. Check and make sure that the account object is valid before
reconnecting the signals. Can happen after accountUnregistered is called.

CCMAIL: 73667@bugs.kde.org


  M +1 -1      webpresenceplugin.cpp   1.43


--- kdenetwork/kopete/plugins/webpresence/webpresenceplugin.cpp  #1.42:1.43
@@ -107,5 +107,5 @@ void WebPresencePlugin::listenToAllAccou
 void WebPresencePlugin::listenToAccount( KopeteAccount* account )
 {
-        if(account->myself())
+        if(account && account->myself())
         {
                 // Connect to the account's status changed signal


Comment 2 Matt Rogers 2004-02-04 02:26:22 UTC
heh, sorry. i was dyslexic. (it was supposed to be 73677)
Comment 3 joaobr 2004-02-27 23:53:20 UTC
This is also happening on FreeBSD 4.9R+S and 5.2.1-RC and KDE-3.2
More specific this is happening only if you have more then one account in kmail
Also happens only if the first account has its password not saved in kmail
Soon all passwords are saved this problem goes away
the crash is exactly after confirming the password
This does not happen with pop accounts nly when IMAP is chosen
Comment 4 arutha 2004-03-09 16:41:58 UTC
I want to confirm, this still happens here for me. I don't know but a bug like this was already present in KDE 3.1 and was fixed there (IIRC).

Im running KDE 3.2.0, Gentoo, gcc 2.95.3, glibc 2.2.5

I can provide a backtrace if you need another from Final 3.2.0.
Comment 5 Dan Allen 2004-03-10 07:27:27 UTC
I think that this is fixed in KDE 3.2.1.  Can you confirm with a Konstruct 
build (it really is easy to get running in your home directory) that this bug 
is not the very one solved but this release?

Comment 6 basur 2004-03-11 10:36:39 UTC
Hi, I've tried KDE3.2.1 with KMail 1.6.1 now, but the problem still exists.

I also recognized that the problem now just appears if during the last session of KMail a IMAP folder has been selected.
It seems to crash when changing to that folder after requesting the passwords.

If you cancel the password dialogs, KMail starts in normal Inbox and if you have like me 2 IMAP accounts, KMail starts perfectly if you cancel one of the two password dialogs.
Comment 7 Carsten Burghardt 2004-05-04 23:40:52 UTC
*** Bug 70465 has been marked as a duplicate of this bug. ***
Comment 8 Carsten Burghardt 2004-05-04 23:47:47 UTC
*** Bug 77145 has been marked as a duplicate of this bug. ***
Comment 9 basur 2004-05-12 15:22:03 UTC
I have tried KDE 3.2.2 now on my computer with the precompiled packages for SuSE Linux 9.0 and the problem no longer occurs.

KMail does no longer crash when handling more then one IMAP Account.

Thanks.
Comment 10 Iñaki Baz Castillo 2006-01-11 15:32:02 UTC
I have my own email server with Postfix + Cyrus Imap. I have an IMAP account configured in Kmail.

If I change my account password in SASL database Kmail ask me for name and password. If I insert a bad password the same pop-up appears (Ok).
But if I press cancel in the pop-up, Kmail crashes (becomes blank for long time and consume 90% of CPU).

It occurs every times if I press cancel in that pop-up.