Bug 242698

Summary: crash when changing mail check interval
Product: [Frameworks and Libraries] Akonadi Reporter: Will Stephenson <wstephenson>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: crash CC: alex.merry, amantia, barthel.daniel, biasquez, faure, fheday, harry.w, j.mairboeck, kde, kdepim-bugs, lacsilva, p.varet, ruben.smits, thomas, vkrause, xgillet2006
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Will Stephenson 2010-06-24 17:03:39 UTC
Version:           unspecified (using Devel) 
OS:                Linux

The resource was already checking mail while I changed the check interval from 5 to 10 minutes, and immediately crashed.  Debug output follows backtrace.

Application: Akonadi Resource (akonadi_imap_resource), signal: Aborted
[Current thread is 1 (Thread 0xb4956710 (LWP 7235))]

Thread 7 (Thread 0xb12f2b70 (LWP 7261)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb581875e in poll () from /lib/libc.so.6
#2  0xb55e61db in g_poll () from /usr/lib/libglib-2.0.so.0
#3  0xb55d6286 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb55d660e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0xb7448d97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb741c11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb741c319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb7320403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb66c3c1e in KIMAP::SessionThread::run (this=0x82310a0) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#10 0xb732304f in ?? () from /usr/lib/libQtCore.so.4
#11 0xb72a9b25 in start_thread () from /lib/libpthread.so.0
#12 0xb582346e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xb1af3b70 (LWP 7478)):
#0  0xb72abff6 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0xb55d614f in ?? () from /usr/lib/libglib-2.0.so.0
#2  0xb55d660e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0xb7448d97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0xb741c11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb741c319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb7320403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0xb66c3c1e in KIMAP::SessionThread::run (this=0x87b7208) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#8  0xb732304f in ?? () from /usr/lib/libQtCore.so.4
#9  0xb72a9b25 in start_thread () from /lib/libpthread.so.0
#10 0xb582346e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xb0753b70 (LWP 7479)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb72ae452 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb732369c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7318cc4 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb732304f in ?? () from /usr/lib/libQtCore.so.4
#5  0xb72a9b25 in start_thread () from /lib/libpthread.so.0
#6  0xb582346e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xb22f4b70 (LWP 7481)):
#0  0xb568122b in clock_gettime () from /lib/librt.so.1
#1  0xb744575c in ?? () from /usr/lib/libQtCore.so.4
#2  0xb7449b16 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb744856b in ?? () from /usr/lib/libQtCore.so.4
#4  0xb55d50c0 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#5  0xb55d5f22 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb55d660e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#7  0xb7448d97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb741c11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb741c319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb7320403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#11 0xb66c3c1e in KIMAP::SessionThread::run (this=0x83a6cc0) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#12 0xb732304f in ?? () from /usr/lib/libQtCore.so.4
#13 0xb72a9b25 in start_thread () from /lib/libpthread.so.0
#14 0xb582346e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xaff52b70 (LWP 7482)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb72ae452 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb732369c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7318cc4 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb732304f in ?? () from /usr/lib/libQtCore.so.4
#5  0xb72a9b25 in start_thread () from /lib/libpthread.so.0
#6  0xb582346e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xaf751b70 (LWP 7483)):
#0  0xb568122b in clock_gettime () from /lib/librt.so.1
#1  0xb744575c in ?? () from /usr/lib/libQtCore.so.4
#2  0xb7449b16 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb744856b in ?? () from /usr/lib/libQtCore.so.4
#4  0xb55d50c0 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#5  0xb55d5f22 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb55d660e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#7  0xb7448d97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb741c11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb741c319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb7320403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#11 0xb66c3c1e in KIMAP::SessionThread::run (this=0xb857128) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#12 0xb732304f in ?? () from /usr/lib/libQtCore.so.4
#13 0xb72a9b25 in start_thread () from /lib/libpthread.so.0
#14 0xb582346e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4956710 (LWP 7235)):
[KCrash Handler]
#7  0xffffe430 in __kernel_vsyscall ()
#8  0xb577b7ff in raise () from /lib/libc.so.6
#9  0xb577d140 in abort () from /lib/libc.so.6
#10 0xb731a76a in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#11 0xb731a96f in ?? () from /usr/lib/libQtCore.so.4
#12 0xb731aa88 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#13 0xb731ab05 in qt_assert(char const*, char const*, int) () from /usr/lib/libQtCore.so.4
#14 0x08069c1b in QList<long long>::first (this=0x817c56c) at /usr/include/QtCore/qlist.h:263
#15 0x08093b49 in QList<long long>::takeFirst() ()
#16 0x08091cbb in SessionPool::declareSessionReady (this=0x817c548, session=0x8219fd0) at /space/kde/sources/trunk/KDE/kdepim/runtime/resources/imap/sessionpool.cpp:172
#17 0x08092704 in SessionPool::onLoginDone (this=0x817c548, job=0x8765610) at /space/kde/sources/trunk/KDE/kdepim/runtime/resources/imap/sessionpool.cpp:293
#18 0x080934c7 in SessionPool::qt_metacall (this=0x817c548, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbf9f4128) at /space/kde/builds/trunk/KDE/kdepim/runtime/resources/imap/sessionpool.moc:111
#19 0xb7422efd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#20 0xb7431fe8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#21 0xb5b16990 in KJob::result (this=0x8765610, _t1=0x8765610) at /space/kde/builds/trunk/KDE/kdelibs/kdecore/kjob.moc:194
#22 0xb5b15f9f in KJob::emitResult (this=0x8765610) at /space/kde/sources/trunk/KDE/kdelibs/kdecore/jobs/kjob.cpp:312
#23 0xb66b7e04 in KIMAP::LoginJob::handleResponse (this=0x8765610, response=...) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/loginjob.cpp:318
#24 0xb66bfe05 in KIMAP::SessionPrivate::responseReceived (this=0x8111680, response=...) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/session.cpp:243
#25 0xb66c09d6 in KIMAP::Session::qt_metacall (this=0x8219fd0, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x83bd070) at /space/kde/builds/trunk/KDE/kdepimlibs/kimap/session.moc:103
#26 0xb7422efd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#27 0xb742c945 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#28 0xb742f93f in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#29 0xb6955c64 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0xb695dbf7 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#31 0xb5f4f486 in KApplication::notify (this=0xbf9f4b38, receiver=0x8219fd0, event=0x829d3c0) at /space/kde/sources/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:309
#32 0xb741ce0e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#33 0xb74209b4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#34 0xb7420b9c in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#35 0xb744883d in ?? () from /usr/lib/libQtCore.so.4
#36 0xb55d5b49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb55d6350 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb55d660e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb7448d4b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb6a0619a in ?? () from /usr/lib/libQtGui.so.4
#41 0xb741c11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb741c319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#43 0xb7420c70 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#44 0xb6953164 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#45 0xb76f3cce in Akonadi::ResourceBase::init (r=0x817db88) at /space/kde/sources/trunk/KDE/kdepimlibs/akonadi/resourcebase.cpp:245
#46 0x0806d246 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbf9f4c14) at /space/kde/installs/trunk/include/akonadi/resourcebase.h:186
#47 0x08067939 in main (argc=3, argv=0xbf9f4c14) at /space/kde/sources/trunk/KDE/kdepim/runtime/resources/imap/imapresource.cpp:2017

/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.gtkpod-devel"  should be:  30  current:  30
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::retrieveItems: ".intapp"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::triggerExpunge: "INBOX.lists.intapp"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 572 EXISTS
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.intapp"  should be:  572  current:  572
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::retrieveItems: ".kde-packager"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::triggerExpunge: "INBOX.lists.kde-packager"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 1276 EXISTS
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.kde-packager"  should be:  1276  current:  1276
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::retrieveItems: ".kdepim-meeting"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::triggerExpunge: "INBOX.lists.kdepim-meeting"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 730 EXISTS
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.kdepim-meeting"  should be:  730  current:  730
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::retrieveItems: ".linux-desktop"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::triggerExpunge: "INBOX.lists.linux-desktop"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 904 EXISTS
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.linux-desktop"  should be:  904  current:  904
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) SetupServer::slotSafetyChanged: serverTest null
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) SetupServer::slotSafetyChanged: serverTest null
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) SetupServer::slotSafetyChanged: serverTest null
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "Clear text"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "LOGIN"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "PLAIN"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "CRAM-MD5"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "DIGEST-MD5"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "NTLM"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "GSSAPI"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) addAuthenticationItem: adding auth item  "Anonymous"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) SetupServer::readSettings: read IMAP auth mode:  "Clear text"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) setCurrentAuthMode: setting authcombo:  "Clear text"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) setCurrentAuthMode: found corresponding index:  0 with data "Clear text"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) setCurrentAuthMode: selected auth mode: "Clear text"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) SetupServer::slotSafetyChanged: serverTest null
[akonadiserver] Database "akonadi" opened using driver "QMYSQL"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::retrieveItems: ".maxtorhof"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::triggerExpunge: "INBOX.lists.maxtorhof"
[akonadiserver] Error during executing query "INSERT INTO CollectionTable (remoteId, remoteRevision, name, parentId, resourceId, cachePolicyInherit) VALUES (:0, :1, :2, :3, :4, :5)" :  "Duplicate entry '112-trash' for key 'CollectionTable_parentAndNameIndex' QMYSQL3: Unable to execute statement"
[akonadiserver] Error during insertion into table "CollectionTable" "Duplicate entry '112-trash' for key 'CollectionTable_parentAndNameIndex' QMYSQL3: Unable to execute statement"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/libakonadi Akonadi::SpecialCollectionsRequestJobPrivate::collectionCreateResult: Failed CollectionCreateJob. "Unknown error. (Could not create collection)"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 2815 EXISTS
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.maxtorhof"  should be:  2815  current:  2815
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::retrieveItems: ".msg-ws"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::triggerExpunge: "INBOX.lists.msg-ws"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 128 EXISTS
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.msg-ws"  should be:  128  current:  128
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: All fine, asking for all message flags looking for changes
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::retrieveItems: ".opensuse"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::triggerExpunge: "INBOX.lists.opensuse"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 13556 EXISTS
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response:  * 0 RECENT
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) getCurrentAuthMode: current auth mode:  "Clear text"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) SetupServer::applySettings: saving IMAP auth mode:  "Clear text"
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738) SetupServer::applySettings: wrote "imap.suse.de" "wstephenson" 5
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
[/space/kde/installs/trunk/bin/akonadi_imap_resource] akonadi_imap_resource_0(7738)/kdepimlibs (kimap) ImapResource::onSelectDone: integrity:  "INBOX.lists.opensuse"  should be:  13556  current:  13555
[/space/kde/installs/trunk/bin/akonadi_imap_resource] ASSERT failure in ResourceBase::setItemStreamingEnabled(): "Calling setItemStreamingEnabled() although no item retrieval is in progress", file /space/kde/sources/trunk/KDE/kdepimlibs/akonadi/resourcebase.cpp, line 645
[akonadiserver] Lost connection to resource "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_0" , discarding cached interface



