Bug 391941 - Crash when flatpak installation is canceled
Summary: Crash when flatpak installation is canceled
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-16 17:43 UTC by Patrick Silva
Modified: 2018-04-05 01:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2018-03-16 17:43:50 UTC
Crash reproducible on Arch (Discover 5.12.3) and neon dev unstable

choose a flatpak from flathub and click the button to install it
when progress bar to show any progress, click the button to cancel the installation... crash

Thread 44 (Thread 0x7fff9896d700 (LWP 2494)):
#0  0x00007ffff33774d9 in syscall ()
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fffede68cfa in g_cond_wait_until (cond=cond@entry=0x7fffbc00fa78, mutex=mutex@entry=0x7fffbc00fa70, end_time=end_time@entry=9652287447)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread-posix.c:1441
#2  0x00007fffeddf8999 in g_async_queue_pop_intern_unlocked (queue=0x7fffbc00fa70, wait=wait@entry=1, end_time=9652287447)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:422
#3  0x00007fffeddf8ff8 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:570
#4  0x00007fffede4b526 in g_thread_pool_thread_proxy (pool=0x7fffbc004310)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:262
#5  0x00007fffede4b526 in g_thread_pool_thread_proxy (data=<optimized out>)
---Type <return> to continue, or q <return> to quit---
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:296
#6  0x00007fffede4abb5 in g_thread_proxy (data=0x7fff88001f70)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread.c:780
#7  0x00007fffeff1c6ba in start_thread (arg=0x7fff9896d700)
    at pthread_create.c:333
#8  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 43 (Thread 0x7fff9916e700 (LWP 2493)):
#0  0x00007ffff33774d9 in syscall ()
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fffede68cfa in g_cond_wait_until (cond=cond@entry=0x7fffbc00fa78, mutex=mutex@entry=0x7fffbc00fa70, end_time=end_time@entry=9652307306)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread-posix.c:1441
#2  0x00007fffeddf8999 in g_async_queue_pop_intern_unlocked (queue=0x7fffbc00fa70, wait=wait@entry=1, end_time=9652307306)
---Type <return> to continue, or q <return> to quit---
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:422
#3  0x00007fffeddf8ff8 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:570
#4  0x00007fffede4b526 in g_thread_pool_thread_proxy (pool=0x7fffbc004310)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:262
#5  0x00007fffede4b526 in g_thread_pool_thread_proxy (data=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:296
#6  0x00007fffede4abb5 in g_thread_proxy (data=0x7fff84003230)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread.c:780
#7  0x00007fffeff1c6ba in start_thread (arg=0x7fff9916e700)
    at pthread_create.c:333
#8  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 42 (Thread 0x7fff9b7fe700 (LWP 2492)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007ffff33774d9 in syscall ()
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fffede68cfa in g_cond_wait_until (cond=cond@entry=0x7fffbc00fa78, mutex=mutex@entry=0x7fffbc00fa70, end_time=end_time@entry=9652285369)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread-posix.c:1441
#2  0x00007fffeddf8999 in g_async_queue_pop_intern_unlocked (queue=0x7fffbc00fa70, wait=wait@entry=1, end_time=9652285369)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:422
#3  0x00007fffeddf8ff8 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:570
#4  0x00007fffede4b526 in g_thread_pool_thread_proxy (pool=0x7fffbc004310)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:262
#5  0x00007fffede4b526 in g_thread_pool_thread_proxy (data=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:296
#6  0x00007fffede4abb5 in g_thread_proxy (data=0x7fff84003630)
---Type <return> to continue, or q <return> to quit---
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread.c:780
#7  0x00007fffeff1c6ba in start_thread (arg=0x7fff9b7fe700)
    at pthread_create.c:333
