Bug 423557

Summary: imap resource crashes when pressing "restart" it there is issues with connection to the server
Product: [Frameworks and Libraries] Akonadi Reporter: Vadim A. Misbakh-Soloviov (mva) <kde>
Component: IMAP resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: a.samirh78
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Vadim A. Misbakh-Soloviov (mva) 2020-06-26 19:11:01 UTC
Application: akonadi_imap_resource (5.13.2 (19.12.2))
 (Compiled from sources)
Qt Version: 5.14.1
Frameworks Version: 5.67.0
Operating System: Linux 5.7.4 x86_64
Windowing system: X11
Distribution: "Gentoo GNU/Linux"

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

I have problem with this exact agent and can geit it to work and sync emails (after few months of being offline).
As one of the things, I pressed "Restart" button in KMail's "accounts" dialog. That triggered the crash...

The crash can be reproduced every time.

-- Backtrace:
Application: PDD (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f811ca48dc0 (LWP 789314))]

Thread 15 (Thread 0x7f80e1c2c700 (LWP 864639)):
#0  0x00007f814294cf10 in g_mutex_lock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f81429016bf in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901db2 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#8  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 14 (Thread 0x7f80aad08700 (LWP 864526)):
#0  0x00007f8147c65023 in poll () at /lib64/libc.so.6
#1  0x00007f8142901e0e in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#8  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 13 (Thread 0x7f8093fff700 (LWP 864259)):
#0  0x00007f8147c60712 in read () at /lib64/libc.so.6
#1  0x00007f8142948b2f in g_wakeup_acknowledge () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901967 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f8142901db2 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#9  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#10 0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7f80e2c2e700 (LWP 808570)):
#0  0x00007f8147c60768 in read () at /lib64/libc.so.6
#1  0x00007f8142948b2f in g_wakeup_acknowledge () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901967 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f8142901db2 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#9  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#10 0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7f810c9c2700 (LWP 807832)):
#0  0x00007f8147c65023 in poll () at /lib64/libc.so.6
#1  0x00007f8142901e0e in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#8  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7f80effff700 (LWP 794316)):
#0  0x00007f8147c60768 in read () at /lib64/libc.so.6
#1  0x00007f8142948b2f in g_wakeup_acknowledge () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901967 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f8142901db2 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#9  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#10 0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7f80e368e700 (LWP 794068)):
#0  0x00007f8147c6b379 in syscall () at /lib64/libc.so.6
#1  0x00007f81483f9ca8 in bool futexSemaphoreTryAcquire<false>(QBasicAtomicInteger<unsigned long long>&, int, int) () at /usr/lib64/libQt5Core.so.5
#2  0x00007f8148b5c434 in QLibProxyWrapper::run() () at /usr/lib64/libQt5Network.so.5
#3  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#5  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f810d612700 (LWP 789472)):
#0  0x00007f81428feaa9 in g_source_unref_internal () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f8142900075 in g_source_iter_next () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f81429012d3 in g_main_context_prepare () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f8142901d3b in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#9  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#10 0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f810edc1700 (LWP 789430)):
#0  0x00007f8147c65023 in poll () at /lib64/libc.so.6
#1  0x00007f8142901e0e in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#8  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f810f5c2700 (LWP 789423)):
#0  0x00007f8147c65023 in poll () at /lib64/libc.so.6
#1  0x00007f8142901e0e in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f81485f545b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f81483f6c5e in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f814a12c877 in QDBusConnectionManager::run() () at /usr/lib64/libQt5DBus.so.5
#7  0x00007f81483f7c8c in QThreadPrivate::start(void*) () at /usr/lib64/libQt5Core.so.5
#8  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f8111895700 (LWP 789415)):
#0  0x00007f8145268855 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f811358a4db in util_queue_thread_func () at /usr/lib64/dri/i965_dri.so
#2  0x00007f811358a0f7 in impl_thrd_routine () at /usr/lib64/dri/i965_dri.so
#3  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f8112096700 (LWP 789414)):
#0  0x00007f8145268855 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f811358a4db in util_queue_thread_func () at /usr/lib64/dri/i965_dri.so
#2  0x00007f811358a0f7 in impl_thrd_routine () at /usr/lib64/dri/i965_dri.so
#3  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f8112897700 (LWP 789413)):
#0  0x00007f8145268855 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f811358a4db in util_queue_thread_func () at /usr/lib64/dri/i965_dri.so
#2  0x00007f811358a0f7 in impl_thrd_routine () at /usr/lib64/dri/i965_dri.so
#3  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f8113098700 (LWP 789412)):
#0  0x00007f8145268855 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f811358a4db in util_queue_thread_func () at /usr/lib64/dri/i965_dri.so
#2  0x00007f811358a0f7 in impl_thrd_routine () at /usr/lib64/dri/i965_dri.so
#3  0x00007f814526134a in start_thread () at /lib64/libpthread.so.0
#4  0x00007f8147c70f6f in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f811ca48dc0 (LWP 789314)):
[KCrash Handler]
#6  0x00007f8148536429 in QSettings::setValue(QString const&, QVariant const&) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f814c45171e in Akonadi::AgentBase::setOnline(bool) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#8  0x0000562e39fbd92e in ImapResourceBase::reconnect() ()
#9  0x00007f814c47be11 in Akonadi__ControlAdaptor::qt_metacall(QMetaObject::Call, int, void**) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#10 0x00007f814a138b4b in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QVector<int> const&, int) () at /usr/lib64/libQt5DBus.so.5
#11 0x00007f814a13e17f in QDBusConnectionPrivate::activateCall(QObject*, int, QDBusMessage const&) [clone .part.0] () at /usr/lib64/libQt5DBus.so.5
#12 0x00007f814a13e82e in QDBusConnectionPrivate::activateObject(QDBusConnectionPrivate::ObjectTreeNode&, QDBusMessage const&, int) () at /usr/lib64/libQt5DBus.so.5
#13 0x00007f814a141558 in QDBusActivateObjectEvent::placeMetaCall(QObject*) () at /usr/lib64/libQt5DBus.so.5
#14 0x00007f81485cc91d in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#15 0x00007f814979439f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#16 0x00007f814979d4e0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#17 0x00007f81485a1540 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#18 0x00007f81485a3fd2 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt5Core.so.5
#19 0x00007f81485f5693 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /usr/lib64/libQt5Core.so.5
#20 0x00007f8142901b18 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#21 0x00007f8142901ea0 in g_main_context_iterate.isra () at /usr/lib64/libglib-2.0.so.0
#22 0x00007f8142901f2f in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#23 0x00007f81485f543e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#24 0x00007f81485a03fb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#25 0x00007f81485a81c2 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#26 0x00007f814c46082e in Akonadi::ResourceBase::init(Akonadi::ResourceBase&) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#27 0x0000562e39f8ad91 in int Akonadi::ResourceBase::init<ImapResource>(int, char**) ()
#28 0x00007f8147b8ce7b in __libc_start_main () at /lib64/libc.so.6
#29 0x0000562e39f88bda in _start ()
[Inferior 1 (process 789314) detached]

The reporter indicates this bug may be a duplicate of or related to bug 418844, bug 418595.

Possible duplicates by query: bug 418844, bug 418595, bug 414388, bug 413349, bug 413345.

Reported using DrKonqi
Comment 1 Ahmad Samir 2020-09-02 09:05:53 UTC

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