Reproducible: Sometimes

Steps to Reproduce:
"Sychronize all", then configure the resource and change the mail check interval

Actual Results:  
Crash.

Expected Results:  
Nothing - no interruption to active imap operations and no new login.
Comment 1 Will Stephenson 2010-06-24 17:15:25 UTC
Sorry, it crashed in a different way when I tried to repeat the crash, and the debug output above does not match the backtrace.  This is the second backtrace to go with the debug: Application: Akonadi Resource (akonadi_imap_resource), signal: 

Asserting in Akonadi::ResourceBase::setItemStreamingEnabled for your pleasure:

Aborted
[Current thread is 1 (Thread 0xb48a9710 (LWP 7738))]

Thread 5 (Thread 0xb1245b70 (LWP 7743)):
#0  0xb55d422b in clock_gettime () from /lib/librt.so.1
#1  0xb739875c in ?? () from /usr/lib/libQtCore.so.4
#2  0xb739cb16 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb739b56b in ?? () from /usr/lib/libQtCore.so.4
#4  0xb55280c0 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#5  0xb5528f22 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb552960e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#7  0xb739bd97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb736f11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb736f319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb7273403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#11 0xb6616c1e in KIMAP::SessionThread::run (this=0x822b660) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#12 0xb727604f in ?? () from /usr/lib/libQtCore.so.4
#13 0xb71fcb25 in start_thread () from /lib/libpthread.so.0
#14 0xb577646e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xb2247b70 (LWP 7747)):
#0  0xb71fefed in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0xb55289a3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#2  0xb5529350 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb552960e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb739bd97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb736f11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb736f319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb7273403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0xb6616c1e in KIMAP::SessionThread::run (this=0x85335f8) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#9  0xb727604f in ?? () from /usr/lib/libQtCore.so.4
#10 0xb71fcb25 in start_thread () from /lib/libpthread.so.0
#11 0xb577646e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xafeb1b70 (LWP 7750)):
#0  0xb55d422b in clock_gettime () from /lib/librt.so.1
#1  0xb739875c in ?? () from /usr/lib/libQtCore.so.4
#2  0xb739cb16 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb739b56b in ?? () from /usr/lib/libQtCore.so.4
#4  0xb55280c0 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#5  0xb5528f22 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb552960e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#7  0xb739bd97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb736f11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb736f319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb7273403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#11 0xb6616c1e in KIMAP::SessionThread::run (this=0x82261c8) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#12 0xb727604f in ?? () from /usr/lib/libQtCore.so.4
#13 0xb71fcb25 in start_thread () from /lib/libpthread.so.0
#14 0xb577646e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb072ab70 (LWP 7751)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb576b75e in poll () from /lib/libc.so.6
#2  0xb55391db in g_poll () from /usr/lib/libglib-2.0.so.0
#3  0xb5529286 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0xb552960e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0xb739bd97 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb736f11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb736f319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0xb7273403 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0xb6616c1e in KIMAP::SessionThread::run (this=0x83ae900) at /space/kde/sources/trunk/KDE/kdepimlibs/kimap/sessionthread.cpp:167
#10 0xb727604f in ?? () from /usr/lib/libQtCore.so.4
#11 0xb71fcb25 in start_thread () from /lib/libpthread.so.0
#12 0xb577646e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb48a9710 (LWP 7738)):
[KCrash Handler]
#7  0xffffe430 in __kernel_vsyscall ()
#8  0xb56ce7ff in raise () from /lib/libc.so.6
#9  0xb56d0140 in abort () from /lib/libc.so.6
#10 0xb726d76a in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#11 0xb726d96f in ?? () from /usr/lib/libQtCore.so.4
#12 0xb726da88 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#13 0xb726dacd in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib/libQtCore.so.4
#14 0xb76495fc in Akonadi::ResourceBase::setItemStreamingEnabled (this=0x81fe5d0, enable=true) at /space/kde/sources/trunk/KDE/kdepimlibs/akonadi/resourcebase.cpp:643
#15 0x08065d31 in ImapResource::onSelectDone (this=0x81fe5d0, mailBox=..., messageCount=13556, realMessageCount=13555, scopeMode=0, nextUid=121333, oldNextUid=121333, firstTime=true)
    at /space/kde/sources/trunk/KDE/kdepim/runtime/resources/imap/imapresource.cpp:1767