#8  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 41 (Thread 0x7fff7b7fe700 (LWP 2491)):
#0  0x00007ffff33774d9 in syscall ()
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fffede68cfa in g_cond_wait_until (cond=cond@entry=0x7fffbc00fa78, mutex=mutex@entry=0x7fffbc00fa70, end_time=end_time@entry=9652307637)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread-posix.c:1441
#2  0x00007fffeddf8999 in g_async_queue_pop_intern_unlocked (queue=0x7fffbc00fa70, wait=wait@entry=1, end_time=9652307637)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:422
#3  0x00007fffeddf8ff8 in g_async_queue_timeout_pop_unlocked (queue=<optimized ---Type <return> to continue, or q <return> to quit---
out>, timeout=timeout@entry=500000)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:570
#4  0x00007fffede4b526 in g_thread_pool_thread_proxy (pool=0x7fffbc004310)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:262
#5  0x00007fffede4b526 in g_thread_pool_thread_proxy (data=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:296
#6  0x00007fffede4abb5 in g_thread_proxy (data=0x7fff84003540)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread.c:780
#7  0x00007fffeff1c6ba in start_thread (arg=0x7fff7b7fe700)
    at pthread_create.c:333
#8  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 35 (Thread 0x7fffa1b64700 (LWP 2469)):
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=1,---Type <return> to continue, or q <return> to quit---
 fds=0x7fff84003c70, timeout=<optimized out>, context=0x7fff8c0186d0)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007fffede2438c in g_main_context_iterate (context=0x7fff8c0186d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede24712 in g_main_loop_run (loop=0x7fff8c019ba0)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4034
#4  0x00007fffced2a9d6 in gdbus_shared_thread_func (user_data=0x7fff8c019bc0)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./gio/gdbusprivate.c:246
#5  0x00007fffede4abb5 in g_thread_proxy (data=0x7fff88001f20)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread.c:780
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fffa1b64700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

---Type <return> to continue, or q <return> to quit---
Thread 34 (Thread 0x7fff9affd700 (LWP 2468)):
#0  0x00007ffff33774d9 in syscall ()
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff3d70335 in QBasicMutex::lockInternal() (timeout=0x0, val=3, op=0, addr=0x1eba4a0) at thread/qmutex_linux.cpp:121
#2  0x00007ffff3d70335 in QBasicMutex::lockInternal() (timeout=-1, elapsedTimer=0x0, d_ptr=...) at thread/qmutex_linux.cpp:162
#3  0x00007ffff3d70335 in QBasicMutex::lockInternal() (this=0x1eba4a0)
    at thread/qmutex_linux.cpp:178
#4  0x00007ffff3d70397 in QMutex::lock() (this=this@entry=0x1eba4a0)
    at thread/qmutex.cpp:229
#5  0x00007ffff3d787ba in QThreadPrivate::finish(void*) (m=0x1eba4a0, this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:206
#6  0x00007ffff3d787ba in QThreadPrivate::finish(void*) (arg=arg@entry=0x1b91200) at thread/qthread_unix.cpp:409
#7  0x00007ffff3d796f3 in QThreadPrivate::start(void*) (this=<synthetic pointer---Type <return> to continue, or q <return> to quit---
>, __in_chrg=<optimized out>) at /usr/include/pthread.h:561
#8  0x00007ffff3d796f3 in QThreadPrivate::start(void*) (arg=0x1b91200)
    at thread/qthread_unix.cpp:329
#9  0x00007fffeff1c6ba in start_thread (arg=0x7fff9affd700)
    at pthread_create.c:333
#10 0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 26 (Thread 0x7fff797fa700 (LWP 2403)):
#0  0x00007fffeff22709 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x7fffb000c380) at thread/qwaitcondition_unix.cpp:133
#2  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x7fffb000c380) at thread/qwaitcondition_unix.cpp:141
#3  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (this=th---Type <return> to continue, or q <return> to quit---
is@entry=0x7fffb000e9e0, mutex=mutex@entry=0x7fffb0003ff0, time=30000)
    at thread/qwaitcondition_unix.cpp:215
#4  0x00007ffff3d75dfa in QThreadPoolThread::run() (this=0x7fffb000e9d0)
    at thread/qthreadpool.cpp:146
