Bug 344340

Summary: Crash when trying to sync imap account
Product: [Frameworks and Libraries] Akonadi Reporter: Martin Tlustos <martin.tlustos>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED DUPLICATE    
Severity: crash CC: dvratil, is, kdepim-bugs, vkrause
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Martin Tlustos 2015-02-19 09:13:29 UTC
Application: akonadi_imap_resource (4.14)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.0-30-generic x86_64
Distribution: Ubuntu 14.10

-- Information about the crash:
- What I was doing when the application crashed:
I tried to sync the account. the resource crashed the first time when I tried to view a folder (I have D-imap deactivated because it seems to have problems as well, so it tries to sync a folder when I open it). The second time I tried to sync it via akonadiconsole and it crashed after a short while (sync progress still shows 0%)

- Custom settings of the application:
Disconnected imap deactivated
I did change some stuff via the webinterface as well, so it might have confused my imap resource (which it should be resilient to anyway).

The crash can be reproduced every time.

-- Backtrace:
Application: Gebetskoordination vom Typ IMAP-E-Mail-Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f268a0d08c0 (LWP 1520))]

Thread 3 (Thread 0x7f2675b31700 (LWP 1523)):
#0  0x00007f26859ac3dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f2684927ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2684927ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f26896ee04e in QEventDispatcherGlib::processEvents (this=0x7f26700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f26896bf4f1 in QEventLoop::processEvents (this=this@entry=0x7f2675b30d20, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f26896bf805 in QEventLoop::exec (this=this@entry=0x7f2675b30d20, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f26895bdc39 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f26895c039f in QThreadPrivate::start (arg=0x1056700) at thread/qthread_unix.cpp:349
#8  0x00007f26850120a5 in start_thread (arg=0x7f2675b31700) at pthread_create.c:309
#9  0x00007f26859b688d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f266f23c700 (LWP 1543)):
#0  0x00007f26859ac3dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f2684927ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2684927ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f26896ee04e in QEventDispatcherGlib::processEvents (this=0x7f26640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f26896bf4f1 in QEventLoop::processEvents (this=this@entry=0x7f266f23bd20, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f26896bf805 in QEventLoop::exec (this=this@entry=0x7f266f23bd20, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f26895bdc39 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x00007f26895c039f in QThreadPrivate::start (arg=0x100f350) at thread/qthread_unix.cpp:349
#8  0x00007f26850120a5 in start_thread (arg=0x7f266f23c700) at pthread_create.c:309
#9  0x00007f26859b688d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f268a0d08c0 (LWP 1520)):
[KCrash Handler]
#6  0x00007f268730a01d in QByteArray (a=..., this=0x7fffe565f020) at /usr/include/qt4/QtCore/qbytearray.h:439
#7  toString (this=0x0) at ../../kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at ../../kimap/searchjob.cpp:429
#9  0x00007f26872faffb in KIMAP::SessionPrivate::responseReceived (this=0xffe900, response=...) at ../../kimap/session.cpp:300
#10 0x00007f26896d8f41 in QObject::event (this=0xffe900, e=<optimized out>) at kernel/qobject.cpp:1222
#11 0x00007f2688a4d11c in QApplicationPrivate::notify_helper (this=this@entry=0xe7b930, receiver=receiver@entry=0xffe900, e=e@entry=0x7f266403ab80) at kernel/qapplication.cpp:4570
#12 0x00007f2688a53870 in QApplication::notify (this=this@entry=0x7fffe565f7e0, receiver=receiver@entry=0xffe900, e=e@entry=0x7f266403ab80) at kernel/qapplication.cpp:4356
#13 0x00007f2686b2d4da in KApplication::notify (this=0x7fffe565f7e0, receiver=0xffe900, event=0x7f266403ab80) at ../../kdeui/kernel/kapplication.cpp:311
#14 0x00007f26896c086d in QCoreApplication::notifyInternal (this=0x7fffe565f7e0, receiver=receiver@entry=0xffe900, event=event@entry=0x7f266403ab80) at kernel/qcoreapplication.cpp:953
#15 0x00007f26896c3f41 in sendEvent (event=0x7f266403ab80, receiver=0xffe900) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#16 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xe3c0c0) at kernel/qcoreapplication.cpp:1577
#17 0x00007f26896c43d3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#18 0x00007f26896eded3 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#19 postEventSourceDispatch (s=0xe670e0) at kernel/qeventdispatcher_glib.cpp:287
#20 0x00007f2684927c5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f2684927f48 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f2684927ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f26896ee031 in QEventDispatcherGlib::processEvents (this=0xe3d5a0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#24 0x00007f2688af04e6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#25 0x00007f26896bf4f1 in QEventLoop::processEvents (this=this@entry=0x7fffe565f770, flags=...) at kernel/qeventloop.cpp:149
#26 0x00007f26896bf805 in QEventLoop::exec (this=this@entry=0x7fffe565f770, flags=...) at kernel/qeventloop.cpp:204
#27 0x00007f26896c4f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#28 0x00007f2688a4b4dc in QApplication::exec () at kernel/qapplication.cpp:3828
#29 0x00007f2689bb238c in Akonadi::ResourceBase::init (r=r@entry=0xfd82d0) at ../../akonadi/resourcebase.cpp:579
#30 0x00000000004189be in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:193
#31 0x00007f26858ddec5 in __libc_start_main (main=0x4182f0 <main(int, char**)>, argc=3, argv=0x7fffe565f8f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffe565f8e8) at libc-start.c:287
#32 0x0000000000418864 in _start ()

The reporter indicates this bug may be a duplicate of or related to bug 340157.

Possible duplicates by query: bug 344271, bug 340157, bug 339395.

Reported using DrKonqi
Comment 1 is 2015-08-31 19:57:26 UTC
Created attachment 94309 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed:

I have just upgraded from Debian Wheezy to Jessie (KDE 4.8.x to 4.14.1).  It migrate my settings and started to sync this account.  Each time it made it further but crashed.  Eventually it synched to the account at the problem seemed to go away.  But after several hours, it has occured again.  

The acount is large: dozens of folder, some having 10 K + messages. Maybe it's leaking some resource and finally exhausting it?

-- Backtrace (Reduced):
#6  0x00007febeeea19bd in KIMAP::SearchJob::handleResponse(KIMAP::Message const&) () from /usr/lib/libkimap.so.4
#7  0x00007febeee9294b in KIMAP::SessionPrivate::responseReceived(KIMAP::Message const&) () from /usr/lib/libkimap.so.4
#8  0x00007febf12d1e11 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007febf060948c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007febf060ffa8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Comment 2 Daniel Vrátil 2016-03-21 23:51:56 UTC

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