Bug 420669

Summary: Kontact (KMail?) crash on exit
Product: [Applications] kontact Reporter: Louis Moureaux <m_louis30>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: damien.rembert, giecrilj, hans.tovetjarn, kenny1, linuxuser, matthias.nagel, nicolas.fella, pub, solbeziel
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Louis Moureaux 2020-04-27 15:03:18 UTC
Application: kontact (5.13.3 (19.12.3))

Qt Version: 5.14.1
Frameworks Version: 5.68.0
Operating System: Linux 4.15.0-91-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

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

Kontact crashed when exiting the application. Unfortunately I don't have much more information than the attahed backtrace.

The crash does not seem to be reproducible.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5756c29c00 (LWP 13570))]

Thread 19 (Thread 0x7f56f6ffd700 (LWP 26032)):
#0  0x00007f574ef7ded9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7f56f6ffc6b0, expected=0, futex_word=0x7f56f6ffc878) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  0x00007f574ef7ded9 in __pthread_cond_wait_common (abstime=0x7f56f6ffc750, mutex=0x7f56f6ffc828, cond=0x7f56f6ffc850) at pthread_cond_wait.c:533
#2  0x00007f574ef7ded9 in __pthread_cond_timedwait (cond=0x7f56f6ffc850, mutex=0x7f56f6ffc828, abstime=0x7f56f6ffc750) at pthread_cond_wait.c:667
#3  0x00007f5743d0b236 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x00000000001046b8 in  ()
#5  0x0000000025357621 in  ()
#6  0x0000000000104697 in  ()
#7  0x00000000253581d9 in  ()
#8  0x0000000000000000 in  ()

Thread 18 (Thread 0x7f5710ec8700 (LWP 20939)):
#0  0x00007f5753444bf9 in __GI___poll (fds=0x7f56ec03a2e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f574d0a95c9 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f574d0a96dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5753fc30db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f56ec02ad40, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f5753f6263a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f5710ec79a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f5753d73317 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:536
#6  0x00007f5753d747ec in QThreadPrivate::start(void*) (arg=0x55eacf543870) at thread/qthread_unix.cpp:342
#7  0x00007f574ef776db in start_thread (arg=0x7f5710ec8700) at pthread_create.c:463
#8  0x00007f575345188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 17 (Thread 0x7f568e35c700 (LWP 13658)):
#0  0x00007f574d0ef629 in g_mutex_lock () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f574d0a8fec in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f574d0a9570 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f574d0a96dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5753fc30db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f5688000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5753f6263a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f568e35b9a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f5753d73317 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:536
#7  0x00007f5753d747ec in QThreadPrivate::start(void*) (arg=0x55ead49ece80) at thread/qthread_unix.cpp:342
#8  0x00007f574ef776db in start_thread (arg=0x7f568e35c700) at pthread_create.c:463
#9  0x00007f575345188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 16 (Thread 0x7f5695de2700 (LWP 13635)):
#0  0x00007f574ef7d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f5695de1888) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f574ef7d9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f5695de1838, cond=0x7f5695de1860) at pthread_cond_wait.c:502
#2  0x00007f574ef7d9f3 in __pthread_cond_wait (cond=0x7f5695de1860, mutex=0x7f5695de1838) at pthread_cond_wait.c:655
#3  0x00007f5743d0b13a in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x0000000000000000 in  ()