#16 0x08065b26 in ImapResource::onCollectionStatisticsReceived (this=0x81fe5d0, job=0x85a2f08) at /space/kde/sources/trunk/KDE/kdepim/runtime/resources/imap/imapresource.cpp:1755
#17 0x08067c92 in ImapResource::qt_metacall (this=0x81fe5d0, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbf8c80a8) at /space/kde/builds/trunk/KDE/kdepim/runtime/resources/imap/imapresource.moc:183
#18 0xb7375efd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#19 0xb7384fe8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#20 0xb5a69990 in KJob::result (this=0x85a2f08, _t1=0x85a2f08) at /space/kde/builds/trunk/KDE/kdelibs/kdecore/kjob.moc:194
#21 0xb5a68f9f in KJob::emitResult (this=0x85a2f08) at /space/kde/sources/trunk/KDE/kdelibs/kdecore/jobs/kjob.cpp:312
#22 0xb762bb6b in Akonadi::JobPrivate::delayedEmitResult (this=0x8a40c68) at /space/kde/sources/trunk/KDE/kdepimlibs/akonadi/job.cpp:143
#23 0xb762d131 in Akonadi::Job::qt_metacall (this=0x85a2f08, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf8c81ec) at /space/kde/builds/trunk/KDE/kdepimlibs/akonadi/job.moc:91
#24 0xb75d8806 in Akonadi::CollectionStatisticsJob::qt_metacall (this=0x85a2f08, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0xbf8c81ec)
    at /space/kde/builds/trunk/KDE/kdepimlibs/akonadi/collectionstatisticsjob.moc:64