#5  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0x7fffb000e9d0)
    at thread/qthread_unix.cpp:376
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fff797fa700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 23 (Thread 0x7fff7affd700 (LWP 2399)):
#0  0x00007ffff33774d9 in syscall ()
    at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fffede68cfa in g_cond_wait_until (cond=cond@entry=0x7fffbc00fa78, mutex=mutex@entry=0x7fffbc00fa70, end_time=end_time@entry=9652287779)
---Type <return> to continue, or q <return> to quit---
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread-posix.c:1441
#2  0x00007fffeddf8999 in g_async_queue_pop_intern_unlocked (queue=0x7fffbc00fa70, wait=wait@entry=1, end_time=9652287779)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:422
#3  0x00007fffeddf8ff8 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gasyncqueue.c:570
#4  0x00007fffede4b526 in g_thread_pool_thread_proxy (pool=0x7fffbc004310)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:262
#5  0x00007fffede4b526 in g_thread_pool_thread_proxy (data=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthreadpool.c:296
#6  0x00007fffede4abb5 in g_thread_proxy (data=0x7fff840030f0)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread.c:780
#7  0x00007fffeff1c6ba in start_thread (arg=0x7fff7affd700)
    at pthread_create.c:333
#8  0x00007ffff337d41d in clone ()
---Type <return> to continue, or q <return> to quit---
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 18 (Thread 0x7fff9a7fc700 (LWP 2391)):
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7fff900008c0, timeout=<optimized out>, context=0x7fffbc004460)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007fffede2438c in g_main_context_iterate (context=context@entry=0x7fffbc004460, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede2449c in g_main_context_iteration (context=0x7fffbc004460, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007fffede244d9 in glib_worker_main (data=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:5672
#5  0x00007fffede4abb5 in g_thread_proxy (data=0x7fffbc2dcf70)
---Type <return> to continue, or q <return> to quit---
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gthread.c:780
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fff9a7fc700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 14 (Thread 0x7fffa0b62700 (LWP 2387)):
#0  0x00007fffeff22709 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x1a26740) at thread/qwaitcondition_unix.cpp:133
#2  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x1a26740) at thread/qwaitcondition_unix.cpp:141
#3  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0x156ebd0, mutex=mutex@entry=0xe17700, time=30000)
    at thread/qwaitcondition_unix.cpp:215
---Type <return> to continue, or q <return> to quit---
#4  0x00007ffff3d75dfa in QThreadPoolThread::run() (this=0x156ebc0)
    at thread/qthreadpool.cpp:146
#5  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0x156ebc0)
    at thread/qthread_unix.cpp:376
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fffa0b62700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 12 (Thread 0x7fffa1363700 (LWP 2386)):
#0  0x00007fffeff22709 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x1a258f0) at thread/qwaitcondition_unix.cpp:133
#2  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x1a258f0) at thread/qwaitcondition_unix.cpp:141
---Type <return> to continue, or q <return> to quit---
#3  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0x1a24000, mutex=mutex@entry=0xe17700, time=30000)
    at thread/qwaitcondition_unix.cpp:215
#4  0x00007ffff3d75dfa in QThreadPoolThread::run() (this=0x1a23ff0)
    at thread/qthreadpool.cpp:146
#5  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0x1a23ff0)
    at thread/qthread_unix.cpp:376
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fffa1363700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7fffb6559700 (LWP 2384)):
#0  0x00007fffeff22360 in pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff3d7a67b in QWaitCondition::wait(QMutex*, unsigned long) (time=18---Type <return> to continue, or q <return> to quit---
446744073709551615, this=0xf35b30) at thread/qwaitcondition_unix.cpp:143
#2  0x00007ffff3d7a67b in QWaitCondition::wait(QMutex*, unsigned long) (this=<optimized out>, mutex=0xf34b00, time=18446744073709551615)
    at thread/qwaitcondition_unix.cpp:215
#3  0x00007ffff71ed8fd in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#4  0x00007ffff71ee1f5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0xf34a80)
    at thread/qthread_unix.cpp:376
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fffb6559700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7fffb6d5a700 (LWP 2383)):
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=1,---Type <return> to continue, or q <return> to quit---
 fds=0x7fffa4004050, timeout=<optimized out>, context=0x7fffa4000990)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007fffede2438c in g_main_context_iterate (context=context@entry=0x7fffa4000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede2449c in g_main_context_iteration (context=0x7fffa4000990, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007ffff3fad5cb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffa40008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007ffff3f5464a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffb6d59d00, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#6  0x00007ffff3d74554 in QThread::exec() (this=<optimized out>)
    at thread/qthread.cpp:522
---Type <return> to continue, or q <return> to quit---
#7  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0x848770)
    at thread/qthread_unix.cpp:376
#8  0x00007fffeff1c6ba in start_thread (arg=0x7fffb6d5a700)
    at pthread_create.c:333
#9  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7fffb7fff700 (LWP 2381)):
#0  0x00007fffeff22709 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x7fffb00045d0) at thread/qwaitcondition_unix.cpp:133
#2  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0x7fffb00045d0) at thread/qwaitcondition_unix.cpp:141
#3  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0x7fffb00042e0, mutex=mutex@entry=0x7fffb0003ff0, time=30000)
---Type <return> to continue, or q <return> to quit---
    at thread/qwaitcondition_unix.cpp:215
#4  0x00007ffff3d75dfa in QThreadPoolThread::run() (this=0x7fffb00042d0)
    at thread/qthreadpool.cpp:146
#5  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0x7fffb00042d0)
    at thread/qthread_unix.cpp:376
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fffb7fff700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7fffc4969700 (LWP 2380)):
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=2, fds=0x7fffb010eae0, timeout=<optimized out>, context=0x7fffb0000990)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007fffede2438c in g_main_context_iterate (context=context@entry=0x7fffb---Type <return> to continue, or q <return> to quit---
0000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede2449c in g_main_context_iteration (context=0x7fffb0000990, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007ffff3fad5cb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffb00008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007ffff3f5464a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffc4968d00, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#6  0x00007ffff3d74554 in QThread::exec() (this=<optimized out>)
    at thread/qthread.cpp:522
#7  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0xea4920)
    at thread/qthread_unix.cpp:376
#8  0x00007fffeff1c6ba in start_thread (arg=0x7fffc4969700)
---Type <return> to continue, or q <return> to quit---
    at pthread_create.c:333
#9  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7fffc60d8700 (LWP 2379)):
#0  0x00007fffeff22709 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0xe1f0c0) at thread/qwaitcondition_unix.cpp:133
#2  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0xe1f0c0) at thread/qwaitcondition_unix.cpp:141
#3  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0xe1dff0, mutex=mutex@entry=0xe17700, time=30000)
    at thread/qwaitcondition_unix.cpp:215
#4  0x00007ffff3d75dfa in QThreadPoolThread::run() (this=0xe1dfe0)
    at thread/qthreadpool.cpp:146
---Type <return> to continue, or q <return> to quit---
#5  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0xe1dfe0)
    at thread/qthread_unix.cpp:376
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fffc60d8700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7fffc68d9700 (LWP 2378)):
#0  0x00007fffeff22709 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0xe1e3f0) at thread/qwaitcondition_unix.cpp:133
#2  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (time=30000, this=0xe1e3f0) at thread/qwaitcondition_unix.cpp:141
#3  0x00007ffff3d7a5b6 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0xdf7d70, mutex=mutex@entry=0xe17700, time=30000)
---Type <return> to continue, or q <return> to quit---
    at thread/qwaitcondition_unix.cpp:215
#4  0x00007ffff3d75dfa in QThreadPoolThread::run() (this=0xdf7d60)
    at thread/qthreadpool.cpp:146
#5  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0xdf7d60)
    at thread/qthread_unix.cpp:376
#6  0x00007fffeff1c6ba in start_thread (arg=0x7fffc68d9700)
    at pthread_create.c:333
#7  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7fffc7972700 (LWP 2377)):
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7fffc0003070, timeout=<optimized out>, context=0x7fffc0000990)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007fffede2438c in g_main_context_iterate (context=context@entry=0x7fffc---Type <return> to continue, or q <return> to quit---
0000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede2449c in g_main_context_iteration (context=0x7fffc0000990, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007ffff3fad5af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffc00008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007ffff3f5464a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffc7971d00, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#6  0x00007ffff3d74554 in QThread::exec() (this=<optimized out>)
    at thread/qthread.cpp:522
#7  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0xe028b0)
    at thread/qthread_unix.cpp:376
#8  0x00007fffeff1c6ba in start_thread (arg=0x7fffc7972700)
---Type <return> to continue, or q <return> to quit---
    at pthread_create.c:333
#9  0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fffd0570700 (LWP 2376)):
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7fffc80013c0, timeout=<optimized out>, context=0x7fffc8000990)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007fffede2438c in g_main_context_iterate (context=context@entry=0x7fffc8000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede2449c in g_main_context_iteration (context=0x7fffc8000990, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007ffff3fad5cb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop---Type <return> to continue, or q <return> to quit---
::ProcessEventsFlag>) (this=0x7fffc80008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007ffff3f5464a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffd056fc90, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#6  0x00007ffff3d74554 in QThread::exec() (this=<optimized out>)
    at thread/qthread.cpp:522
#7  0x00007ffff716d1c6 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#8  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0xdcc800)
    at thread/qthread_unix.cpp:376
#9  0x00007fffeff1c6ba in start_thread (arg=0x7fffd0570700)
    at pthread_create.c:333
#10 0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fffe12db700 (LWP 2375)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7fffd4003070, timeout=<optimized out>, context=0x7fffd4000990)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007fffede2438c in g_main_context_iterate (context=context@entry=0x7fffd4000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede2449c in g_main_context_iteration (context=0x7fffd4000990, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007ffff3fad5af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffd40008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007ffff3f5464a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffe12dace0, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff3d74554 in QThread::exec() (this=this@entry=0x7b37c0)
    at thread/qthread.cpp:522
#7  0x00007ffff494fa35 in QQmlThreadPrivate::run() (this=0x7b37c0)
    at qml/ftw/qqmlthread.cpp:147
#8  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0x7b37c0)
    at thread/qthread_unix.cpp:376
#9  0x00007fffeff1c6ba in start_thread (arg=0x7fffe12db700)
    at pthread_create.c:333
#10 0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fffe24ec700 (LWP 2374)):
#0  0x00007ffff337174d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffede2438c in g_main_context_iterate (priority=2147483647, n_fds=3, fds=0x7fffdc003220, timeout=<optimized out>, context=0x7fffdc000990)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:4135
---Type <return> to continue, or q <return> to quit---
#2  0x00007fffede2438c in g_main_context_iterate (context=context@entry=0x7fffdc000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007fffede2449c in g_main_context_iteration (context=0x7fffdc000990, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007ffff3fad5af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffdc0008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007ffff3f5464a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffe24ebcd0, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#6  0x00007ffff3d74554 in QThread::exec() (this=this@entry=0x7ffff5ee9d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at thread/qthread.cpp:522
#7  0x00007ffff5c752c5 in QDBusConnectionManager::run() (this=0x7ffff5ee9d60 <(---Type <return> to continue, or q <return> to quit---
anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at qdbusconnection.cpp:178
#8  0x00007ffff3d796eb in QThreadPrivate::start(void*) (arg=0x7ffff5ee9d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at thread/qthread_unix.cpp:376
#9  0x00007fffeff1c6ba in start_thread (arg=0x7fffe24ec700)
    at pthread_create.c:333
#10 0x00007ffff337d41d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7ffff7f2b8c0 (LWP 2370)):
#0  0x00007ffff32ab428 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff32ad02a in __GI_abort () at abort.c:89
#2  0x00007ffff3d63311 in QMessageLogger::fatal(char const*, ...) const (context=..., message=<synthetic pointer>) at global/qlogging.cpp:1710
---Type <return> to continue, or q <return> to quit---
#3  0x00007ffff3d63311 in QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7fffffffd5a0, msg=msg@entry=0x7ffff3ffe2b8 "QThread: Destroyed while thread is still running") at global/qlogging.cpp:816
#4  0x00007ffff3d73504 in QThread::~QThread() (this=0x1b91200, __in_chrg=<optimized out>) at thread/qthread.cpp:436
#5  0x00007fffcdf52e49 in  ()
    at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/flatpak-backend.so
#6  0x00007ffff3f80f73 in QObjectPrivate::deleteChildren() (this=this@entry=0xcf8d50) at kernel/qobject.cpp:1992
#7  0x00007ffff3f8ae94 in QObject::~QObject() (this=<optimized out>, __in_chrg=<optimized out>) at kernel/qobject.cpp:1022
#8  0x00007ffff6df6160 in Transaction::~Transaction() ()
    at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#9  0x00007fffcdf50db9 in  ()
    at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/flatpak-backend.so
#10 0x00007ffff3f84500 in QObject::event(QEvent*) (this=0xce27c0, e=<optimized ---Type <return> to continue, or q <return> to quit---
out>) at kernel/qobject.cpp:1237
#11 0x00007ffff555bacc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff5563417 in QApplication::notify(QObject*, QEvent*) ()
    at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff3f563c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0xce27c0, event=event@entry=0x1a2fb70)
    at kernel/qcoreapplication.cpp:1044
#14 0x00007ffff3f58fcb in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (event=0x1a2fb70, receiver=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#15 0x00007ffff3f58fcb in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x7130a0) at kernel/qcoreapplication.cpp:1719
#16 0x00007ffff3f59438 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0)
---Type <return> to continue, or q <return> to quit---
    at kernel/qcoreapplication.cpp:1573
#17 0x00007ffff3fadfa3 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x747560) at kernel/qeventdispatcher_glib.cpp:276
#18 0x00007fffede24197 in g_main_context_dispatch (context=0x76d820)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3154
#19 0x00007fffede24197 in g_main_context_dispatch (context=context@entry=0x76d820) at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3769
#20 0x00007fffede243f0 in g_main_context_iterate (context=context@entry=0x76d820, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3840
#21 0x00007fffede2449c in g_main_context_iteration (context=0x76d820, may_block=may_block@entry=1)
    at /build/glib2.0-prJhLS/glib2.0-2.48.2/./glib/gmain.c:3901
#22 0x00007ffff3fad5af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7658d0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
---Type <return> to continue, or q <return> to quit---
#23 0x00007fffe725ea91 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#24 0x00007ffff3f5464a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffdcc0, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#25 0x00007ffff3f5d854 in QCoreApplication::exec() ()
    at kernel/qcoreapplication.cpp:1332
#26 0x0000000000411f5f in main(int, char**) (argc=1, argv=<optimized out>)
    at /workspace/build/discover/main.cpp:156
Comment 1 Aleix Pol 2018-03-18 23:51:42 UTC
Git commit b73e08da262316a2f08f07d4b4d68024fb687064 by Aleix Pol.
Committed on 18/03/2018 at 23:50.
Pushed by apol into branch 'Plasma/5.12'.

Include a test for cancelling flatpak installations

Sadly didn't get he crash.

M  +17   -0    libdiscover/backends/FlatpakBackend/tests/FlatpakTest.cpp

https://commits.kde.org/discover/b73e08da262316a2f08f07d4b4d68024fb687064
Comment 2 Aleix Pol 2018-03-18 23:56:51 UTC
Could not reproduce. Not on the test, not running the application.

Please provide a backtrace if you can reproduce.
https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces#PKGBUILD
Comment 3 Patrick Silva 2018-03-19 00:28:13 UTC
backtrace already posted here is the better I can do.
Comment 4 Aleix Pol 2018-03-19 11:39:27 UTC
See the link I pasted. It explains how to provide backtraces with debug symbols by recompiling the package.
Comment 5 Patrick Silva 2018-03-19 17:47:34 UTC
info from your link was not enough for me.
However after some searches I compiled discover with debug enabled.

Thread 36 (Thread 0x7fff96ab8700 (LWP 17614)):
#0  0x00007ffff361e879 in syscall () at /usr/lib/libc.so.6
#1  0x00007fffedca8dcd in g_cond_wait_until ()
    at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc35753 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007fffedc8ac76 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007fffedc8a26a in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 27 (Thread 0x7fffc2b76700 (LWP 17564)):
#0  0x00007ffff361b9bc in fsync () at /usr/lib/libc.so.6
#1  0x00007fffc051c6a1 in  () at /usr/lib/libostree-1.so.1
#2  0x00007fffc051ee47 in ostree_repo_commit_transaction ()
    at /usr/lib/libostree-1.so.1
---Type <return> to continue, or q <return> to quit---
#3  0x00007fffc1a9f68a in  () at /usr/lib/libflatpak.so.0
#4  0x00007fffc1aa2902 in  () at /usr/lib/libflatpak.so.0
#5  0x00007fffc1a8b181 in flatpak_installation_install_full ()
    at /usr/lib/libflatpak.so.0
#6  0x00007fffc1a8b32b in flatpak_installation_install ()
    at /usr/lib/libflatpak.so.0
#7  0x00007fffc1f57dc0 in FlatpakTransactionJob::run() (this=0x5555565846a0)
    at /home/stalker/discover/repos/extra-x86_64/src/discover-5.12.3/libdiscover/backends/FlatpakBackend/FlatpakTransactionJob.cpp:106
        installRelatedRef = <optimized out>
        localError = 0x0
        ref = 0x0
        refName = {static null = {<No data fields>}, d = 0x555556ea7150}
        kind = 1
#8  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#9  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 25 (Thread 0x7fffb0957700 (LWP 17562)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc623b2 in g_main_loop_run ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007fffc179a6d8 in  () at /usr/lib/libgio-2.0.so.0
#4  0x00007fffedc8a26a in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 13 (Thread 0x7fffa915d700 (LWP 17295)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#2  0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007fffedc62162 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007fffedc8a26a in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 11 (Thread 0x7fffabb6f700 (LWP 17292)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff3f652f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007ffff3f073db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#5  0x00007ffff3d167ae in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7fffc3377700 (LWP 17280)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff3f652f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007ffff3f073db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff3d167ae in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#7  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fffc3fff700 (LWP 17279)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff3f652f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007ffff3f073db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff3d167ae in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6
---Type <return> to continue, or q <return> to quit---

Thread 5 (Thread 0x7fffcb9e1700 (LWP 17278)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff3f652f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007ffff3f073db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff3d167ae in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff716750b in  () at /usr/lib/libQt5Quick.so.5
#7  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

---Type <return> to continue, or q <return> to quit---
Thread 4 (Thread 0x7fffdac6c700 (LWP 17277)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff3f652f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007ffff3f073db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff3d167ae in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff4916379 in  () at /usr/lib/libQt5Qml.so.5
#7  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffdbe7d700 (LWP 17276)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
#1  0x00007fffedc61ff3 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff3f652f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007ffff3f073db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007ffff3d167ae in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007ffff5c6c416 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffe4f9a700 (LWP 17275)):
#0  0x00007ffff361997b in poll () at /usr/lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
#1  0x00007fffed9fa180 in  () at /usr/lib/libxcb.so.1
#2  0x00007fffed9fbe4b in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fffe7d4782a in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff3d1bb4d in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fffefe9308c in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff3623e7f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7f9e600 (LWP 17271)):
#0  0x00007ffff3562860 in raise () at /usr/lib/libc.so.6
#1  0x00007ffff3563ec9 in abort () at /usr/lib/libc.so.6
#2  0x00007ffff3d058e8 in  () at /usr/lib/libQt5Core.so.5
#3  0x00007ffff3d1562e in QThread::~QThread() ()
    at /usr/lib/libQt5Core.so.5
#4  0x00007fffc1f5789f in FlatpakTransactionJob::~FlatpakTransactionJob() (this=0x5555565846a0, __in_chrg=<optimized out>)
    at /home/stalker/discover/repos/extra-x86_64/src/discover-5.12.3/libd---Type <return> to continue, or q <return> to quit---
iscover/backends/FlatpakBackend/FlatpakTransactionJob.cpp:53
#5  0x00007fffc1f5789f in FlatpakTransactionJob::~FlatpakTransactionJob() (this=0x5555565846a0, __in_chrg=<optimized out>)
    at /home/stalker/discover/repos/extra-x86_64/src/discover-5.12.3/libdiscover/backends/FlatpakBackend/FlatpakTransactionJob.cpp:56
#6  0x00007ffff3f3720d in QObjectPrivate::deleteChildren() ()
    at /usr/lib/libQt5Core.so.5
#7  0x00007ffff3f40ddc in QObject::~QObject() ()
    at /usr/lib/libQt5Core.so.5
#8  0x00007ffff6ded9c8 in Transaction::~Transaction() (this=0x555558bcf240, __in_chrg=<optimized out>)
    at /home/stalker/discover/repos/extra-x86_64/src/discover-5.12.3/libdiscover/Transaction/Transaction.cpp:39
#9  0x00007fffc1f567a7 in FlatpakTransaction::~FlatpakTransaction() (this=0x555558bcf240, __in_chrg=<optimized out>)
    at /home/stalker/discover/repos/extra-x86_64/src/discover-5.12.3/libd---Type <return> to continue, or q <return> to quit---
iscover/backends/FlatpakBackend/FlatpakTransaction.cpp:53
#10 0x00007fffc1f567a7 in FlatpakTransaction::~FlatpakTransaction() (this=0x555558bcf240, __in_chrg=<optimized out>)
    at /home/stalker/discover/repos/extra-x86_64/src/discover-5.12.3/libdiscover/backends/FlatpakBackend/FlatpakTransaction.cpp:55
#11 0x00007ffff3f3a131 in QObject::event(QEvent*) ()
    at /usr/lib/libQt5Core.so.5
#12 0x00007ffff554ffec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff55579c6 in QApplication::notify(QObject*, QEvent*) ()
    at /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff3f08da0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#15 0x00007ffff3f0ba06 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#16 0x00007ffff3f65d04 in  () at /usr/lib/libQt5Core.so.5
---Type <return> to continue, or q <return> to quit---
#17 0x00007fffedc61e38 in g_main_context_dispatch ()
    at /usr/lib/libglib-2.0.so.0
#18 0x00007fffedc62081 in  () at /usr/lib/libglib-2.0.so.0
#19 0x00007fffedc6210e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#20 0x00007ffff3f652f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#21 0x00007fffe7dcf482 in  () at /usr/lib/libQt5XcbQpa.so.5
#22 0x00007ffff3f073db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#23 0x00007ffff3f107d8 in QCoreApplication::exec() ()
    at /usr/lib/libQt5Core.so.5
#24 0x0000555555565daf in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
    at /home/stalker/discover/repos/extra-x86_64/src/discover-5.12.3/discover/main.cpp:156
---Type <return> to continue, or q <return> to quit---
        app = <incomplete type>
        about = {d = 0x555555959a50}
        mainWindow = 0x55555595bdf0
Comment 6 Christoph Feck 2018-03-30 14:04:00 UTC
Aleix, does the backtrace from comment #5 provide useful information?
Comment 7 Aleix Pol 2018-04-05 01:03:57 UTC
Git commit 6ec2f2cf22285acd662e6afc772515f11a70168f by Aleix Pol.
Committed on 05/04/2018 at 01:01.
Pushed by apol into branch 'Plasma/5.12'.

Don't crash when cancelling flatpak jobs

Instead of parenting the thread, let the thread destroy itself when it's
done.

M  +3    -3    libdiscover/backends/FlatpakBackend/FlatpakTransaction.cpp
M  +3    -2    libdiscover/backends/FlatpakBackend/FlatpakTransactionJob.cpp
M  +2    -2    libdiscover/backends/FlatpakBackend/FlatpakTransactionJob.h

https://commits.kde.org/discover/6ec2f2cf22285acd662e6afc772515f11a70168f