Thread 15 (Thread 0x7f56abfff700 (LWP 13611)):
#0  0x00007f5753444bf9 in __GI___poll (fds=0x7f56a0006f10, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f574d0a95c9 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f574d0a96dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5753fc30db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f56a0000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f5753f6263a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f56abffe9a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f5753d73317 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:536
#6  0x00007f5753d747ec in QThreadPrivate::start(void*) (arg=0x55eacf09da20) at thread/qthread_unix.cpp:342
#7  0x00007f574ef776db in start_thread (arg=0x7f56abfff700) at pthread_create.c:463
#8  0x00007f575345188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7f56b19d1700 (LWP 13609)):
#0  0x00007f5753444bf9 in __GI___poll (fds=0x7f56ac0029e0, nfds=1, timeout=9501) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f574d0a95c9 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f574d0a96dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5753fc30db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f56ac000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f5753f6263a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f56b19d09a0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f5753d73317 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:536
#6  0x00007f5753d747ec in QThreadPrivate::start(void*) (arg=0x55eacf098210) at thread/qthread_unix.cpp:342
#7  0x00007f574ef776db in start_thread (arg=0x7f56b19d1700) at pthread_create.c:463
#8  0x00007f575345188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7f56d5566700 (LWP 13598)):
#0  0x00007f574ef7d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f56d5565888) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f574ef7d9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f56d5565838, cond=0x7f56d5565860) at pthread_cond_wait.c:502
#2  0x00007f574ef7d9f3 in __pthread_cond_wait (cond=0x7f56d5565860, mutex=0x7f56d5565838) at pthread_cond_wait.c:655
#3  0x00007f5743d0b13a in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x0000000000000000 in  ()

Thread 12 (Thread 0x7f56d5d67700 (LWP 13597)):
#0  0x00007f57534606ac in __lll_lock_wait_private () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95
#1  0x00007f5753462474 in ___fprintf_chk (fp=0x7f575371d8b0 <_IO_stdfile_2_lock>, flag=1, format=0x7f573b4fe6a8 "[%s] %s\n") at fprintf_chk.c:30
#2  0x00007f573b4e69ad in event_logv_ () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#3  0x00007f573b4e6b44 in event_warn () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#4  0x00007f573b4e846c in  () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#5  0x00007f573b4de114 in event_base_loop () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#6  0x00007f5743d1296b in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#7  0x000155eacef0ce98 in  ()
#8  0x00007f56d5d66820 in  ()
#9  0x00007f56d5d66818 in  ()
#10 0x00007f56c4002560 in  ()
#11 0x00007f56d5d668f0 in  ()
#12 0x0000000001bc6506 in  ()
#13 0x000000000000001d in  ()
#14 0x000000000001e3c6 in  ()
#15 0x000055eacef0ce90 in  ()
#16 0x000055eacef0ce80 in  ()
#17 0x7fffffffffffffff in  ()
#18 0x0000000000000001 in  ()
#19 0x00007f56c40024e0 in  ()
#20 0x0000000000000000 in  ()

Thread 11 (Thread 0x7f56d6ffd700 (LWP 13596)):
#0  0x00007f574ef7d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f56d6ffc788) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f574ef7d9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f56d6ffc738, cond=0x7f56d6ffc760) at pthread_cond_wait.c:502
#2  0x00007f574ef7d9f3 in __pthread_cond_wait (cond=0x7f56d6ffc760, mutex=0x7f56d6ffc738) at pthread_cond_wait.c:655
#3  0x00007f5743d0b13a in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x0000000000000000 in  ()

Thread 10 (Thread 0x7f56d77fe700 (LWP 13595)):
#0  0x00007f57534606ac in __lll_lock_wait_private () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95
#1  0x00007f5753462474 in ___fprintf_chk (fp=0x7f575371d8b0 <_IO_stdfile_2_lock>, flag=1, format=0x7f573b4fe6a8 "[%s] %s\n") at fprintf_chk.c:30
#2  0x00007f573b4e69ad in event_logv_ () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#3  0x00007f573b4e6b44 in event_warn () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#4  0x00007f573b4e846c in  () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#5  0x00007f573b4de114 in event_base_loop () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#6  0x00007f5743d1296b in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#7  0x00017f56c8002128 in  ()
#8  0x00007f56d77fd820 in  ()
#9  0x00007f56d77fd818 in  ()
#10 0x00007f56cc002560 in  ()
#11 0x00007f56d77fd8f0 in  ()
#12 0x00007f56cc0024e0 in  ()
#13 0x00007f56c8001f80 in  ()
#14 0x00007f57533c72ed in __GI___libc_malloc (bytes=140010699366656) at malloc.c:3065
#15 0x0000000000000000 in  ()