#25 0xb7375efd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#26 0xb7384fe8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#27 0xb738a9d5 in ?? () from /usr/lib/libQtCore.so.4
#28 0xb738aa8c in ?? () from /usr/lib/libQtCore.so.4
#29 0xb7382774 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#30 0xb68a8c64 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#31 0xb68b0bf7 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#32 0xb5ea2486 in KApplication::notify (this=0xbf8c8a78, receiver=0x878a940, event=0xbf8c8720) at /space/kde/sources/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:309
#33 0xb736fe0e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#34 0xb739e70e in ?? () from /usr/lib/libQtCore.so.4
#35 0xb739b642 in ?? () from /usr/lib/libQtCore.so.4
#36 0xb5528b49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb5529350 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0xb552960e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0xb739bd4b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb695919a in ?? () from /usr/lib/libQtGui.so.4
#41 0xb736f11d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb736f319 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#43 0xb7373c70 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#44 0xb68a6164 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#45 0xb7646cce in Akonadi::ResourceBase::init (r=0x81fe5d0) at /space/kde/sources/trunk/KDE/kdepimlibs/akonadi/resourcebase.cpp:245
#46 0x0806d246 in Akonadi::ResourceBase::init<ImapResource> (argc=3, argv=0xbf8c8b54) at /space/kde/installs/trunk/include/akonadi/resourcebase.h:186
#47 0x08067939 in main (argc=3, argv=0xbf8c8b54) at /space/kde/sources/trunk/KDE/kdepim/runtime/resources/imap/imapresource.cpp:2017
Comment 2 Kevin Ottens 2010-06-29 16:21:53 UTC
Didn't manage to reproduce it. Closing as WORKSFORME. If you still manage to reproduce it (although it seems rather random), could you use the KIMAP_LOGFILE env variable to create a log of the IMAP traffic, I could try to make a test case out of it this way (of course send the log to me personally if it contains sensitive data).
Comment 3 Alex Merry 2010-07-25 02:55:55 UTC
So... I occasionally get this crash (but only very occasionally).  I'm not sure where I should set KIMAP_LOGFILE so that it is picked up by the akonadi resource.

