Bug 319783 - IMAP agent crashes and doesn't get restarted
Summary: IMAP agent crashes and doesn't get restarted
Status: RESOLVED DUPLICATE of bug 319569
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 1.9.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-13 13:12 UTC by l.mierzwa
Modified: 2013-06-09 14:51 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
proper backtrace from gdb (67.97 KB, text/plain)
2013-05-14 10:06 UTC, l.mierzwa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description l.mierzwa 2013-05-13 13:12:31 UTC
I have 3 IMAP accounts configured:
1) gmail
2) dovecot server
3) company exchange server

I boot up my computer and everything works fine, I can send and receive emails, but after a while exchange connections seems to hang, it doesn't throw any errors, but it doesn't notice any new messages (either with periodic checks or when I click to check new messages).
If I restart exchange agent in kmail->settings->account it starts to work again, restarting whole akonadi also fixes this issue.
Most of the time this happens without any indication, there is nothing that tells me to restart exchange imap agent, but once in awhile my exchange account gets marked as crashed in kmail with message that it was crashed and cannot be restarted. It never triggered bug report window as with any other crash I've had with KDE apps.
This is very annoying since most of the time it hits me when I have unread emails I'm unaware of.

I've attached gdb to exchange akonadi imap resource process, after a while I've got this crash:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f4cad0f6700 (LWP 3973)]
QSslSocketBackendPrivate::transmit (this=0x7f4ca8133df0) at ssl/qsslsocket_openssl.cpp:1004

If there is any other way I can help to debug this issue just let me know.

Reproducible: Always

Steps to Reproduce:
1. start kmail with IMAP exchange connection
2. sit and wait
Actual Results:  
New emails are not fetched be kmail

Expected Results:  
New messages should be fetched by kmail
Comment 1 l.mierzwa 2013-05-13 13:39:58 UTC
This happens on 2 computers (at home and at work)
Comment 2 l.mierzwa 2013-05-13 13:48:38 UTC
It just crashed the same way:

from gdb:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f3f24de1700 (LWP 7463)]
QSslSocketBackendPrivate::transmit (this=0x7f3f20002a50) at ssl/qsslsocket_openssl.cpp:1004

from ~/.xsession-errors:
ProcessControl: Application /usr/bin/akonadi_imap_resource stopped unexpectedly ( "Process crashed" )
Application '/usr/bin/akonadi_imap_resource' crashed. No restart!

After this I don't see akonadi agent running for this resource. Kmail doesn't show any error, nothing warns user about this crash.
At least restarting agent every time it crashes would be great, since it might be issue outside of KDE (for example in qt).
Comment 3 l.mierzwa 2013-05-14 10:06:36 UTC
Created attachment 79878 [details]
proper backtrace from gdb
Comment 4 grzesiekw 2013-05-29 09:20:27 UTC
I have the same issue, also with Exchange server as imap source. Maybe problem exists only on 32-bit architecture - on different system, 64-bits, I do not have such errors.

Gentoo, kde 4.10.3, akonadi 1.9.2
Comment 5 l.mierzwa 2013-05-29 09:22:04 UTC
I'm running 64 bits on 2 machines and both have such issue
Comment 6 Daniel Vrátil 2013-06-09 14:51:48 UTC

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