Thread 9 (Thread 0x7f56f4ff9700 (LWP 13594)):
#0  0x00007f574ef7ded9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7f56f4ff85b0, expected=0, futex_word=0x7f56f4ff8778) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  0x00007f574ef7ded9 in __pthread_cond_wait_common (abstime=0x7f56f4ff8650, mutex=0x7f56f4ff8728, cond=0x7f56f4ff8750) at pthread_cond_wait.c:533
#2  0x00007f574ef7ded9 in __pthread_cond_timedwait (cond=0x7f56f4ff8750, mutex=0x7f56f4ff8728, abstime=0x7f56f4ff8650) at pthread_cond_wait.c:667
#3  0x00007f5743d0b236 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x00000000001046b5 in  ()
#5  0x0000000024dc5025 in  ()
#6  0x0000000000104697 in  ()
#7  0x0000000024dcb1cd in  ()
#8  0x0000000000000000 in  ()

Thread 8 (Thread 0x7f56d7fff700 (LWP 13593)):
#0  0x00007f574ef7d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f56d7ffe788) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f574ef7d9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x7f56d7ffe738, cond=0x7f56d7ffe760) at pthread_cond_wait.c:502
#2  0x00007f574ef7d9f3 in __pthread_cond_wait (cond=0x7f56d7ffe760, mutex=0x7f56d7ffe738) at pthread_cond_wait.c:655
#3  0x00007f5743d0b13a in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x0000000000000000 in  ()

Thread 7 (Thread 0x7f56f57fa700 (LWP 13592)):
#0  0x00007f574ef7d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55eacedd866c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f574ef7d9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x55eacedd85a8, cond=0x55eacedd8640) at pthread_cond_wait.c:502
#2  0x00007f574ef7d9f3 in __pthread_cond_wait (cond=0x55eacedd8640, mutex=0x55eacedd85a8) at pthread_cond_wait.c:655
#3  0x00007f5743d0b13a in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#4  0x0000000000000000 in  ()

Thread 6 (Thread 0x7f57116c9700 (LWP 13585)):
#0  0x00007f5753440187 in __GI___libc_write (fd=2, buf=0x7f57116c5b00, nbytes=50) at ../sysdeps/unix/sysv/linux/write.c:27
#1  0x00007f57533bb1bd in _IO_new_file_write (f=0x7f575371c680 <_IO_2_1_stderr_>, data=0x7f57116c5b00, n=50) at fileops.c:1203
#2  0x00007f57533bbb2f in new_do_write (to_do=<optimized out>, data=0x7f57116c5b00 "[warn] epoll_wait: Mauvais descripteur de fichier\n", fp=0x7f575371c680 <_IO_2_1_stderr_>) at fileops.c:457
#3  0x00007f57533bbb2f in _IO_new_file_xsputn (f=0x7f575371c680 <_IO_2_1_stderr_>, data=<optimized out>, n=50) at fileops.c:1277
#4  0x00007f575338e707 in buffered_vfprintf (s=s@entry=0x7f575371c680 <_IO_2_1_stderr_>, format=format@entry=0x7f573b4fe6a8 "[%s] %s\n", args=args@entry=0x7f57116c80c0) at vfprintf.c:2350
#5  0x00007f575338b726 in _IO_vfprintf_internal (s=s@entry=0x7f575371c680 <_IO_2_1_stderr_>, format=0x7f573b4fe6a8 "[%s] %s\n", ap=ap@entry=0x7f57116c80c0) at vfprintf.c:1301
#6  0x00007f57534624c6 in ___fprintf_chk (fp=0x7f575371c680 <_IO_2_1_stderr_>, flag=1, format=<optimized out>) at fprintf_chk.c:35
#7  0x00007f573b4e69ad in event_logv_ () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#8  0x00007f573b4e6b44 in event_warn () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#9  0x00007f573b4e846c in  () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#10 0x00007f573b4de114 in event_base_loop () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#11 0x00007f5743d12a96 in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#12 0x00017f56fc0023a0 in  ()
#13 0x00007f57116c8800 in  ()
#14 0x00007f57116c87f8 in  ()
#15 0x00007f56fc002420 in  ()
#16 0x00007f56fc0023a0 in  ()
#17 0x0000000000001905 in  ()
#18 0x0000000000000000 in  ()

