Summary: | Imap resource crashes randomly. | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Luis Silva <lacsilva> |
Component: | IMAP resource | Assignee: | Christian Mollekopf <chrigi_1> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | bosyber, chrigi_1, dvratil, kdepim-bugs, lacsilva, mollekopf, rserral, vkrause, wheel |
Priority: | NOR | ||
Version: | GIT (master) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepimlibs/05738951d9b1a78b9832be5eda3c1b0fe99f12bd | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Luis Silva
2012-11-29 17:43:24 UTC
Created attachment 75822 [details]
New crash information added by DrKonqi
akonadi_imap_resource (4.9) on KDE Platform 4.9.90 using Qt 4.8.5
- What I was doing when the application crashed:
starting project-neon kontact - imap resource for one of my accounts crashed.
-- Backtrace (Reduced):
#6 0x00007f2840193425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7 0x00007f2840196b8b in __GI_abort () at abort.c:91
[...]
#11 0x00007f284413d7bc in qt_assert (assertion=0x7f2842b5dc9d "!socketTimer.isActive()", file=0x7f2842b5dbb8 "/build/buildd/project-neon-kdepimlibs-2+git20121212+r12790/kimap/session.cpp", line=462) at global/qglobal.cpp:2018
#12 0x00007f2842b4203f in KIMAP::SessionPrivate::startSocketTimer (this=0x1002bc0) at /build/buildd/project-neon-kdepimlibs-2+git20121212+r12790/kimap/session.cpp:462
#13 0x00007f2842b40a17 in KIMAP::SessionPrivate::doStartNext (this=0x1002bc0) at /build/buildd/project-neon-kdepimlibs-2+git20121212+r12790/kimap/session.cpp:166
*** Bug 311938 has been marked as a duplicate of this bug. *** Created attachment 76147 [details]
New crash information added by DrKonqi
akonadi_imap_resource (4.10) on KDE Platform 4.9.95 using Qt 4.8.3
- What I was doing when the application crashed:
there was a mail check running in the background.
-- Backtrace (Reduced):
#8 0xb564192f in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#9 0xb5644ec3 in __GI_abort () at abort.c:90
[...]
#13 0xb71b5ce5 in qt_assert (assertion=0xb651e73d "!socketTimer.isActive()", file=0xb6521238 "/home/lacsilva/Development/kdepim.d/kdepimlibs/kimap/session.cpp", line=462) at global/qglobal.cpp:2016
#14 0xb6503a05 in KIMAP::SessionPrivate::startSocketTimer (this=this@entry=0x9b564e0) at /home/lacsilva/Development/kdepim.d/kdepimlibs/kimap/session.cpp:462
#15 0xb65054c1 in KIMAP::SessionPrivate::doStartNext (this=0x9b564e0) at /home/lacsilva/Development/kdepim.d/kdepimlibs/kimap/session.cpp:166
I'm able to reproduce this with our corporate Zimbra server and I guess I found the problem :-) KIMAP session does not handle "BYE" command when the server disconnects us, because this appears in console: A message was received from the server with no job to handle it: "* BYE X.Y.Z.redhat.com Zimbra IMAP4rev1 server closing connection " "(2a20425945207a6d61696c31342e636f6c6c61622e70726f642e696e742e706878322e7265646861742e636f6d205a696d62726120494d415034726576312073657276657220636c6f73696e6720636f6e6e656374696f6e20)" When email check is triggered after this, the Q_ASSERT( !socketTimer.isActive() ) occurs Created attachment 81054 [details]
New crash information added by DrKonqi
akonadi_imap_resource (4.10) on KDE Platform 4.10.4 using Qt 4.8.4
- What I was doing when the application crashed:
resumed from sleep.
Current 4.10 branch compiled from sources (4.10.5 bd7f89d403d77a5cbd14c5ba7e6021c380212ccb)
From the console:
akonadi_imap_resource_7(20686)/kdepimlibs (kimap) ImapIdleManager::onIdleStopped: IDLE dropped maybe we should reconnect?
akonadi_imap_resource_7(20686) ImapIdleManager::reconnect: attempting to reconnect IDLE session
ASSERT: "!socketTimer.isActive()" in file /home/chrigi/devel/kde/kdepimlibs/kimap/session.cpp, line 463
KCrash: Application 'akonadi_imap_resource' crashing...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
sock_file=/home/devel/.kde4src/socket-localhost.localdomain/kdeinit4__0
Lost connection to resource "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_7" , discarding cached interface
kwalletd(5507)/kdeui (Wallet) KWalletD::slotServiceOwnerChanged: slotServiceOwnerChanged ":1.257" , ":1.257" , ""
void Akonadi::NotificationSource::serviceUnregistered(const QString&) Notification source "akonadi_imap_resource_7" now serving: ()
void Akonadi::NotificationSource::unsubscribe() "akonadi_imap_resource_7"
akonadi_imap_resource_9(20929)/kdepimlibs (kimap) ImapIdleManager::onIdleStopped: IDLE dropped maybe we should reconnect?
akonadi_imap_resource_9(20929) ImapIdleManager::reconnect: attempting to reconnect IDLE session
ASSERT: "!socketTimer.isActive()" in file /home/chrigi/devel/kde/kdepimlibs/kimap/session.cpp, line 463
KCrash: Application 'akonadi_imap_resource' crashing...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
sock_file=/home/devel/.kde4src/socket-localhost.localdomain/kdeinit4__0
Lost connection to resource "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_9" , discarding cached interface
-- Backtrace (Reduced):
#6 0x0000003a51e35ba5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#7 0x0000003a51e37358 in __GI_abort () at abort.c:90
[...]
#11 0x00007ff6be75cca9 in KIMAP::SessionPrivate::startSocketTimer (this=0xfc7e10) at /home/chrigi/devel/kde/kdepimlibs/kimap/session.cpp:463
#12 0x00007ff6be75b60f in KIMAP::SessionPrivate::doStartNext (this=0xfc7e10) at /home/chrigi/devel/kde/kdepimlibs/kimap/session.cpp:166
#13 0x00007ff6be75cfdd in KIMAP::Session::qt_static_metacall (_o=0xfc6240, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xfcea40) at /home/chrigi/devel/kde/build/kolab410/kdepimlibs/kimap/moc_session.cpp:87
(In reply to comment #5) Missed parts of the output, here are the remaining lines. > From the console: A message was received from the server with no job to handle it: "* BYE idle for too long " "(2a204259452069646c6520666f7220746f6f206c6f6e6720)" A message was received from the server with no job to handle it: "* BYE idle for too long " "(2a204259452069646c6520666f7220746f6f206c6f6e6720)" A message was received from the server with no job to handle it: "* BYE idle for too long " "(2a204259452069646c6520666f7220746f6f206c6f6e6720)" > akonadi_imap_resource_7(20686)/kdepimlibs (kimap) > ImapIdleManager::onIdleStopped: IDLE dropped maybe we should reconnect? > akonadi_imap_resource_7(20686) ImapIdleManager::reconnect: attempting to > reconnect IDLE session > ASSERT: "!socketTimer.isActive()" in file > /home/chrigi/devel/kde/kdepimlibs/kimap/session.cpp, line 463 > KCrash: Application 'akonadi_imap_resource' crashing... > KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit > sock_file=/home/devel/.kde4src/socket-localhost.localdomain/kdeinit4__0 > Lost connection to resource > "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_7" , discarding > cached interface > kwalletd(5507)/kdeui (Wallet) KWalletD::slotServiceOwnerChanged: > slotServiceOwnerChanged ":1.257" , ":1.257" , "" > void Akonadi::NotificationSource::serviceUnregistered(const QString&) > Notification source "akonadi_imap_resource_7" now serving: () > void Akonadi::NotificationSource::unsubscribe() "akonadi_imap_resource_7" > akonadi_imap_resource_9(20929)/kdepimlibs (kimap) > ImapIdleManager::onIdleStopped: IDLE dropped maybe we should reconnect? > akonadi_imap_resource_9(20929) ImapIdleManager::reconnect: attempting to > reconnect IDLE session > ASSERT: "!socketTimer.isActive()" in file > /home/chrigi/devel/kde/kdepimlibs/kimap/session.cpp, line 463 > KCrash: Application 'akonadi_imap_resource' crashing... > KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit > sock_file=/home/devel/.kde4src/socket-localhost.localdomain/kdeinit4__0 > Lost connection to resource > "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_9" , discarding > cached interface Looks indeed like BYE is not handled appropriately. The IMAP resource has a new maintainer, reassigning to him. *** Bug 324432 has been marked as a duplicate of this bug. *** Git commit d0cd431fbc433f9bdcd464340027140a737647ca by Christian Mollekopf. Committed on 10/12/2013 at 09:09. Pushed by cmollekopf into branch 'master'. Made the socketTimer a bit simpler and more robust. There is no need for the code to not be a little more forgiving, and we can easily get into a situation with the timer already running on startNext. e.g. due to socketActivity of due to unhandled data (BYE). This will hopefully fix the ASSERT people were running into. M +6 -14 kimap/session.cpp http://commits.kde.org/kdepimlibs/d0cd431fbc433f9bdcd464340027140a737647ca Git commit 05738951d9b1a78b9832be5eda3c1b0fe99f12bd by Christian Mollekopf. Committed on 10/12/2013 at 10:22. Pushed by cmollekopf into branch 'master'. Handle BYE. M +12 -0 kimap/session.cpp http://commits.kde.org/kdepimlibs/05738951d9b1a78b9832be5eda3c1b0fe99f12bd |