Bug 361608

Summary: Akonadi Segault when trying to sync IMAP (intensive sync of many hundreds of emails)
Product: [Frameworks and Libraries] Akonadi Reporter: mathieu.beliveau.1
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kdepim-bugs, vkrause
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mathieu.beliveau.1 2016-04-10 19:51:02 UTC
Application: akonadi_imap_resource (4.89.0)

Qt Version: 5.5.1
Operating System: Linux 4.2.0-35-generic x86_64
Distribution: Ubuntu 15.10

-- Information about the crash:
- What I was doing when the application crashed:

I was syncing kmail with my work place's exchange server through IMAP via Davmail.
Note: This happend during an initial sync covering two years worth of emails.

May be related to bug: 353957 (the stack trace is awfully similar). Although the crash reporting assistant wouldn't let me link my bug report to this one.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Akonadi Resource (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 0x7f53fb8ce840 (LWP 10405))]

Thread 4 (Thread 0x7f53f91cf700 (LWP 10413)):
#0  0x00007f5408c5088d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f54043f5bd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f54043f774f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f53fb5277e9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f540955da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f54046146aa in start_thread (arg=0x7f53f91cf700) at pthread_create.c:333
#6  0x00007f5408c5be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f53f1e50700 (LWP 10558)):
#0  0x00007f5408c5088d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f54038971ec in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f54038972fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f540979550b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f540973c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f5409558ac4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f540955da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f54046146aa in start_thread (arg=0x7f53f1e50700) at pthread_create.c:333
#8  0x00007f5408c5be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f53f0a45700 (LWP 10585)):
#0  0x00007f54038db860 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f5403896789 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f540389711b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f54038972fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f540979550b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f540973c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f5409558ac4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f540955da6e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f54046146aa in start_thread (arg=0x7f53f0a45700) at pthread_create.c:333
#9  0x00007f5408c5be9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f53fb8ce840 (LWP 10405)):
[KCrash Handler]
#6  0x00007f540c3a9693 in Akonadi::Entity::id (this=this@entry=0x7f54098123d8 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0xfeabb0, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007f540c74e32d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x103d3c0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007f540c750200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
#10 0x00007f540976d8ea in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f540aac1752 in KJob::result (this=this@entry=0x103d3c0, _t1=_t1@entry=0x103d3c0) at ./moc_kjob.cpp:555
#12 0x00007f540aac2311 in KJob::finishJob (this=0x103d3c0, emitResult=<optimized out>) at ../../../src/lib/jobs/kjob.cpp:109
#13 0x00007f540aac232a in KJob::emitResult (this=<optimized out>) at ../../../src/lib/jobs/kjob.cpp:295
#14 0x00007f540c43a3b3 in Akonadi::JobPrivate::delayedEmitResult (this=<optimized out>) at ../../../../akonadi/src/core/jobs/job.cpp:153
#15 Akonadi::Job::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_job.cpp:107
#16 0x00007f540976e7b1 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f540a0b19dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f540a0b6ea6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f540973ed7b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f5409741176 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f54097950e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f5403896ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f5403897250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f54038972fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f54097954ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f540973c50a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f54097445ec in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f540c74a21a in Akonadi::ResourceBase::init (r=r@entry=0xfeabb0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:602
#29 0x000000000043eaf3 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:193
#30 0x00007f5408b75a40 in __libc_start_main (main=0x43e950 <main(int, char**)>, argc=3, argv=0x7ffd9d44e3f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd9d44e3e8) at libc-start.c:289
#31 0x000000000043e9b9 in _start ()

Possible duplicates by query: bug 353957.

Reported using DrKonqi
Comment 1 Christoph Feck 2018-08-02 16:37:57 UTC

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