Bug 340157

Summary: Akonadi imap resource segfaults on folder refresh
Product: [Frameworks and Libraries] Akonadi Reporter: Julian G <glua>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED DUPLICATE    
Severity: crash CC: cure1245, dvratil, freekdekruijf, glua, kdepim-bugs, maarten.bezemer, matej, stephan.diestelhorst, vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=339395
Latest Commit: 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
New crash information added by DrKonqi

Description Julian G 2014-10-20 13:26:51 UTC
Right klick on the mailbox and clicked to synchronize the folder.

Reproducible: Sometimes




Application: julian@webmeisterei.com vom Typ IMAP-E-Mail-Server (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f53e507b8c0 (LWP 4129))]

Thread 4 (Thread 0x7f53da361700 (LWP 4131)):
#0  0x000000300028a2ed in g_mutex_get_impl () from /lib64/libglib-2.0.so.0
#1  0x000000300028a599 in g_mutex_lock () from /lib64/libglib-2.0.so.0
#2  0x000000300024948d in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x00000030002496dc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00000030053b543e in QEventDispatcherGlib::processEvents (this=0x7f53d40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#5  0x000000300538538f in QEventLoop::processEvents (this=this@entry=0x7f53da360d10, flags=...) at kernel/qeventloop.cpp:149
#6  0x00000030053856dd in QEventLoop::exec (this=this@entry=0x7f53da360d10, flags=...) at kernel/qeventloop.cpp:204
#7  0x0000003005279e5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#8  0x000000300527c69f in QThreadPrivate::start (arg=0x230a3a0) at thread/qthread_unix.cpp:349
#9  0x0000003ffee07ee5 in start_thread (arg=0x7f53da361700) at pthread_create.c:309
#10 0x0000003ffe6f4b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f53d9b60700 (LWP 4132)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x000000300527cbb4 in wait (time=30000, this=0x7f53d401cbc0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=this@entry=0x7f53d4050440, mutex=mutex@entry=0x7f53d401c8d8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x000000300527014a in QThreadPoolThread::run (this=0x7f53d4050430) at concurrent/qthreadpool.cpp:142
#4  0x000000300527c69f in QThreadPrivate::start (arg=0x7f53d4050430) at thread/qthread_unix.cpp:349
#5  0x0000003ffee07ee5 in start_thread (arg=0x7f53d9b60700) at pthread_create.c:309
#6  0x0000003ffe6f4b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f53d3c40700 (LWP 4133)):
#0  0x000000300028a5e8 in g_mutex_unlock () from /lib64/libglib-2.0.so.0
#1  0x000000300024945d in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x00000030002496dc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00000030053b543e in QEventDispatcherGlib::processEvents (this=0x7f53c80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x000000300538538f in QEventLoop::processEvents (this=this@entry=0x7f53d3c3fd10, flags=...) at kernel/qeventloop.cpp:149
#5  0x00000030053856dd in QEventLoop::exec (this=this@entry=0x7f53d3c3fd10, flags=...) at kernel/qeventloop.cpp:204
#6  0x0000003005279e5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:538
#7  0x000000300527c69f in QThreadPrivate::start (arg=0x216ee60) at thread/qthread_unix.cpp:349
#8  0x0000003ffee07ee5 in start_thread (arg=0x7f53d3c40700) at pthread_create.c:309
#9  0x0000003ffe6f4b8d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f53e507b8c0 (LWP 4129)):
[KCrash Handler]
#6  0x000000302b6508cd in QByteArray (a=..., this=0x7fff9e2418d0) at /usr/include/QtCore/qbytearray.h:439
#7  toString (this=0x0) at /usr/src/debug/kdepimlibs-4.14.1/kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at /usr/src/debug/kdepimlibs-4.14.1/kimap/searchjob.cpp:429
#9  0x000000302b6408f4 in KIMAP::SessionPrivate::responseReceived (this=0x22981a0, response=...) at /usr/src/debug/kdepimlibs-4.14.1/kimap/session.cpp:300
#10 0x000000300539f90e in QObject::event (this=0x22981a0, e=<optimized out>) at kernel/qobject.cpp:1222
#11 0x00000030071cae5c in QApplicationPrivate::notify_helper (this=this@entry=0x21184e0, receiver=receiver@entry=0x22981a0, e=e@entry=0x7f53c801f140) at kernel/qapplication.cpp:4565
#12 0x00000030071d17b5 in QApplication::notify (this=this@entry=0x7fff9e2422f0, receiver=receiver@entry=0x22981a0, e=e@entry=0x7f53c801f140) at kernel/qapplication.cpp:4351
#13 0x000000300e24a59a in KApplication::notify (this=0x7fff9e2422f0, receiver=0x22981a0, event=0x7f53c801f140) at /usr/src/debug/kdelibs-4.14.1/kdeui/kernel/kapplication.cpp:311
#14 0x00000030053868fd in QCoreApplication::notifyInternal (this=0x7fff9e2422f0, receiver=receiver@entry=0x22981a0, event=event@entry=0x7f53c801f140) at kernel/qcoreapplication.cpp:953
#15 0x0000003005389ae5 in sendEvent (event=0x7f53c801f140, receiver=0x22981a0) at kernel/qcoreapplication.h:231
#16 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x20d6760) at kernel/qcoreapplication.cpp:1577
#17 0x0000003005389f83 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#18 0x00000030053b5c9e in sendPostedEvents () at kernel/qcoreapplication.h:236
#19 postEventSourceDispatch (s=0x2118aa0) at kernel/qeventdispatcher_glib.cpp:300
#20 0x00000030002492a6 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#21 0x0000003000249628 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#22 0x00000030002496dc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#23 0x00000030053b541e in QEventDispatcherGlib::processEvents (this=0x20d7fe0, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#24 0x000000300726cc46 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#25 0x000000300538538f in QEventLoop::processEvents (this=this@entry=0x7fff9e242260, flags=...) at kernel/qeventloop.cpp:149
#26 0x00000030053856dd in QEventLoop::exec (this=this@entry=0x7fff9e242260, flags=...) at kernel/qeventloop.cpp:204
#27 0x000000300538ada9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#28 0x00000030071c94dc in QApplication::exec () at kernel/qapplication.cpp:3823
#29 0x0000003020b8a98c in Akonadi::ResourceBase::init (r=r@entry=0x22b81a0) at /usr/src/debug/kdepimlibs-4.14.1/akonadi/resourcebase.cpp:579
#30 0x0000000000418a93 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/kde4/akonadi/resourcebase.h:193
#31 0x0000003ffe621d65 in __libc_start_main (main=0x4183a0 <main(int, char**)>, argc=3, argv=0x7fff9e242408, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff9e2423f8) at libc-start.c:285
#32 0x0000000000418945 in _start ()
Comment 1 Christopher Ure 2014-10-29 12:24:04 UTC
Created attachment 89358 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.1 using Qt 4.8.6

