Bug 400970 - GMail IMAP: akonadi_imap_resource segmentation fault crash when toggling online state
Summary: GMail IMAP: akonadi_imap_resource segmentation fault crash when toggling onli...
Status: RESOLVED WORKSFORME
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 5.9.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-12 17:03 UTC by Jure Repinc
Modified: 2022-10-30 05:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jure Repinc 2018-11-12 17:03:57 UTC
SUMMARY
I have an IMAP account connected to GMail IMAP server. When I got home from work I noticed the account did not show the updated mail in KMail. I opened akonadiconsole and right-clicked on the agent and selected Toggle Online/Offline. When I did this I got a crash dialog with the following backtrace:

Application: akonadi_imap_resource (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
28	  return SYSCALL_CANCEL (nanosleep, requested_time, remaining);
[Current thread is 1 (Thread 0x7f864e2b79c0 (LWP 10436))]

Thread 15 (Thread 0x7f861a5ed700 (LWP 17644)):
#0  0x00007f8660ba0d34 in __GI___libc_read (fd=23, buf=buf@entry=0x7f861a5ec9b0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f865e6854b0 in read (__nbytes=16, __buf=0x7f861a5ec9b0, __fd=<optimized out>) at /usr/include/bits/unistd.h:44
#2  0x00007f865e6854b0 in g_wakeup_acknowledge (wakeup=0x7f85f4001860) at gwakeup.c:210
#3  0x00007f865e63fa4b in g_main_context_check (context=context@entry=0x7f860c0abf70, max_priority=2147483647, fds=fds@entry=0x7f860c0b3500, n_fds=n_fds@entry=1) at gmain.c:3698
#4  0x00007f865e63fef0 in g_main_context_iterate (context=context@entry=0x7f860c0abf70, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3917
#5  0x00007f865e64006c in g_main_context_iteration (context=0x7f860c0abf70, may_block=may_block@entry=1) at gmain.c:3981
#6  0x00007f86612e4adb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f860c0b7840, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007f8661291adb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f861a5ecbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#8  0x00007f86610e0de6 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#9  0x00007f86610ea9b7 in QThreadPrivate::start(void*) (arg=0x7f86140261c0) at thread/qthread_unix.cpp:367
#10 0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#11 0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7f8606c61700 (LWP 17459)):
#0  0x00007f865e63fafb in g_main_context_dispatch (context=context@entry=0x7f85f400dba0) at gmain.c:3852
#1  0x00007f865e63ffd8 in g_main_context_iterate (context=context@entry=0x7f85f400dba0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3920
#2  0x00007f865e64006c in g_main_context_iteration (context=0x7f85f400dba0, may_block=may_block@entry=1) at gmain.c:3981
#3  0x00007f86612e4adb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f85f400dd00, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f8661291adb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f8606c60be0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007f86610e0de6 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007f86610ea9b7 in QThreadPrivate::start(void*) (arg=0x7f861402dbe0) at thread/qthread_unix.cpp:367
#7  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#8  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7f8619dec700 (LWP 10466)):
#0  0x00007f8660baa739 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f86610dfa24 in QtLinuxFutex::_q_futex(int*, int, int, unsigned long long, int*, int) (val3=0, addr2=0x0, val2=0, val=<optimized out>, op=0, addr=<optimized out>) at thread/qfutex_p.h:105
#2  0x00007f86610dfa24 in QtLinuxFutex::futexWait<QBasicAtomicInteger<unsigned int> >(QBasicAtomicInteger<unsigned int>&, QBasicAtomicInteger<unsigned int>::Type) (expectedValue=<optimized out>, futex=...) at thread/qfutex_p.h:107
#3  0x00007f86610dfa24 in futexSemaphoreTryAcquire_loop<false>(QBasicAtomicInteger<unsigned long long>&, unsigned long long, unsigned long long, int) (timeout=-1, nn=8589934593, curValue=<optimized out>, u=...) at thread/qsemaphore.cpp:221
#4  0x00007f86610dfa24 in futexSemaphoreTryAcquire<false>(QBasicAtomicInteger<unsigned long long>&, int, int) (timeout=-1, n=<optimized out>, u=...) at thread/qsemaphore.cpp:264
#5  0x00007f86610dfa24 in QSemaphore::acquire(int) (this=0x7f86616cc2e0, n=<optimized out>) at thread/qsemaphore.cpp:328
#6  0x00007f866160dd14 in  () at /usr/lib64/libQt5Network.so.5
#7  0x00007f86610ea9b7 in QThreadPrivate::start(void*) (arg=0x7f86616cc2c0) at thread/qthread_unix.cpp:367
#8  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#9  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7f861adee700 (LWP 10454)):
#0  0x00007f865e686839 in g_mutex_lock (mutex=mutex@entry=0x7f8608000bf0) at gthread-posix.c:1343
#1  0x00007f865e63f681 in g_main_context_query (context=context@entry=0x7f8608000bf0, max_priority=2147483647, timeout=timeout@entry=0x7f861adeda94, fds=fds@entry=0x7f8608003ce0, n_fds=n_fds@entry=1) at gmain.c:3597
#2  0x00007f865e63fec7 in g_main_context_iterate (context=context@entry=0x7f8608000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3909
#3  0x00007f865e64006c in g_main_context_iteration (context=0x7f8608000bf0, may_block=may_block@entry=1) at gmain.c:3981
#4  0x00007f86612e4adb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f8608000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f8661291adb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f861adedbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f86610e0de6 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f86610ea9b7 in QThreadPrivate::start(void*) (arg=0x5578ad0fdab0) at thread/qthread_unix.cpp:367
#8  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#9  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7f861bfff700 (LWP 10451)):
#0  0x00007f8660ba0d34 in __GI___libc_read (fd=11, buf=buf@entry=0x7f861bffe9b0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f865e6854b0 in read (__nbytes=16, __buf=0x7f861bffe9b0, __fd=<optimized out>) at /usr/include/bits/unistd.h:44
#2  0x00007f865e6854b0 in g_wakeup_acknowledge (wakeup=0x7f86140039b0) at gwakeup.c:210
#3  0x00007f865e63fa4b in g_main_context_check (context=context@entry=0x7f8610000bf0, max_priority=2147483647, fds=fds@entry=0x7f86100049b0, n_fds=n_fds@entry=1) at gmain.c:3698
#4  0x00007f865e63fef0 in g_main_context_iterate (context=context@entry=0x7f8610000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3917
#5  0x00007f865e64006c in g_main_context_iteration (context=0x7f8610000bf0, may_block=may_block@entry=1) at gmain.c:3981
#6  0x00007f86612e4adb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f8610000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007f8661291adb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f861bffebe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#8  0x00007f86610e0de6 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#9  0x00007f86610ea9b7 in QThreadPrivate::start(void*) (arg=0x5578ad05b810) at thread/qthread_unix.cpp:367
#10 0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#11 0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f8638ff9700 (LWP 10450)):
#0  0x00007f8660ba52c9 in __GI___poll (fds=0x7f8614023770, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f865e63ff46 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f8614023770, timeout=<optimized out>, context=0x7f8614000bf0) at gmain.c:4221
#2  0x00007f865e63ff46 in g_main_context_iterate (context=context@entry=0x7f8614000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3915
#3  0x00007f865e64006c in g_main_context_iteration (context=0x7f8614000bf0, may_block=may_block@entry=1) at gmain.c:3981
#4  0x00007f86612e4adb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f8614000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f8661291adb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f8638ff8bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f86610e0de6 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f866239e545 in  () at /usr/lib64/libQt5DBus.so.5
#8  0x00007f86610ea9b7 in QThreadPrivate::start(void*) (arg=0x7f8662418d60) at thread/qthread_unix.cpp:367
#9  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#10 0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f86397fa700 (LWP 10449)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578acef6538) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578acef64e8, cond=0x5578acef6510) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578acef6510, mutex=0x5578acef64e8) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f8639ffb700 (LWP 10448)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578acf336a8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578acf33658, cond=0x5578acf33680) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578acf33680, mutex=0x5578acf33658) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f863a7fc700 (LWP 10447)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578acf336a8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578acf33658, cond=0x5578acf33680) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578acf33680, mutex=0x5578acf33658) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f863affd700 (LWP 10446)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578acf33598) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578acf33548, cond=0x5578acf33570) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578acf33570, mutex=0x5578acf33548) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f863b7fe700 (LWP 10445)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578acf33598) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578acf33548, cond=0x5578acf33570) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578acf33570, mutex=0x5578acf33548) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f863bfff700 (LWP 10444)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578acf33598) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578acf33548, cond=0x5578acf33570) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578acf33570, mutex=0x5578acf33548) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f864098d700 (LWP 10443)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578ace7d2e0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578ace7d290, cond=0x5578ace7d2b8) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578ace7d2b8, mutex=0x5578ace7d290) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f8648f06700 (LWP 10442)):
#0  0x00007f865fbc94dc in futex_wait_cancelable (private=0, expected=0, futex_word=0x5578acf30100) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f865fbc94dc in __pthread_cond_wait_common (abstime=0x0, mutex=0x5578acf300b0, cond=0x5578acf300d8) at pthread_cond_wait.c:502
#2  0x00007f865fbc94dc in __pthread_cond_wait (cond=0x5578acf300d8, mutex=0x5578acf300b0) at pthread_cond_wait.c:655
#3  0x00007f86492fca2b in  () at /usr/lib64/dri/radeonsi_dri.so
#4  0x00007f86492fc757 in  () at /usr/lib64/dri/radeonsi_dri.so
#5  0x00007f865fbc3554 in start_thread (arg=<optimized out>) at pthread_create.c:463
#6  0x00007f8660bafccf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f864e2b79c0 (LWP 10436)):
[KCrash Handler]
#6  0x00007f86612c08ab in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) (sender=0x5578ad22e150, signal=0x0, receiver=0x5578ad069670, method=0x0) at kernel/qobject.cpp:2987
#7  0x00005578ab472e17 in ImapResourceBase::doSetOnline(bool) (this=0x5578ad0680f0, online=<optimized out>) at /usr/src/debug/kdepim-runtime-18.08.2-1.1.x86_64/resources/imap/imapresourcebase.cpp:522
#8  0x00007f8662b2fe2f in Akonadi::AgentBase::setOnlineInternal(bool) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#9  0x00007f8662b3056a in Akonadi::AgentBase::setOnline(bool) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#10 0x00007f8662b5760c in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#11 0x00007f8662b578c3 in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#12 0x00007f86623a9eaa in  () at /usr/lib64/libQt5DBus.so.5
#13 0x00007f86623ae4c5 in  () at /usr/lib64/libQt5DBus.so.5
#14 0x00007f86623aed16 in  () at /usr/lib64/libQt5DBus.so.5
#15 0x00007f86623b138e in  () at /usr/lib64/libQt5DBus.so.5
#16 0x00007f86612bc902 in QObject::event(QEvent*) (this=0x5578ad0680f0, e=<optimized out>) at kernel/qobject.cpp:1251
#17 0x00007f8661ddf4a1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x5578acd308d0, receiver=receiver@entry=0x5578ad0680f0, e=e@entry=0x7f861402d2c0) at kernel/qapplication.cpp:3728
#18 0x00007f8661de6af0 in QApplication::notify(QObject*, QEvent*) (this=0x7fff27d18be0, receiver=0x5578ad0680f0, e=0x7f861402d2c0) at kernel/qapplication.cpp:3487
#19 0x00007f8661292e09 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5578ad0680f0, event=0x7f861402d2c0) at ../../include/QtCore/5.11.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:307
#20 0x00007f8661295dfb in QCoreApplication::sendEvent(QObject*, QEvent*) (event=0x7f861402d2c0, receiver=<optimized out>) at kernel/qcoreapplication.h:234
#21 0x00007f8661295dfb in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5578accc9a40) at kernel/qcoreapplication.cpp:1745
#22 0x00007f86612e5493 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5578ace964c0) at kernel/qeventdispatcher_glib.cpp:276
#23 0x00007f865e63fc15 in g_main_dispatch (context=0x7f8644004ff0) at gmain.c:3182
#24 0x00007f865e63fc15 in g_main_context_dispatch (context=context@entry=0x7f8644004ff0) at gmain.c:3847
#25 0x00007f865e63ffd8 in g_main_context_iterate (context=context@entry=0x7f8644004ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3920
#26 0x00007f865e64006c in g_main_context_iteration (context=0x7f8644004ff0, may_block=may_block@entry=1) at gmain.c:3981
#27 0x00007f86612e4ac3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5578acdb1ed0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#28 0x00007f864c7999d1 in  () at /usr/lib64/libQt5XcbQpa.so.5
#29 0x00007f8661291adb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff27d18b40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#30 0x00007f8661299c52 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#31 0x00007f8662b3f17e in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#32 0x00005578ab45a6a1 in Akonadi::ResourceBase::init<ImapResource>(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:182
#33 0x00007f8660ad7feb in __libc_start_main (main=0x5578ab45a510 <main(int, char**)>, argc=3, argv=0x7fff27d18cf8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff27d18ce8) at ../csu/libc-start.c:308
#34 0x00005578ab45a54a in _start () at ../sysdeps/x86_64/start.S:120
[Inferior 1 (process 10436) detached]


STEPS TO REPRODUCE
1. Leave KMail with GMail account open for a long time
2. Try to toggle the account online/offline when it gets stuck

OBSERVED RESULT
IMAP resource crashes

EXPECTED RESULT
IMAP resource should not get stuck and should not crash when toggling online/offline state

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 5.14.2 
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2
Comment 1 Christoph Feck 2019-12-19 15:38:41 UTC
There seems to be an issue with Akonadi::AgentBase::setOnline(). Also crashes for other Akonadi components, see bug 411089 and bug 411378.
Comment 2 Justin Zobel 2022-09-30 04:38:03 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-10-15 04:55:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-10-30 05:03:58 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!