Thread 5 (Thread 0x7f57126cb700 (LWP 13583)):
#0  0x00007f57534606ac in __lll_lock_wait_private () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:95
#1  0x00007f5753462474 in ___fprintf_chk (fp=0x7f575371d8b0 <_IO_stdfile_2_lock>, flag=1, format=0x7f573b4fe6a8 "[%s] %s\n") at fprintf_chk.c:30
#2  0x00007f573b4e69ad in event_logv_ () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#3  0x00007f573b4e6b44 in event_warn () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#4  0x00007f573b4e846c in  () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#5  0x00007f573b4de114 in event_base_loop () at /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
#6  0x00007f5743d1296b in  () at /usr/lib/x86_64-linux-gnu/libQt5WebEngineCore.so.5
#7  0x000155eaced28db8 in  ()
#8  0x00007f57126ca800 in  ()
#9  0x00007f57126ca7f8 in  ()
#10 0x00007f56f8002640 in  ()
#11 0x00007f57126ca8d0 in  ()
#12 0x000000005c8a5c3f in  ()
#13 0x0000000000000610 in  ()
#14 0x000000000008b83f in  ()
#15 0x000055eaced28db0 in  ()
#16 0x000055eaced28da0 in  ()
#17 0x7fffffffffffffff in  ()
#18 0x0000000000000001 in  ()
#19 0x00007f56f80024e0 in  ()
#20 0x0000000000000000 in  ()

Thread 4 (Thread 0x7f571a441700 (LWP 13573)):
#0  0x00007f57534400b4 in __GI___libc_read (fd=8, buf=0x7f571a440760, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f574d0ee2b0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f574d0a90b7 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f574d0a9570 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f574d0a96dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5753fc30db in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f570c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f5753f6263a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f571a440970, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f5753d73317 in QThread::exec() (this=this@entry=0x7f5752900da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:536
#8  0x00007f5752688555 in QDBusConnectionManager::run() (this=0x7f5752900da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#9  0x00007f5753d747ec in QThreadPrivate::start(void*) (arg=0x7f5752900da0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:342
#10 0x00007f574ef776db in start_thread (arg=0x7f571a441700) at pthread_create.c:463
#11 0x00007f575345188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f571c68e700 (LWP 13572)):
#0  0x00007f574ef7d9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55eace9c292c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f574ef7d9f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x55eace9c28d8, cond=0x55eace9c2900) at pthread_cond_wait.c:502
#2  0x00007f574ef7d9f3 in __pthread_cond_wait (cond=0x55eace9c2900, mutex=0x55eace9c28d8) at pthread_cond_wait.c:655
#3  0x00007f571dd2becb in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f571dd2bac7 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f574ef776db in start_thread (arg=0x7f571c68e700) at pthread_create.c:463
#6  0x00007f575345188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f5726890700 (LWP 13571)):
#0  0x00007f5753444bf9 in __GI___poll (fds=0x7f572688f8a8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f574f5a5747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f574f5a736a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f57289d7cc0 in QXcbEventQueue::run() (this=0x55eace963440) at qxcbeventqueue.cpp:228
#4  0x00007f5753d747ec in QThreadPrivate::start(void*) (arg=0x55eace963440) at thread/qthread_unix.cpp:342
#5  0x00007f574ef776db in start_thread (arg=0x7f5726890700) at pthread_create.c:463
#6  0x00007f575345188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f5756c29c00 (LWP 13570)):
[KCrash Handler]
#6  0x00007f56b73f3f8b in KMReaderMainWin::~KMReaderMainWin() () at /usr/lib/x86_64-linux-gnu/libkmailprivate.so.5
#7  0x00007f56b73f4059 in KMReaderMainWin::~KMReaderMainWin() () at /usr/lib/x86_64-linux-gnu/libkmailprivate.so.5
#8  0x00007f5753f96eb5 in QObject::event(QEvent*) (this=this@entry=0x7f570c063970, e=e@entry=0x7f56c0120270) at kernel/qobject.cpp:1326
#9  0x00007f5754e8ea03 in QWidget::event(QEvent*) (this=this@entry=0x7f570c063970, event=event@entry=0x7f56c0120270) at kernel/qwidget.cpp:9092
#10 0x00007f5754f9bbd0 in QMainWindow::event(QEvent*) (this=0x7f570c063970, event=0x7f56c0120270) at widgets/qmainwindow.cpp:1341
#11 0x00007f5755d11df1 in KMainWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#12 0x00007f5755d53197 in KXmlGuiWindow::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#13 0x00007f5754e4d8bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55eace95fdd0, receiver=receiver@entry=0x7f570c063970, e=e@entry=0x7f56c0120270) at kernel/qapplication.cpp:3684
#14 0x00007f5754e54ac0 in QApplication::notify(QObject*, QEvent*) (this=0x7fffc7d4f560, receiver=0x7f570c063970, e=0x7f56c0120270) at kernel/qapplication.cpp:3430
#15 0x00007f5753f63db8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7f570c063970, event=0x7f56c0120270) at kernel/qcoreapplication.cpp:1092
#16 0x00007f5753f63f8e in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=receiver@entry=0x7f570c063970, event=event@entry=0x7f56c0120270) at kernel/qcoreapplication.cpp:1487
#17 0x00007f5753f66a31 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55eace934ff0) at kernel/qcoreapplication.cpp:1832
#18 0x00007f5753f66fc8 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1691
#19 0x00007f5753fc3a13 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55eace9b0c50) at kernel/qeventdispatcher_glib.cpp:277
#20 0x00007f574d0a9417 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f574d0a9650 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f574d0a96dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f5753fc30bc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55eace9c2d10, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#24 0x00007f5753f6263a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffc7d4f430, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#25 0x00007f5753f6bdb0 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1400
#26 0x000055eacdaa7465 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:229