However, I do have it open in GDB, and I'm having trouble figuring out how it got to that state.

The relevant part of the backtrace is:
#11 0x000000000042785a in QList<long long>::first (this=0xa67e68) at /usr/include/QtCore/qlist.h:263
#12 0x000000000044fcb4 in QList<long long>::takeFirst (this=0xa67e68) at /usr/include/QtCore/qlist.h:460
#13 0x000000000044dc01 in SessionPool::declareSessionReady (this=0xa67e20, session=0xd64810) at /home/kde-devel/src/KDE/kdepim/runtime/resources/imap/sessionpool.cpp:178
#14 0x000000000044e6b4 in SessionPool::onLoginDone (this=0xa67e20, job=0xaa08d0) at /home/kde-devel/src/KDE/kdepim/runtime/resources/imap/sessionpool.cpp:299
#15 0x000000000044f50b in SessionPool::qt_metacall (this=0xa67e20, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fff07eeebe0)
    at /home/kde-devel/build/KDE/kdepim/runtime/resources/imap/sessionpool.moc:117
#16 0x00007fb8563d2def in QMetaObject::activate (sender=0xaa08d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff07eeebe0) at kernel/qobject.cpp:3287
#17 0x00007fb852ba383f in KJob::result (this=0xaa08d0, _t1=0xaa08d0) at /home/kde-devel/build/KDE/kdelibs/kdecore/kjob.moc:194
#18 0x00007fb852ba2cad in KJob::emitResult (this=0xaa08d0) at /home/kde-devel/src/KDE/kdelibs/kdecore/jobs/kjob.cpp:312
#19 0x00007fb854e75b6d in KIMAP::LoginJob::handleResponse (this=0xaa08d0, response=...) at /home/kde-devel/src/KDE/kdepimlibs/kimap/loginjob.cpp:286

