Bug 295387

Summary: kmail 4.4.11 crashing before starting to retrieve messages
Product: [Applications] kontact Reporter: Stefan Schwarzer <stefan.schwarzer>
Component: mailAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: landry.minoza
Priority: NOR    
Version: 4.4.11   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: stack trace
a second stack trace
kmail --nofork >kmail-out 2>&1
crash handler output

Description Stefan Schwarzer 2012-03-05 21:32:20 UTC
Created attachment 69312 [details]
stack trace

I am running kmail/kontact 4.4.11 from debian experimental. I typically just start kmail. Trying to 
retrieve mail from 2 accounts (imap from MS exchange and pop3 (gmx.net)), kmail segfaults with about 25% probability either after closing the kde wallet dialog or one of the dialogs that prompt for passwords directly. I suspect that the same error also occurs spontaneously sometimes when these accounts are checked automatically for new mail. I have had kmail crashing on my while I was typing a message, but it also just went away. Things improved by setting longer intervals between automatic checks. For me this version is basically unusable.

I'll send some terminal log when I get the next crash.

- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kmail depends on:
ii  kdebase-runtime         4:4.7.4-1
ii  kdepim-runtime          4:4.4.11.1-3
ii  kdepimlibs-kio-plugins  4:4.7.4-1
ii  libakonadi-contact4     4:4.7.4-1
ii  libakonadi-kde4         4:4.7.4-1
ii  libc6                   2.13-27
ii  libgcc1                 1:4.6.3-1
ii  libgpgme++2             4:4.7.4-1
ii  libkabc4                4:4.7.4-1
ii  libkcal4                4:4.7.4-1
ii  libkcmutils4            4:4.7.4-1
ii  libkde3support4         4:4.7.4-1
ii  libkdecore5             4:4.7.4-1
ii  libkdepim4              4:4.4.11.1+l10n-1
ii  libkdeui5               4:4.7.4-1
ii  libkhtml5               4:4.7.4-1
ii  libkimap4               4:4.7.4-1
ii  libkio5                 4:4.7.4-1
ii  libkldap4               4:4.7.4-1
ii  libkleo4                4:4.4.11.1+l10n-1
ii  libkmime4               4:4.7.4-1
ii  libknotifyconfig4       4:4.7.4-1
ii  libkontactinterface4    4:4.7.4-1
ii  libkparts4              4:4.7.4-1
ii  libkpgp4                4:4.4.11.1+l10n-1
ii  libkpimidentities4      4:4.7.4-1
ii  libkpimtextedit4        4:4.7.4-1
ii  libkpimutils4           4:4.7.4-1
ii  libkresources4          4:4.7.4-1
ii  libksieve4              4:4.4.11.1+l10n-1
ii  libktnef4               4:4.7.4-1
ii  libmailtransport4       4:4.7.4-1
ii  libmessagecore4         4:4.4.11.1+l10n-1
ii  libmessagelist4         4:4.4.11.1+l10n-1
ii  libmimelib4             4:4.4.11.1+l10n-1
ii  libnepomuk4             4:4.7.4-1
ii  libphonon4              4:4.6.0.0-1
ii  libqt4-dbus             4:4.8.0-1
ii  libqt4-network          4:4.8.0-1
ii  libqt4-qt3support       4:4.8.0-1
ii  libqt4-xml              4:4.8.0-1
ii  libqtcore4              4:4.8.0-1
ii  libqtgui4               4:4.8.0-1
ii  libstdc++6              4.6.3-1
ii  libthreadweaver4        4:4.7.4-1
ii  perl                    5.14.2-7
ii  phonon                  4:4.6.0.0-1

Versions of packages kmail recommends:
ii  gnupg-agent                   2.0.18-2
ii  gnupg2                        2.0.18-2
ii  pinentry-gtk2 [pinentry-x11]  0.8.1-1

Versions of packages kmail suggests:
pn  clamav | f-prot-installer                                 <none>
pn  kaddressbook                                              4:4.4.11.1+l10n-1
pn  kleopatra                                                 4:4.4.11.1+l10n-1
pn  procmail                                                  3.22-19
pn  spamassassin | bogofilter | annoyance-filter | spambayes  <none>
Comment 1 Stefan Schwarzer 2012-03-06 12:28:37 UTC
Created attachment 69325 [details]
a second stack trace