Possible duplicates by query: bug 420497, bug 420495, bug 420414, bug 420366, bug 420192.

Reported using DrKonqi
Comment 1 Nicolas Fella 2022-01-06 12:13:30 UTC
*** Bug 448017 has been marked as a duplicate of this bug. ***
Comment 2 Nicolas Fella 2022-01-06 12:14:23 UTC
*** Bug 421095 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas Fella 2022-01-06 12:16:12 UTC
*** Bug 428549 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas Fella 2022-01-06 12:17:05 UTC
*** Bug 432709 has been marked as a duplicate of this bug. ***
Comment 5 Nicolas Fella 2022-01-06 12:18:06 UTC
*** Bug 437111 has been marked as a duplicate of this bug. ***
Comment 6 Nicolas Fella 2022-01-06 12:19:14 UTC
Posting the backtrace from https://bugs.kde.org/show_bug.cgi?id=437111 since it has debug symbols:

Application: Kontact (kontact), signal: Segmentation fault
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7fe6f6a57ec0 (LWP 1853))]
[KCrash Handler]
#6  0x00007fe65110e321 in KMReaderMainWin::~KMReaderMainWin() (this=this@entry=0x7fe67c02a490, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-apps/kmail-20.12.3/work/kmail-20.12.3/src/kmreadermainwin.cpp:115
#7  0x00007fe65110e409 in KMReaderMainWin::~KMReaderMainWin() (this=0x7fe67c02a490, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-apps/kmail-20.12.3/work/kmail-20.12.3/src/kmreadermainwin.cpp:117
#8  0x00007fe709aa4d8f in QObject::event(QEvent*) (this=this@entry=0x7fe67c02a490, e=e@entry=0x7fe67c06c370) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r2/work/qtbase-everywhere-src-5.15.2/src/corelib/kernel/qobject.cpp:1301
#9  0x00007fe70a4b57c3 in QWidget::event(QEvent*) (this=this@entry=0x7fe67c02a490, event=event@entry=0x7fe67c06c370) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2/work/qtbase-everywhere-src-5.15.2/src/widgets/kernel/qwidget.cpp:9080
#10 0x00007fe70a5c9734 in QMainWindow::event(QEvent*) (this=this@entry=0x7fe67c02a490, event=event@entry=0x7fe67c06c370) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2/work/qtbase-everywhere-src-5.15.2/src/widgets/widgets/qmainwindow.cpp:1341
#11 0x00007fe70accfedb in KMainWindow::event(QEvent*) (this=this@entry=0x7fe67c02a490, ev=ev@entry=0x7fe67c06c370) at /var/tmp/portage/kde-frameworks/kxmlgui-5.80.0/work/kxmlgui-5.80.0/src/kmainwindow.cpp:913
#12 0x00007fe70ad19fb7 in KXmlGuiWindow::event(QEvent*) (this=0x7fe67c02a490, ev=0x7fe67c06c370) at /var/tmp/portage/kde-frameworks/kxmlgui-5.80.0/work/kxmlgui-5.80.0/src/kxmlguiwindow.cpp:109
#13 0x00007fe70a473d3f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55f6cdd183f0, receiver=receiver@entry=0x7fe67c02a490, e=e@entry=0x7fe67c06c370) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2/work/qtbase-everywhere-src-5.15.2/src/widgets/kernel/qapplication.cpp:3632
#14 0x00007fe70a47c950 in QApplication::notify(QObject*, QEvent*) (this=0x7ffeaf399a20, receiver=0x7fe67c02a490, e=0x7fe67c06c370) at /var/tmp/portage/dev-qt/qtwidgets-5.15.2/work/qtbase-everywhere-src-5.15.2/src/widgets/kernel/qapplication.cpp:3156
#15 0x00007fe709a79817 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7fe67c02a490, event=0x7fe67c06c370) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r2/work/qtbase-everywhere-src-5.15.2/src/corelib/kernel/qcoreapplication.cpp:1063
#16 0x00007fe709a7c340 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55f6cdd08f90) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r2/work/qtbase-everywhere-src-5.15.2/src/corelib/kernel/qcoreapplication.cpp:1817
#17 0x00007fe709acee73 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55f6cdd92b50) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r2/work/qtbase-everywhere-src-5.15.2/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#18 0x00007fe7003e1c7c in g_main_dispatch (context=0x7fe6f0005000) at ../glib-2.66.7/glib/gmain.c:3325
#19 g_main_context_dispatch (context=context@entry=0x7fe6f0005000) at ../glib-2.66.7/glib/gmain.c:4043
#20 0x00007fe7003e1ef8 in g_main_context_iterate (context=context@entry=0x7fe6f0005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib-2.66.7/glib/gmain.c:4119
#21 0x00007fe7003e1f8f in g_main_context_iteration (context=0x7fe6f0005000, may_block=may_block@entry=1) at ../glib-2.66.7/glib/gmain.c:4184
#22 0x00007fe709acec20 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55f6cdd8e230, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r2/work/qtbase-everywhere-src-5.15.2/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#23 0x00007fe709a78663 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffeaf399900, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.15.2-r2/work/qtbase-everywhere-src-5.15.2/include/QtCore/../../src/corelib/global/qflags.h:69
#24 0x00007fe709a805a0 in QCoreApplication::exec() () at /var/tmp/portage/dev-qt/qtcore-5.15.2-r2/work/qtbase-everywhere-src-5.15.2/include/QtCore/../../src/corelib/global/qflags.h:121
#25 0x000055f6cd407027 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/kontact-20.12.3/work/kontact-20.12.3/src/main.cpp:217
Comment 7 Nicolas Fella 2022-01-06 12:22:00 UTC
*** Bug 444916 has been marked as a duplicate of this bug. ***
Comment 8 Nicolas Fella 2022-01-06 12:23:57 UTC
*** Bug 445427 has been marked as a duplicate of this bug. ***
Comment 9 Nicolas Fella 2022-01-06 12:24:35 UTC
*** Bug 416986 has been marked as a duplicate of this bug. ***
Comment 10 Bug Janitor Service 2022-01-06 13:57:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kmail/-/merge_requests/53
Comment 11 Laurent Montel 2022-01-06 19:06:31 UTC
Git commit 06848bf8d9685858fc348d9ab0f7a5a998264918 by Laurent Montel, on behalf of Nicolas Fella.
Committed on 06/01/2022 at 19:00.
Pushed by mlaurent into branch 'master'.

Don't access KMKernel when destructing KMReaderMainWin

At this point the kernel is already deleted by KMailPart, so we are accessing a nullptr.

Since we know which config we want to access we can do that directly.

M  +1    -1    src/kmreadermainwin.cpp

https://invent.kde.org/pim/kmail/commit/06848bf8d9685858fc348d9ab0f7a5a998264918