Bug 275830

Summary: KMail crashed on first run after adding IMAP account
Product: [Applications] kmail2 Reporter: Alex Merry <alex.merry>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 2.0.95   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alex Merry 2011-06-16 18:13:49 UTC
Application: kmail (2.0.95)
KDE Platform Version: 4.6.80 (4.7 Beta1)
Qt Version: 4.7.3
Operating System: Linux 2.6.39-ARCH x86_64

-- Information about the crash:
- What I was doing when the application crashed:

I ran KMail for the first time (with no existing KMail1 settings), and stepped through creating an IMAP account when the wizard came up (entering server settings manually).  Just before the wizard finished (ie: just before it became possible to click "Finish"), KMail crashed (but the wizard didn't).


Console output:

[ stuff about KPIMIdentities::Identity::writeConfig ]
kmail2(16577)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::slotTransportsChanged:
kmail2(16577)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::readConfig: reloading existing transport:
 "Transport 61594741"
kmail2(16577)/kdepimlibs (mailtransport) MailTransport::Transport::usrReadConfig: type 0
kmail2(16577)/kdepimlibs (kpimidentities) KPIMIdentities::IdentityManager::slotIdentitiesChanged:  KPIMIdentities::Identit
yManager::slotIdentitiesChanged : ":1.4274//KPIMIDENTITIES_IdentityManager"
kmail2(16577)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::slotTransportsChanged:
kmail2(16577)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::readConfig: reloading existing transport:
 "Transport 61594741"
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::slotTransportsChanged:
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::readConfig: reloading existing tra
nsport: "Transport 61594741"
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::Transport::usrReadConfig: type 0
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::slotTransportsChanged:
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::readConfig: reloading existing tra
nsport: "Transport 61594741"
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::Transport::usrReadConfig: type 0
accountwizard(16593)/kdepimlibs (kpimidentities) KPIMIdentities::IdentityManager::slotIdentitiesChanged:  KPIMIdentities::
IdentityManager::slotIdentitiesChanged : ":1.4274//KPIMIDENTITIES_IdentityManager"
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::slotTransportsChanged:
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::TransportManagerPrivate::readConfig: reloading existing transport: "Transport 61594741"
accountwizard(16593)/kdepimlibs (mailtransport) MailTransport::Transport::usrReadConfig: type 0
kmail2(16577)/kdepimlibs (mailtransport) MailTransport::Transport::usrReadConfig: type 0
akonadi_imap_resource_0(16673)/kdepimlibs (kimap) KIMAP::SessionThread::sslConnected: TLS negotiation done.
akonadi_imap_resource_0(16673)/kdepimlibs (kimap) KIMAP::LoginJob::handleResponse: Capabilities after STARTTLS:  ("IMAP4re
v1", "UIDPLUS", "CHILDREN", "NAMESPACE", "THREAD=ORDEREDSUBJECT", "THREAD=REFERENCES", "SORT", "QUOTA", "IDLE", "AUTH=PLAI
N", "ACL", "ACL2=UNION")
akonadi_imap_resource_0(16673) ImapResource::doSetOnline: online= true
akonadi_imap_resource_0(16673)/kdepimlibs (kimap) KIMAP::SessionThread::sslConnected: TLS negotiation done.
akonadi_imap_resource_0(16673)/kdepimlibs (kimap) KIMAP::LoginJob::handleResponse: Capabilities after STARTTLS:  ("IMAP4re
v1", "UIDPLUS", "CHILDREN", "NAMESPACE", "THREAD=ORDEREDSUBJECT", "THREAD=REFERENCES", "SORT", "QUOTA", "IDLE", "AUTH=PLAI
N", "ACL", "ACL2=UNION")
akonadi_imap_resource_0(16673) ImapResource::doSetOnline: online= true
akonadi_imap_resource_0(16673)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
akonadi_imap_resource_0(16673)/kdepimlibs (kimap) RetrieveCollectionMetadataTask::doStart: ".Junk"
ASSERT: "parentCollection != m_rootCollection" in file /home/kde-devel/src/kdepimlibs/akonadi/entitytreemodel_p.cpp, line 
635
*** KMail got signal 6 (Exiting)
*** Dead letters dumped.
void Akonadi::NotificationSource::serviceUnregistered(const QString&) Notification source "kmail2" now serving: () 
void Akonadi::NotificationSource::unsubscribe() "kmail2"

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f86297e9760 (LWP 16577))]

Thread 2 (Thread 0x7f860daa4700 (LWP 16587)):
#0  0x00007f86238e0a34 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f861bae60ea in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f861bae61d9 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f86238dcd40 in start_thread () from /lib/libpthread.so.0
#4  0x00007f8622ea6aed in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f86297e9760 (LWP 16577)):
[KCrash Handler]
#6  0x00007f8622e09705 in raise () from /lib/libc.so.6
#7  0x00007f8622e0ab7b in abort () from /lib/libc.so.6
#8  0x00007f8623b5ca2f in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#9  0x00007f8623b5cbaf in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f8623b5cd54 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#11 0x00007f8625f1b1e0 in Akonadi::EntityTreeModelPrivate::retrieveAncestors (this=0x1422a30, collection=...) at /home/kde-devel/src/kdepimlibs/akonadi/entitytreemodel_p.cpp:635
#12 0x00007f8625f1bbde in Akonadi::EntityTreeModelPrivate::monitoredCollectionAdded (this=0x1422a30, collection=..., parent=...) at /home/kde-devel/src/kdepimlibs/akonadi/entitytreemodel_p.cpp:730
#13 0x00007f8625f14e02 in Akonadi::EntityTreeModel::qt_metacall (this=0x1420420, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fff39762b30) at /home/kde-devel/build/kdepimlibs/akonadi/entitytreemodel.moc:161
#14 0x00007f8623c5f7fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#15 0x00007f8625f5decb in Akonadi::Monitor::collectionAdded (this=0x1402330, _t1=..., _t2=...) at /home/kde-devel/build/kdepimlibs/akonadi/monitor.moc:211
#16 0x00007f8625f624dd in Akonadi::MonitorPrivate::emitCollectionNotification (this=0x140e480, msg=..., col=..., par=..., dest=...) at /home/kde-devel/src/kdepimlibs/akonadi/monitor_p.cpp:590
#17 0x00007f8625f601ec in Akonadi::MonitorPrivate::emitNotification (this=0x140e480, msg=...) at /home/kde-devel/src/kdepimlibs/akonadi/monitor_p.cpp:281
#18 0x00007f8625ec9fde in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x140e480, msg=...) at /home/kde-devel/src/kdepimlibs/akonadi/changerecorder_p.h:60
#19 0x00007f8625f60df1 in Akonadi::MonitorPrivate::flushPipeline (this=0x140e480) at /home/kde-devel/src/kdepimlibs/akonadi/monitor_p.cpp:425
#20 0x00007f8625f60e68 in Akonadi::MonitorPrivate::dataAvailable (this=0x140e480) at /home/kde-devel/src/kdepimlibs/akonadi/monitor_p.cpp:434
#21 0x00007f8625f5dc10 in Akonadi::Monitor::qt_metacall (this=0x1402330, _c=QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fff39763020) at /home/kde-devel/build/kdepimlibs/akonadi/monitor.moc:156
#22 0x00007f8625ec983e in Akonadi::ChangeRecorder::qt_metacall (this=0x1402330, _c=QMetaObject::InvokeMetaMethod, _id=27, _a=0x7fff39763020) at /home/kde-devel/build/kdepimlibs/akonadi/changerecorder.moc:72
#23 0x00007f8623c5f7fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007f8625f081ad in Akonadi::EntityCacheBase::dataAvailable (this=0x1218120) at /home/kde-devel/build/kdepimlibs/akonadi/entitycache_p.moc:88
#25 0x00007f8625f67292 in Akonadi::EntityCache<Akonadi::Collection, Akonadi::CollectionFetchJob, Akonadi::CollectionFetchScope>::fetchResult (this=0x1218120, job=0x19661e0) at /home/kde-devel/src/kdepimlibs/akonadi/entitycache_p.h:190
#26 0x00007f8625f0817a in Akonadi::EntityCacheBase::qt_metacall (this=0x1218120, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff397631f0) at /home/kde-devel/build/kdepimlibs/akonadi/entitycache_p.moc:77
#27 0x00007f8623c5f7fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#28 0x00007f8628acf147 in KJob::result (this=0x19661e0, _t1=0x19661e0) at /home/kde-devel/build/kdelibs/kdecore/kjob.moc:194
#29 0x00007f8628ace635 in KJob::emitResult (this=0x19661e0) at /home/kde-devel/src/kdelibs/kdecore/jobs/kjob.cpp:312
#30 0x00007f8625f58c5a in Akonadi::JobPrivate::delayedEmitResult (this=0x1966210) at /home/kde-devel/src/kdepimlibs/akonadi/job.cpp:144
#31 0x00007f8625f59ddf in Akonadi::Job::qt_metacall (this=0x19661e0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x1982530) at /home/kde-devel/build/kdepimlibs/akonadi/job.moc:91
#32 0x00007f8625ed8c7d in Akonadi::CollectionFetchJob::qt_metacall (this=0x19661e0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x1982530) at /home/kde-devel/build/kdepimlibs/akonadi/collectionfetchjob.moc:75
#33 0x00007f8623c6339e in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#34 0x00007f862491e174 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x00007f8624922fe1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0x00007f862914727f in KApplication::notify (this=0x7fff39763bd0, receiver=0x19661e0, event=0x1989160) at /home/kde-devel/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#37 0x00007f8623c4cbbc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#38 0x00007f8623c4ff2f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#39 0x00007f8623c77413 in ?? () from /usr/lib/libQtCore.so.4
#40 0x00007f861859d29d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#41 0x00007f861859da78 in ?? () from /usr/lib/libglib-2.0.so.0
#42 0x00007f861859dd09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#43 0x00007f8623c77876 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#44 0x00007f86249c11be in ?? () from /usr/lib/libQtGui.so.4
#45 0x00007f8623c4bdb2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#46 0x00007f8623c4bfb7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#47 0x00007f8623c501ab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#48 0x0000000000403686 in main (argc=3, argv=0x7fff39763d68) at /home/kde-devel/src/kdepim/kmail/main.cpp:145

This bug may be a duplicate of or related to bug 274730.

Possible duplicates by query: bug 274730.

Reported using DrKonqi
Comment 1 Alex Merry 2011-06-16 18:47:49 UTC
This happened when I added another IMAP account (again from the first run wizard; KMail apparently hadn't realised anything had been set up since it had crashed before).

It didn't happen with the third account when I entered the wrong username, and so authentication failed.  However, this account also never appeared in KMail, even when the username was corrected.

It also happens when adding an account from the Account Settings dialog in KMail.

Adding a POP3 account does not crash KMail.
Comment 2 Christophe Marin 2011-07-08 09:14:10 UTC

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