Bug 439668

Summary: Discover crashes when cancelling Flatpak installation
Product: [Applications] Discover Reporter: John Vincent <corcegajovic>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: crash CC: aleixpol, reg
Priority: NOR Keywords: drkonqi
Version: 5.22.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.23.0
Sentry Crash Report:

Description John Vincent 2021-07-09 09:19:37 UTC
Application: plasma-discover (5.22.3)

Qt Version: 5.15.3
Frameworks Version: 5.83.0
Operating System: Linux 5.8.0-59-generic x86_64
Windowing System: X11
Drkonqi Version: 5.22.3
Distribution: KDE neon User Edition 5.22

-- Information about the crash:
- What I was doing when the application crashed:
Clicked the 'cancel' button on a Flatpak that is currently under installation. The Discover app crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: Discover (plasma-discover), signal: Aborted

[New LWP 15678]
[New LWP 15679]
[New LWP 15680]
[New LWP 15681]
[New LWP 15682]
[New LWP 15683]
[New LWP 15721]
[New LWP 15723]
[New LWP 15765]
[New LWP 15766]
[New LWP 15768]
[New LWP 15788]
[New LWP 19066]
[New LWP 20077]
[New LWP 20524]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007ff8eb8f9dff in __GI___wait4 (pid=20546, stat_loc=0x0, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
[Current thread is 1 (Thread 0x7ff8e72f8e40 (LWP 15676))]

Thread 16 (Thread 0x7ff8957fa700 (LWP 20524)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ff8ebcb60f5 in QBasicMutex::lockInternal() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ff8ebcb5487 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ff8ebcb5dc4 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#5  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 15 (Thread 0x7ff86dffe700 (LWP 20077)):
#0  __GI___libc_read (nbytes=16, buf=0x7ff86dffd9d0, fd=13) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=13, buf=0x7ff86dffd9d0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007ff8ea2fab2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b1ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ff8ebef6fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ebe9b25b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ff8ebcb4c22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ff8eda2e3ba in  () at /lib/x86_64-linux-gnu/libQt5Quick.so.5
#10 0x00007ff8ebcb5dbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7ff86ffff700 (LWP 19066)):
#0  __GI___libc_read (nbytes=16, buf=0x7ff86fffeb60, fd=32) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=32, buf=0x7ff86fffeb60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007ff8ea2fab2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b1ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ff8ac1f999d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#7  0x00007ff8ea2dbad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7ff8ad01a700 (LWP 15788)):
#0  __GI___libc_read (nbytes=16, buf=0x7ff8ad019a10, fd=37) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=37, buf=0x7ff8ad019a10, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007ff8ea2fab2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b1ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ff8ebef6fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ebe9b25b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ff8ebcb4c22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ff8ebcb5dbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7ff895ffb700 (LWP 15768)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5642e3c6b360) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5642e3c6b310, cond=0x5642e3c6b338) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5642e3c6b338, mutex=0x5642e3c6b310) at pthread_cond_wait.c:638
#3  0x00007ff8ebcbbf2b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ff8edaf3b44 in  () at /lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007ff8edaf3fb9 in  () at /lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007ff8ebcb5dbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7ff896ffd700 (LWP 15766)):
#0  0x00007ff8eb929aff in __GI___poll (fds=0x7ff88c0ecda0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ff8ea2b236e in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ebef6fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ff8ebe9b25b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ff8ebcb4c22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ff8ebcb5dbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7ff8977fe700 (LWP 15765)):
#0  0x00007ff8ea2b02c0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ff8ea2b1cbf in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ebef6fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ff8ebe9b25b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ff8ebcb4c22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ebcb5dbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7ff8ae378700 (LWP 15723)):
#0  __GI___libc_read (nbytes=16, buf=0x7ff8ae377b50, fd=21) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=21, buf=0x7ff8ae377b50, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007ff8ea2fab2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b1ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff8ea2b26f3 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ff8e9e6ef8a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x00007ff8ea2dbad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7ff8af37a700 (LWP 15721)):
#0  __GI___libc_read (nbytes=16, buf=0x7ff8af379b60, fd=19) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=19, buf=0x7ff8af379b60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007ff8ea2fab2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b1ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ff8ea2b24f1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ff8ea2dbad1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7ff8cbfff700 (LWP 15683)):
#0  __GI___libc_read (nbytes=16, buf=0x7ff8cbffe9f0, fd=10) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=10, buf=0x7ff8cbffe9f0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007ff8ea2fab2f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b1ebe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ff8ebef6fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ebe9b25b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ff8ebcb4c22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007ff8ecb6a559 in QQmlThreadPrivate::run() (this=0x5642e3c113b0) at qml/ftw/qqmlthread.cpp:155
#10 0x00007ff8ebcb5dbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7ff8dcfa9700 (LWP 15682)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5642e3d9bd28) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5642e3d9bcd8, cond=0x5642e3d9bd00) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5642e3d9bd00, mutex=0x5642e3d9bcd8) at pthread_cond_wait.c:638
#3  0x00007ff8ded07e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff8ded07a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7ff8dd7aa700 (LWP 15681)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5642e3d9bd28) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5642e3d9bcd8, cond=0x5642e3d9bd00) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5642e3d9bd00, mutex=0x5642e3d9bcd8) at pthread_cond_wait.c:638
#3  0x00007ff8ded07e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff8ded07a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7ff8ddfab700 (LWP 15680)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5642e3d9bd2c) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5642e3d9bcd8, cond=0x5642e3d9bd00) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5642e3d9bd00, mutex=0x5642e3d9bcd8) at pthread_cond_wait.c:638
#3  0x00007ff8ded07e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff8ded07a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7ff8de7ac700 (LWP 15679)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5642e3d9bd2c) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5642e3d9bcd8, cond=0x5642e3d9bd00) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5642e3d9bd00, mutex=0x5642e3d9bcd8) at pthread_cond_wait.c:638
#3  0x00007ff8ded07e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff8ded07a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ff8e4d90700 (LWP 15678)):
#0  0x00007ff8ea2ae8ed in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ff8ea2b0345 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff8ea2b1cbf in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff8ea2b2312 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff8ebef6fcb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ff8ebe9b25b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ebcb4c22 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ff8ed49ff4b in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007ff8ebcb5dbc in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ff8ead0e609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007ff8eb936293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ff8e72f8e40 (LWP 15676)):
[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5  0x00007ff8eb839859 in __GI_abort () at abort.c:79
#6  0x00007ff8ebc7abf7 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ff8ebc7b4a8 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ff8adb694ad in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/flatpak-backend.so
#9  0x00007ff8adb68cc5 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/flatpak-backend.so
#10 0x00007ff8adb68d1d in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/flatpak-backend.so
#11 0x00007ff8ebeca093 in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ff8eceefdc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ff8ecef8bb8 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ff8ebe9c75a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ff8ebe9f061 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ff8ebef7957 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ff8ea2b217d in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ff8ea2b2400 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ff8ea2b24a3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ff8ebef6fb2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ff8ebe9b25b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ff8ebea3414 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00005642e1f735f2 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./discover/main.cpp:196
[Inferior 1 (process 15676) detached]

The reporter indicates this bug may be a duplicate of or related to bug 425680.

Possible duplicates by query: bug 439605, bug 439386, bug 439305, bug 439103, bug 439043.

Reported using DrKonqi
Comment 1 Aleix Pol 2021-07-10 00:00:29 UTC
I could reproduce as well.

#0  0x00007f26d4c2dd22 in raise () from /usr/lib/libc.so.6
[Current thread is 1 (Thread 0x7f26d05b7ac0 (LWP 263494))]
(gdb) where
#0  0x00007f26d4c2dd22 in raise () at /usr/lib/libc.so.6
#1  0x00007f26d738af10 in KCrash::defaultCrashHandler(int) (sig=6) at /home/apol/devel/frameworks/kcrash/src/kcrash.cpp:603
#2  0x00007f26d4c2dda0 in <signal handler called> () at /usr/lib/libc.so.6
#3  0x00007f26d4c2dd22 in raise () at /usr/lib/libc.so.6
#4  0x00007f26d4c17862 in abort () at /usr/lib/libc.so.6
#5  0x00007f26d51f0bb1 in qt_message_fatal (message=<synthetic pointer>..., context=...) at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/global/qlogging.cpp:1914
#6  QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7ffcf396eec0, msg=msg@entry=0x7f26d54f56c0 "QThread: Destroyed while thread is still running") at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/global/qlogging.cpp:893
#7  0x00007f26d51f1419 in QThread::~QThread() (this=<optimized out>, __in_chrg=<optimized out>) at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/thread/qthread.cpp:456
#8  0x00007f265065c23e in FlatpakTransactionThread::~FlatpakTransactionThread() (this=0x557d1d021fd0) at /home/apol/devel/frameworks/discover/libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.cpp:79
#9  0x00007f265065c269 in FlatpakTransactionThread::~FlatpakTransactionThread() (this=0x557d1d021fd0) at /home/apol/devel/frameworks/discover/libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.cpp:76
#10 0x00007f265065a823 in FlatpakJobTransaction::~FlatpakJobTransaction() (this=0x7f25e834c3f0) at /home/apol/devel/frameworks/discover/libdiscover/backends/FlatpakBackend/FlatpakJobTransaction.cpp:30
#11 0x00007f265065a869 in FlatpakJobTransaction::~FlatpakJobTransaction() (this=0x7f25e834c3f0) at /home/apol/devel/frameworks/discover/libdiscover/backends/FlatpakBackend/FlatpakJobTransaction.cpp:29
#12 0x00007f26d543be7f in QObject::event(QEvent*) (this=0x7f25e834c3f0, e=0x557d1c918d80) at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qobject.cpp:1301
#13 0x00007f26d667c6cf in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x7f25e834c3f0, e=0x557d1c918d80) at /home/apol/devel/frameworks/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3632
#14 0x00007f26d540f9ca in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7f25e834c3f0, event=0x557d1c918d80) at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1064
#15 0x00007f26d5412a17 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x557d1abe6100) at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1821
#16 0x00007f26d5467963 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x557d1ac0e4d0) at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#17 0x00007f26d1f3510c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#18 0x00007f26d1f88b99 in  () at /usr/lib/libglib-2.0.so.0
#19 0x00007f26d1f32871 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#20 0x00007f26d5466fe4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x557d1abd34b0, flags=...) at /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#21 0x00007f26d540e3cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffcf396f360, flags=..., flags@entry=...) at ../../include/QtCore/../../../../../devel/frameworks/qt5/qtbase/src/corelib/global/qflags.h:69
#22 0x00007f26d54166b0 in QCoreApplication::exec() () at ../../include/QtCore/../../../../../devel/frameworks/qt5/qtbase/src/corelib/global/qflags.h:121
#23 0x0000557d194b49cd in main(int, char**) (argc=4, argv=0x7ffcf396fa48) at /home/apol/devel/frameworks/discover/discover/main.cpp:212
Comment 2 Aleix Pol 2021-07-10 00:41:19 UTC
Git commit f83885bcc625215180b4b1ee82645cbbffd84628 by Aleix Pol.
Committed on 10/07/2021 at 00:39.
Pushed by apol into branch 'master'.

flatpak: Improve how we react to cancelled jobs

Use flatpak_installation as source of truth for the new package state.
Don't set the job as cancelled until it's ready to be destroyed.

M  +1    -1    libdiscover/backends/FlatpakBackend/FlatpakBackend.h
M  +14   -17   libdiscover/backends/FlatpakBackend/FlatpakJobTransaction.cpp
M  +1    -0    libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.cpp
M  +5    -0    libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.h

https://invent.kde.org/plasma/discover/commit/f83885bcc625215180b4b1ee82645cbbffd84628
Comment 3 Aleix Pol 2021-12-06 03:28:10 UTC
*** Bug 446535 has been marked as a duplicate of this bug. ***