this is a second stack trace taken after a 'spontaneous' crash a while after startup and successful first mail retrieval. Please note that the trace seems to refer to retrieval from a pop account, which 
in this context was located behind a firewall and thus inaccessible.
#16 0x00007f88dc35cdf0 in KMail::PopAccount::qt_metacall (this=0xe04f70, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff46cb6890) at ./popaccount.moc:83
Comment 2 Stefan Schwarzer 2012-03-07 12:33:58 UTC
Created attachment 69346 [details]
kmail --nofork >kmail-out 2>&1

this is what kmail communicates to the terminal during such a crash, the most important lines 
are probably the last contained in the attachment -
  
kmail(15449)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x1818240)
kmail(15449)/kio (Scheduler) KIO::SchedulerPrivate::assignJobToSlave: KIO::Slave(0x119c620) KIO::StatJob
(0x1818240)
kmail(15449)/kio (Scheduler) KIO::SchedulerPrivate::protoQ: creating ProtoQueue instance for "http"
kmail(15449)/kio (Scheduler) KIO::ProtoQueue::ProtoQueue: m_maxConnectionsTotal: 20 m_maxConnectionsPerHost: 5
kmail(15449)/kio (Slave) KIO::Slave::createSlave: createSlave "http" for KUrl("pop3://18993429@pop.gmx.net:110")
kmail(15449)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-sts/kmailL15449.slave-socket"
kmail(15449)/kio (Scheduler) KIO::SchedulerPrivate::getConnectedSlave: KUrl("pop3://18993429@pop.gmx.net:110") KIO::Slave(0x187be60)
kmail(15449)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x187e500)
kmail(15449)/kio (Scheduler) KIO::SchedulerPrivate::assignJobToSlave: KIO::Slave(0x187be60) KIO::TransferJob(0x187e500)
*** KMail got signal 11 (Crashing)
KCrash: Application 'kmail' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
Comment 3 Landry MINOZA 2012-03-08 20:37:19 UTC
I have almost the same problem. Kmail keeps crashing at startup. Running on Debian unstable, here is the output of kmail -v:
Qt: 4.7.4
KDE Development Platform: 4.7.4 (4.7.4)
KMail: 1.13.7

Output of kmail --nofork:
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
kmail(27359) KMMsgDict::readFolderIds: Found serial number zero at index 17 in folder "/home/landry/.kde/share/apps/kmail/mail/.spam.index.ids"
kmail(27359) KMMsgDict::readFolderIds: Found serial number zero at index 18 in folder "/home/landry/.kde/share/apps/kmail/mail/.spam.index.ids"
kmail(27359) KMMsgDict::readFolderIds: Found serial number zero at index 19 in folder "/home/landry/.kde/share/apps/kmail/mail/.spam.index.ids"
kmail(27359) KMMsgDict::readFolderIds: Found serial number zero at index 4068 in folder "/home/landry/.kde/share/apps/kmail/mail/.Système.index.ids"
kmail(27359) KMMsgDict::readFolderIds: Found serial number zero at index 4069 in folder "/home/landry/.kde/share/apps/kmail/mail/.Système.index.ids"
kmail(27359) KMMsgDict::readFolderIds: Found serial number zero at index 8220 in folder "/home/landry/.kde/share/apps/kmail/mail/.inbox.directory/.old.index.ids"
kmail(27359)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kmail(27359)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kmail(27359)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory!
kmail(27359)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory!
*** KMail got signal 11 (Crashing)
KCrash: Application 'kmail' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit

I also attach the output of Dr konki
Comment 4 Landry MINOZA 2012-03-08 20:39:17 UTC
Created attachment 69389 [details]
crash handler output
Comment 5 Christophe Marin 2012-03-08 21:37:38 UTC
This version is now unmaintained. Please consider upgrading to KDE >= 4.8.1
Comment 6 Landry MINOZA 2012-03-09 06:25:42 UTC
Thank you very much for this so helpfull answer. 4.7 is 9 month old and it took this time to the debian kde team to be able to package this.
According to distrowatch, I have the choice between Arch and Gentoo to get 4.8.1...
Comment 7 Pino Toscano 2012-03-09 12:53:05 UTC

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