Bug 211594

Summary: the imap resource crashes when KDE is starting. [QString, ImapAccount::server, ImapResource::rootRemoteId]
Product: [Frameworks and Libraries] Akonadi Reporter: Christophe Marin <christophe>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, vkrause
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christophe Marin 2009-10-23 23:00:46 UTC
Application: akonadi_imap_resource (0.1)
KDE Version: 4.3.72 (KDE 4.3.72 (KDE 4.4 >= 20091015)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31.3-1-default i686
Distribution: "openSUSE 11.2 RC 1 (i586)"

What I was doing when the application crashed:
The imap resource crashes when KDE starts. I suppose this is caused by kwallet requiring a password to access the wallets.

I suppose the steps to reproduce are this: 
- KOrgac starts akonadi (I also set up a calendar resource),
- The IMAP resource tries to access the wallet,
- Kwallet prompts for the password,
- The IMAP resource crashes.

Here's the bt.


 -- Backtrace:
Application: Akonadi Resource (akonadi_imap_resource), signal: Segmentation fault
[KCrash Handler]
#6  0x0804af85 in QString (this=0xbf8389a0, other=...) at /usr/include/QtCore/qstring.h:713
#7  0x0804f922 in ImapAccount::server (this=0x0) at /kde/src/KDE/kdepim-runtime/resources/imap/imapaccount.cpp:130
#8  0x0805fc30 in ImapResource::rootRemoteId (this=0x82275b0) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1584
#9  0x0805ff40 in ImapResource::mailBoxForCollection (this=0x82275b0, col=...) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1595
#10 0x08060117 in ImapResource::mailBoxForCollection (this=0x82275b0, col=...) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1598
#11 0x08054cb6 in ImapResource::itemChanged (this=0x82275b0, item=..., parts=...) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:362
#12 0xb76b4a26 in Akonadi::AgentBasePrivate::itemChanged (this=0x8228768, item=..., partIdentifiers=...) at /kde/src/KDE/kdepimlibs/akonadi/agentbase.cpp:268
#13 0xb76b86b1 in Akonadi::AgentBasePrivate::qt_metacall (this=0x8228768, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf838d04) at /kde/build/KDE/kdepimlibs/akonadi/agentbase_p.moc:100
#14 0xb752bc7d in QMetaObject::metacall (object=0x8228768, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xbf838d04) at kernel/qmetaobject.cpp:237
#15 0xb753ada6 in QMetaObject::activate (sender=0x8218498, m=0xb786efec, local_signal_index=0, argv=0xbf838d04) at kernel/qobject.cpp:3391
#16 0xb77560f7 in Akonadi::Monitor::itemChanged (this=0x8218498, _t1=..., _t2=...) at /kde/build/KDE/kdepimlibs/akonadi/monitor.moc:160
#17 0xb7758fd4 in Akonadi::MonitorPrivate::emitItemNotification (this=0x8226160, msg=..., item=..., collection=..., collectionDest=...) at /kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:326
#18 0xb7758267 in Akonadi::MonitorPrivate::emitNotification (this=0x8226160, msg=...) at /kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:195
#19 0xb775833a in Akonadi::MonitorPrivate::dataAvailable (this=0x8226160) at /kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:204
#20 0xb7756093 in Akonadi::Monitor::qt_metacall (this=0x8218498, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0xbf838f1c) at /kde/build/KDE/kdepimlibs/akonadi/monitor.moc:148
#21 0xb76d4d40 in Akonadi::ChangeRecorder::qt_metacall (this=0x8218498, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0xbf838f1c) at /kde/build/KDE/kdepimlibs/akonadi/changerecorder.moc:72
#22 0xb752bc7d in QMetaObject::metacall (object=0x8218498, cl=QMetaObject::InvokeMetaMethod, idx=25, argv=0xbf838f1c) at kernel/qmetaobject.cpp:237
#23 0xb753ada6 in QMetaObject::activate (sender=0x822619c, m=0xb786d7c0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3391
#24 0xb770a471 in Akonadi::EntityCacheBase::dataAvailable (this=0x822619c) at /kde/build/KDE/kdepimlibs/akonadi/entitycache_p.moc:88
#25 0xb76d8e45 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x822619c, job=0x80bd288)
    at /kde/src/KDE/kdepimlibs/akonadi/entitycache_p.h:181
#26 0xb770a42d in Akonadi::EntityCacheBase::qt_metacall (this=0x822619c, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf839098) at /kde/build/KDE/kdepimlibs/akonadi/entitycache_p.moc:77
#27 0xb752bc7d in QMetaObject::metacall (object=0x822619c, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xbf839098) at kernel/qmetaobject.cpp:237
#28 0xb753ada6 in QMetaObject::activate (sender=0x80bd288, m=0xb5f73228, local_signal_index=3, argv=0xbf839098) at kernel/qobject.cpp:3391
#29 0xb5d95473 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#30 0xb5d957c9 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#31 0xb7750bd0 in Akonadi::JobPrivate::handleResponse (this=0x815bbb8, tag=..., data=...) at /kde/src/KDE/kdepimlibs/akonadi/job.cpp:67
#32 0xb777945c in Akonadi::SessionPrivate::dataReceived (this=0x8225cc8) at /kde/src/KDE/kdepimlibs/akonadi/session.cpp:121
#33 0xb777acf0 in Akonadi::Session::qt_metacall (this=0x82286a0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf8392ac) at /kde/build/KDE/kdepimlibs/akonadi/session.moc:87
#34 0xb752bc7d in QMetaObject::metacall (object=0x82286a0, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0xbf8392ac) at kernel/qmetaobject.cpp:237
#35 0xb753ada6 in QMetaObject::activate (sender=0x8166788, m=0xb763ac48, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3391
#36 0xb758a9f5 in QIODevice::readyRead (this=0x8166788) at .moc/release-shared/moc_qiodevice.cpp:91
#37 0xb758aae8 in QIODevice::qt_metacall (this=0x8166788, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf8393fc) at .moc/release-shared/moc_qiodevice.cpp:77
#38 0xb68d8b12 in QLocalSocket::qt_metacall (this=0x8166788, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf8393fc) at .moc/release-shared/moc_qlocalsocket.cpp:81
#39 0xb752bc7d in QMetaObject::metacall (object=0x8166788, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbf8393fc) at kernel/qmetaobject.cpp:237
#40 0xb753ada6 in QMetaObject::activate (sender=0x822a150, m=0xb763ac48, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3391
#41 0xb758a9f5 in QIODevice::readyRead (this=0x822a150) at .moc/release-shared/moc_qiodevice.cpp:91
#42 0xb68d0803 in QAbstractSocketPrivate::canReadNotification (this=0x82271c8) at socket/qabstractsocket.cpp:624
#43 0xb68bd3e9 in QAbstractSocketEngine::readNotification (this=0x81dc9e8) at socket/qabstractsocketengine.cpp:154
#44 0xb68be79b in QReadNotifier::event (this=0x20, e=0xbf839864) at socket/qnativesocketengine.cpp:1047
#45 0xb6a8671c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#46 0xb6a8d5fd in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#47 0xb60ca14a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#48 0xb752691e in QCoreApplication::notifyInternal (this=0xbf83a838, receiver=0x8227328, event=0xbf839864) at kernel/qcoreapplication.cpp:704
#49 0xb7555cea in QCoreApplication::sendEvent (this=0x80bd760) at kernel/qcoreapplication.h:215
#50 QEventDispatcherUNIX::activateSocketNotifiers (this=0x80bd760) at kernel/qeventdispatcher_unix.cpp:892
#51 0xb7555fdb in QEventDispatcherUNIXPrivate::doSelect (this=0x80bd948, flags=..., timeout=0xbf8399d4) at kernel/qeventdispatcher_unix.cpp:304
#52 0xb75571df in QEventDispatcherUNIX::processEvents (this=0x80bd760, flags=) at kernel/qeventdispatcher_unix.cpp:934
#53 0xb6b3d95a in ?? () from /usr/lib/libQtGui.so.4
#54 0xb7524fcd in QEventLoop::processEvents (this=0xbf839ca4, flags=) at kernel/qeventloop.cpp:149
#55 0xb7525419 in QEventLoop::exec (this=0xbf839ca4, flags=...) at kernel/qeventloop.cpp:201
#56 0xb616925c in KWallet::Wallet::openWallet(QString const&, unsigned long, KWallet::Wallet::OpenType) () from /usr/lib/libkdeui.so.5
#57 0x0806bb75 in Settings::password (this=0x8231448, userRejected=0xbf839d9b) at /kde/src/KDE/kdepim-runtime/resources/imap/settings.cpp:75
#58 0x08053e1a in ImapResource::startConnect (this=0x82275b0, forceManualAuth=false) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:247
#59 0x080604da in ImapResource::doSetOnline (this=0x82275b0, online=true) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1630
#60 0xb76b7193 in Akonadi::AgentBase::setOnline (this=0x82275b0, state=true) at /kde/src/KDE/kdepimlibs/akonadi/agentbase.cpp:574
#61 0xb76b47b7 in Akonadi::AgentBasePrivate::delayedInit (this=0x8228768) at /kde/src/KDE/kdepimlibs/akonadi/agentbase.cpp:254
#62 0xb7768181 in Akonadi::ResourceBasePrivate::delayedInit (this=0x8228768) at /kde/src/KDE/kdepimlibs/akonadi/resourcebase.cpp:78
#63 0xb76b819f in Akonadi::AgentBase::qt_metacall (this=0x82275b0, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbf83a06c) at /kde/build/KDE/kdepimlibs/akonadi/agentbase.moc:115
#64 0xb7767ae2 in Akonadi::ResourceBase::qt_metacall (this=0x82275b0, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbf83a06c) at /kde/build/KDE/kdepimlibs/akonadi/resourcebase.moc:104
#65 0x08061562 in ImapResource::qt_metacall (this=0x82275b0, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbf83a06c) at /kde/build/KDE/kdepim-runtime/resources/imap/imapresource.moc:148
#66 0xb752bc7d in QMetaObject::metacall (object=0x82275b0, cl=QMetaObject::InvokeMetaMethod, idx=15, argv=0xbf83a06c) at kernel/qmetaobject.cpp:237
#67 0xb753ada6 in QMetaObject::activate (sender=0x821a110, m=0xb763a1a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3391
#68 0xb7542725 in QSingleShotTimer::timeout (this=0x821a110) at .moc/release-shared/qtimer.moc:82
#69 0xb754285c in QSingleShotTimer::timerEvent (this=0x821a110) at kernel/qtimer.cpp:308
#70 0xb75374c4 in QObject::event (this=0x821a110, e=0x20) at kernel/qobject.cpp:1202
#71 0xb6a8671c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#72 0xb6a8d5fd in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#73 0xb60ca14a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#74 0xb752691e in QCoreApplication::notifyInternal (this=0xbf83a838, receiver=0x821a110, event=0xbf83a534) at kernel/qcoreapplication.cpp:704
#75 0xb7556aee in QCoreApplication::sendEvent (this=0x80bdfe8) at kernel/qcoreapplication.h:215
#76 QTimerInfoList::activateTimers (this=0x80bdfe8) at kernel/qeventdispatcher_unix.cpp:617
#77 0xb75571ef in QEventDispatcherUNIX::processEvents (this=0x80bd760, flags=) at kernel/qeventdispatcher_unix.cpp:938
#78 0xb6b3d95a in ?? () from /usr/lib/libQtGui.so.4
#79 0xb7524fcd in QEventLoop::processEvents (this=0xbf83a7a4, flags=) at kernel/qeventloop.cpp:149
#80 0xb7525419 in QEventLoop::exec (this=0xbf83a7a4, flags=...) at kernel/qeventloop.cpp:201
#81 0xb7529550 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#82 0xb6a867c4 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#83 0xb77647d4 in Akonadi::ResourceBase::init (r=0x82275b0) at /kde/src/KDE/kdepimlibs/akonadi/resourcebase.cpp:219
#84 0x080663ff in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbf83a924) at /kde/inst/kdepimlibs/include/akonadi/resourcebase.h:186
#85 0x080614a0 in main (argc=3, argv=0xbf83a924) at /kde/src/KDE/kdepim-runtime/resources/imap/imapresource.cpp:1769

Reported using DrKonqi
Comment 1 Christophe Marin 2009-10-23 23:06:33 UTC
note: as long as I don't open the wallet manually, the imap resource will be caught in a crash loop (close drkonqi -> prompt for the wallet password -> crashes immediately -> close drkonqi -> ...)
Comment 2 Dario Andres 2009-10-24 03:17:27 UTC
The backtrace seems related to the one in bug 211058...
Comment 3 Kevin Ottens 2009-10-27 19:09:15 UTC

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