OK, so we came from a LoginJob.  That means that onPasswordRequestDone must have been called, which means that m_passwordRequester->requestPassword() must have been called from processPendingRequests(), since m_initialConnectDone is true.  m_idlePool.size() is 0, but m_reservedPool.size() is 3 and m_maxPoolSize is 2, which doesn't seem to make sense.  The entries in m_reservedPool (in order) are the ImapResource m_mainSession, the ImapIdleManager m_session (ie: m_idle->m_session from the ImapResource) and the session that's just been logged in.

Clearly this last session should never have been requested, which seems to imply that onPasswordRequestDone is being triggered erroneously.

Anyway, I've put in a bunch of debug statements, so next time I get this crash, I'll see what information they give.
Comment 4 Volker Krause 2010-12-30 13:45:22 UTC
*** Bug 245446 has been marked as a duplicate of this bug. ***
Comment 5 Volker Krause 2010-12-30 13:47:28 UTC
*** Bug 250163 has been marked as a duplicate of this bug. ***
Comment 6 Volker Krause 2010-12-30 13:48:08 UTC
*** Bug 256837 has been marked as a duplicate of this bug. ***
Comment 7 Volker Krause 2010-12-30 13:50:43 UTC
*** Bug 248395 has been marked as a duplicate of this bug. ***
Comment 8 Volker Krause 2010-12-30 13:52:49 UTC
*** Bug 257554 has been marked as a duplicate of this bug. ***
Comment 9 Thomas Tanghus 2011-06-23 17:47:37 UTC
Created attachment 61281 [details]
New crash information added by DrKonqi

akonadi_imap_resource (0.1) on KDE Platform 4.6.4 (4.6.4) using Qt 4.7.2

- What I was doing when the application crashed:

I had just installed KDEPIM 4.6 from https://launchpad.net/kubuntu-ppa/+archive/experimental. When the KMail2 migration was finishing one of my accounts apparently replied with a  wrong credentials error and when I tried to edit the account the crash happened. This happened twice.

-- Backtrace (Reduced):
#7  0x080a1451 in takeFirst (this=0x9a5e8c8, session=0x9b1be80) at /usr/include/qt4/QtCore/qlist.h:477
#8  SessionPool::declareSessionReady (this=0x9a5e8c8, session=0x9b1be80) at ../../../resources/imap/sessionpool.cpp:207
#9  0x080a2e14 in SessionPool::onLoginDone (this=0x9a5e8c8, job=0x9a67ca0) at ../../../resources/imap/sessionpool.cpp:348
#10 0x080a3174 in SessionPool::qt_metacall (this=0x9a5e8c8, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfc5d0c8) at ./sessionpool.moc:118
[...]
#13 0x019c3e93 in KJob::result (this=0x9a67ca0, _t1=0x9a67ca0) at ./kjob.moc:194
Comment 10 Christophe Marin 2011-07-13 15:06:02 UTC
*** Bug 265308 has been marked as a duplicate of this bug. ***
Comment 11 Christophe Marin 2011-07-13 15:06:19 UTC
*** Bug 272921 has been marked as a duplicate of this bug. ***
Comment 12 Christophe Marin 2011-07-13 16:25:56 UTC
*** Bug 272741 has been marked as a duplicate of this bug. ***
Comment 13 Christophe Marin 2011-08-28 17:16:44 UTC
*** Bug 278756 has been marked as a duplicate of this bug. ***
Comment 14 Christophe Marin 2011-08-28 17:16:57 UTC
*** Bug 265173 has been marked as a duplicate of this bug. ***
Comment 15 Christophe Marin 2011-11-13 10:40:33 UTC
bug 286393 was fixed yesterday. Please retest this one
Comment 16 Christophe Marin 2011-11-18 00:10:09 UTC
*** Bug 284244 has been marked as a duplicate of this bug. ***
Comment 17 Christophe Marin 2011-12-10 00:54:29 UTC
*** Bug 288509 has been marked as a duplicate of this bug. ***
Comment 18 David Faure 2012-01-05 11:05:05 UTC
*** Bug 283527 has been marked as a duplicate of this bug. ***
Comment 19 David Faure 2012-01-05 11:28:15 UTC
Crash in takeFirst == bug 286003

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