- What I was doing when the application crashed:

When trying to refresh gmail IMAP folders, the imap handler would segfault, leaving kmail open. It should be noted that after leaving the computer for several hours to allow the debug packages to install, the problem has apparently ran its course.

-- Backtrace (Reduced):
#6  0x00007f33e60bc92d in QByteArray (a=..., this=0x7fffc93a50f0) 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  0x00007f33e60ad90b in KIMAP::SessionPrivate::responseReceived (this=0x2165400, response=...) at ../../kimap/session.cpp:300
#10 0x00007f33e84ea641 in QObject::event (this=0x2165400, e=<optimized out>) at kernel/qobject.cpp:1222
Comment 2 Julian G 2014-11-19 22:16:55 UTC
Created attachment 89637 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.3 using Qt 4.8.6

- What I was doing when the application crashed:

Right klick on the mailbox and clicked to synchronize the folder.

-- Backtrace (Reduced):
#6  0x00007fbe91da08cd in QByteArray (a=..., this=0x7fff5d740420) at /usr/include/QtCore/qbytearray.h:439
#7  toString (this=0x0) at /usr/src/debug/kdepimlibs-4.14.3/kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at /usr/src/debug/kdepimlibs-4.14.3/kimap/searchjob.cpp:429
#9  0x00007fbe91d908f4 in KIMAP::SessionPrivate::responseReceived (this=0x12f0630, response=...) at /usr/src/debug/kdepimlibs-4.14.3/kimap/session.cpp:300
#10 0x000000300539f90e in QObject::event (this=0x12f0630, e=<optimized out>) at kernel/qobject.cpp:1222
Comment 3 Freek de Kruijf 2014-12-03 19:35:59 UTC
Created attachment 89825 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.3 using Qt 4.8.6

- What I was doing when the application crashed:
Left Kontact open for about 2 hours, came back and found the crash assistant waiting for me to act.
This was the akonadi imap_resource having contact with my gmail.com account.

-- Backtrace (Reduced):
#6  0x00007f0d9e28c64d in QByteArray (a=..., this=0x7fff15526c50) at /usr/include/QtCore/qbytearray.h:439
#7  toString (this=0x0) at /usr/src/debug/kdepimlibs-4.14.3/kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at /usr/src/debug/kdepimlibs-4.14.3/kimap/searchjob.cpp:429
#9  0x00007f0d9e27cddc in KIMAP::SessionPrivate::responseReceived (this=0xb136f0, response=...) at /usr/src/debug/kdepimlibs-4.14.3/kimap/session.cpp:300
#10 0x00007f0da063a59e in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
Comment 4 Matěj Laitl 2014-12-18 12:25:33 UTC
Created attachment 90036 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.14) on KDE Platform 4.14.3 using Qt 4.8.5

- What I was doing when the application crashed:
Just had kmail opened. Fetch interval was set to 2 minutes, the imap resource crashes at roughly this interval.

-- Backtrace (Reduced):
#6  0x00007fc508d4dda5 in QByteArray (a=..., this=0x7fff3e289630) at /usr/include/qt4/QtCore/qbytearray.h:439
#7  toString (this=0x0) at /var/tmp/portage/kde-base/kdepimlibs-4.14.3/work/kdepimlibs-4.14.3/kimap/message_p.h:42
#8  KIMAP::SearchJob::handleResponse (this=<optimized out>, response=...) at /var/tmp/portage/kde-base/kdepimlibs-4.14.3/work/kdepimlibs-4.14.3/kimap/searchjob.cpp:429
#9  0x00007fc508d3e61d in KIMAP::SessionPrivate::responseReceived (this=0x133f0b0, response=...) at /var/tmp/portage/kde-base/kdepimlibs-4.14.3/work/kdepimlibs-4.14.3/kimap/session.cpp:300
#10 0x00007fc50b0a0d6e in QObject::event (this=0x133f0b0, e=<optimized out>) at kernel/qobject.cpp:1194
Comment 5 Julian G 2015-03-06 11:07:25 UTC
still there with kde 4.14.4
Comment 6 Daniel Vrátil 2016-03-21 23:48:16 UTC

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