Summary: | imap resource crahes everytime it wants to fetch mail | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Marc Schiffbauer <mschiff> |
Component: | IMAP resource | Assignee: | Christian Mollekopf <chrigi_1> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | CC: | kdepim-bugs, mollekopf, newellm, rodney.lane, vkrause |
Priority: | NOR | Keywords: | triaged |
Version: | 4.9 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Marc Schiffbauer
2012-07-23 09:42:24 UTC
Updated. This crash occurs on 4.9 final as well. Is there any other info I can provide so this annoying bug can be fixed soon? More Info: I found out that the crash always happens when the agent is syncing a specific folder. I tried to unsubscribe that folder (serverside) and voila: No more crashes. After subscribing to it again, syncing that folder started (cache seemed to be cleaned already because the folder was empty now) and after syncing some hundret mails it crashes again. So I assume that I have one special mail object in that folder that makes the agent crash. I tried to narrow this down using the integrated debugger of akonadiconsole, but I cannot find anything about the crash there. Any news on this? ATM this affects a subfolder which I can easly unsubscribe so that the imap resource agent stops to crash constantly. But I am a bit worried that if that happens to my INBOX it will make kmail completely unusable for me. Update: I could isolate the message that is causing the crash. And I have put that message into a seperate folder now (via webmail) The Problem seems to be, that the IMAP resource agent cannot handle (at least) a special IMAP error case. The message has some error on the IMAP side, so the expected behavior of akonadi/kmail would be to display some sort of error like "IMAP Message could not be fetched" or something like that instead of crashing. I tested with Thunderbird: I just does not show the message. In webmail I can see that there is a message in the folder, but when I click on it to read it I get an error "NO_SUCH_BLOB". The IMAP response *seems* to be: "No such blob: mailbox=6, item=713444, change=1095509" (according to some details of that error shown in webmail) *** Bug 316819 has been marked as a duplicate of this bug. *** The IMAP resource has a new maintainer, reassigning to him. SerializerPluginMail::serialize should check if the pointer is valid it tries to access, and the imap resource should handle the error from the server. Actually, we probably shouldn't handle the error, since it doesn't seem to be IMAP. But not crashing would be cool anyways. We need an imap traffic log for to figure out what exactly is going wrong: http://techbase.kde.org/Projects/PIM/Akonadi/Debug_IMAP Created attachment 86886 [details]
New crash information added by DrKonqi
akonadi_imap_resource (4.12) on KDE Platform 4.13.1 using Qt 4.8.6
- What I was doing when the application crashed:
Crashes every time mail is checked. Code doesn't check the returned pointer! I will try to get the imap logs and isolate the email or whatever that is causing the crash.
-- Backtrace (Reduced):
#6 KMime::Content::encodedContent (this=0x0, useCrLf=useCrLf@entry=false) at ../../kmime/kmime_content.cpp:299
#7 0x00007f2171b7e9e6 in Akonadi::SerializerPluginMail::serialize (this=<optimized out>, item=..., label=..., data=..., version=<optimized out>) at ../../plugins/akonadi_serializer_mail.cpp:180
#8 0x00007f2186c89488 in Akonadi::ItemSerializer::serialize (item=..., label=..., data=..., version=@0x7ffff69f348c: 1) at ../../akonadi/itemserializer.cpp:143
#9 0x00007f2186c89c4f in Akonadi::ItemSerializer::serialize (item=..., label=..., data=..., version=@0x7ffff69f348c: 1) at ../../akonadi/itemserializer.cpp:133
#10 0x00007f2186c79400 in Akonadi::Item::payloadData (this=this@entry=0x7ffff69f3600) at ../../akonadi/item.cpp:207
Relevant console log output after doing: export KIMAP_LOGFILE=/tmp/imap.log akonadictl restart posting retrieval request for item 104272 there are 1 queues and 0 items in mine request for item 104272 still pending - waiting processing retrieval request for item 104272 parts: ("ENVELOPE") of resource: "akonadi_imap_resource_0" akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 294855 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 263216 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104277 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104276 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104275 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104274 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104273 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104272 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 94377 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 94044 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Number of items missing the body: 10 akonadi_imap_resource_0(11777)/kdepimlibs (kimap) RetrieveItemsTask::triggerExpunge: "INBOX" akonadi_imap_resource_0(11777)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response: * 20227 EXISTS akonadi_imap_resource_0(11777)/kdepimlibs (kimap) KIMAP::ExpungeJob::handleResponse: Unhandled response: * 1 RECENT akonadi_imap_resource_0(11777)/kdepimlibs (kimap) RetrieveItemsTask::onFinalSelectDone: Fetch missing: 20227 But: 20226 akonadi_imap_resource_0(11777)/kdepimlibs (kimap) RetrieveCollectionMetadataTask::doStart: ".INBOX" continuing request for item 104272 "331683" failed: "Unable to retrieve item from resource: <html>Invalid item retrieved</html>" ItemRetrieverException : Unable to retrieve item from resource: <html>Invalid item retrieved</html> akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 294855 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 263216 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104277 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104276 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104275 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104274 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104273 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 104272 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 94377 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Item 94044 is missing the payload! Cached payloads: QSet() akonadi_imap_resource_0(11777) ImapResource::fetchItemsWithoutBodiesDone: Number of items missing the body: 10 akonadi_imap_resource_0(11777)/kdepimlibs (kimap) RetrieveItemsTask::triggerExpunge: "INBOX" Lost connection to resource "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_0" , discarding cached interface void Akonadi::Server::NotificationSource::serviceUnregistered(const QString&) Notification source "akonadi_imap_resource_0_11777_bTg3Re" now serving: () KCrash: Application 'akonadi_imap_resource' crashing... KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/home/newellm/.kde/socket-obsidian/kdeinit4__0 Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |