Summary: | crash when changing mail check interval | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Will Stephenson <wstephenson> |
Component: | IMAP resource | Assignee: | 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
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 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). 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. *** Bug 245446 has been marked as a duplicate of this bug. *** *** Bug 250163 has been marked as a duplicate of this bug. *** *** Bug 256837 has been marked as a duplicate of this bug. *** *** Bug 248395 has been marked as a duplicate of this bug. *** *** Bug 257554 has been marked as a duplicate of this bug. *** 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 *** Bug 265308 has been marked as a duplicate of this bug. *** *** Bug 272921 has been marked as a duplicate of this bug. *** *** Bug 272741 has been marked as a duplicate of this bug. *** *** Bug 278756 has been marked as a duplicate of this bug. *** *** Bug 265173 has been marked as a duplicate of this bug. *** bug 286393 was fixed yesterday. Please retest this one *** Bug 284244 has been marked as a duplicate of this bug. *** *** Bug 288509 has been marked as a duplicate of this bug. *** *** Bug 283527 has been marked as a duplicate of this bug. *** Crash in takeFirst == bug 286003 *** This bug has been marked as a duplicate of bug 286003 *** |