https://bugs.kde.org/show_bug.cgi?id=388730

            Bug ID: 388730
           Summary: Discover crashes on launch with Snap backend installed
           Product: Discover
           Version: unspecified
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: discover
          Assignee: aleix...@kde.org
          Reporter: pointedst...@zoho.com
  Target Milestone: ---

Application: plasma-discover (5.11.90)

Qt Version: 5.9.3
Frameworks Version: 5.42.0
Operating System: Linux 4.13.0-21-generic x86_64
Distribution: KDE neon Developer Edition

-- Information about the crash:
KDE Neon dev unstable.

I installed the Discover Snap backend (`sudo apt install
plasma-discover-snap-backend`), then compiled Discover from source and deploted
it to /usr. Thereasfer, discover crashes on launch with 100% reproducibility.
If I remove the Snap backend packages, Discover works again.

The crash can be reproduced every time.

-- Backtrace:
Application: Discover (plasma-discover), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6b2ce798c0 (LWP 27427))]

Thread 7 (Thread 0x7f6aeb952700 (LWP 27436)):
#0  0x00007f6b282e570d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f6b2300f38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6b2300f49c in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6b28f156cb in QEventDispatcherGlib::processEvents
(this=0x7f6ae40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f6b28ebde2a in QEventLoop::exec (this=this@entry=0x7f6aeb951d00,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f6b28ce68f4 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:515
#6  0x00007f6b28ceb709 in QThreadPrivate::start (arg=0x1c8c510) at
thread/qthread_unix.cpp:368
#7  0x00007f6b24e986ba in start_thread (arg=0x7f6aeb952700) at
pthread_create.c:333
#8  0x00007f6b282f13dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f6af1926700 (LWP 27435)):
#0  0x00007ffe76394a02 in ?? ()
#1  0x00007ffe76394cfe in clock_gettime ()
#2  0x00007f6b282ff836 in __GI___clock_gettime (clock_id=clock_id@entry=1,
tp=tp@entry=0x7f6af1925a60) at ../sysdeps/unix/clock_gettime.c:115
#3  0x00007f6b28f14fd1 in qt_clock_gettime (ts=0x7f6af1925a60, clock=<optimized
out>) at kernel/qelapsedtimer_unix.cpp:111
#4  do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at
kernel/qelapsedtimer_unix.cpp:166
#5  qt_gettime () at kernel/qelapsedtimer_unix.cpp:175
#6  0x00007f6b28f137c9 in QTimerInfoList::updateCurrentTime
(this=this@entry=0x7f6aec002cd0) at kernel/qtimerinfo_unix.cpp:91
#7  0x00007f6b28f13d35 in QTimerInfoList::timerWait (this=0x7f6aec002cd0,
tm=...) at kernel/qtimerinfo_unix.cpp:388
#8  0x00007f6b28f1543e in timerSourcePrepareHelper (timeout=0x7f6af1925b34,
src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:132
#9  timerSourcePrepare (source=<optimized out>, timeout=0x7f6af1925b34) at
kernel/qeventdispatcher_glib.cpp:165
#10 0x00007f6b2300e91d in g_main_context_prepare () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f6b2300f2bb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007f6b2300f49c in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007f6b28f156cb in QEventDispatcherGlib::processEvents
(this=0x7f6aec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#14 0x00007f6b28ebde2a in QEventLoop::exec (this=this@entry=0x7f6af1925d00,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#15 0x00007f6b28ce68f4 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:515
#16 0x00007f6b28ceb709 in QThreadPrivate::start (arg=0x1b81fe0) at
thread/qthread_unix.cpp:368
#17 0x00007f6b24e986ba in start_thread (arg=0x7f6af1926700) at
pthread_create.c:333
#18 0x00007f6b282f13dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f6afc0ef700 (LWP 27432)):
#0  0x00007f6b23053a79 in g_mutex_lock () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f6b2300f290 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6b2300f49c in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6b28f156cb in QEventDispatcherGlib::processEvents
(this=0x7f6af40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f6b28ebde2a in QEventLoop::exec (this=this@entry=0x7f6afc0eec90,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f6b28ce68f4 in QThread::exec (this=this@entry=0x19ff540) at
thread/qthread.cpp:515
#6  0x00007f6b2beab046 in QQuickPixmapReader::run (this=0x19ff540) at
util/qquickpixmapcache.cpp:868
#7  0x00007f6b28ceb709 in QThreadPrivate::start (arg=0x19ff540) at
thread/qthread_unix.cpp:368
#8  0x00007f6b24e986ba in start_thread (arg=0x7f6afc0ef700) at
pthread_create.c:333
#9  0x00007f6b282f13dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f6b0f5ef700 (LWP 27430)):
#0  0x00007f6b2300ecf3 in g_main_context_check () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f6b2300f330 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f6b2300f49c in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f6b28f156cb in QEventDispatcherGlib::processEvents
(this=0x7f6b040008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f6b28ebde2a in QEventLoop::exec (this=this@entry=0x7f6b0f5eece0,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f6b28ce68f4 in QThread::exec (this=this@entry=0x16b53f0) at
thread/qthread.cpp:515
#6  0x00007f6b298e7d25 in QQmlThreadPrivate::run (this=0x16b53f0) at
qml/ftw/qqmlthread.cpp:147
#7  0x00007f6b28ceb709 in QThreadPrivate::start (arg=0x16b53f0) at
thread/qthread_unix.cpp:368
#8  0x00007f6b24e986ba in start_thread (arg=0x7f6b0f5ef700) at
pthread_create.c:333
#9  0x00007f6b282f13dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f6b14f98700 (LWP 27429)):
#0  0x00007f6b28cea5b6 in get_thread_data () at thread/qthread_unix.cpp:189
#1  QThreadData::current (createIfNecessary=createIfNecessary@entry=true) at
thread/qthread_unix.cpp:244
#2  0x00007f6b28f155ba in postEventSourcePrepare (s=0x7f6b080012d0,
timeout=0x7f6b14f97b04) at kernel/qeventdispatcher_glib.cpp:252
#3  0x00007f6b2300e91d in g_main_context_prepare () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f6b2300f2bb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f6b2300f49c in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f6b28f156cb in QEventDispatcherGlib::processEvents
(this=0x7f6b080008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f6b28ebde2a in QEventLoop::exec (this=this@entry=0x7f6b14f97cd0,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#8  0x00007f6b28ce68f4 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:515
#9  0x00007f6b2abc5315 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007f6b28ceb709 in QThreadPrivate::start (arg=0x7f6b2ae39d40) at
thread/qthread_unix.cpp:368
#11 0x00007f6b24e986ba in start_thread (arg=0x7f6b14f98700) at
pthread_create.c:333
#12 0x00007f6b282f13dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f6b19e89700 (LWP 27428)):
#0  0x00007f6b282e570d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f6b22dacc62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f6b22dae8d7 in xcb_wait_for_event () from
/usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f6b1c3e01f9 in QXcbEventReader::run (this=0x16352a0) at
qxcbconnection.cpp:1330
#4  0x00007f6b28ceb709 in QThreadPrivate::start (arg=0x16352a0) at
thread/qthread_unix.cpp:368
#5  0x00007f6b24e986ba in start_thread (arg=0x7f6b19e89700) at
pthread_create.c:333
#6  0x00007f6b282f13dd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f6b2ce798c0 (LWP 27427)):
[KCrash Handler]
#6  0x00007f6b2300ccc4 in g_source_attach () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f6aea0d0034 in make_request (client=client@entry=0x1bba550,
request_type=request_type@entry=SNAPD_REQUEST_LIST,
progress_callback=progress_callback@entry=0x0,
progress_callback_data=progress_callback_data@entry=0x0,
cancellable=cancellable@entry=0x166e6a0,
callback=callback@entry=0x7f6aea30b0e0, user_data=0x1c97200) at
snapd-client.c:2735
#8  0x00007f6aea0d164d in snapd_client_list_async (client=0x1bba550,
cancellable=0x166e6a0, callback=0x7f6aea30b0e0, user_data=0x1c97200) at
snapd-client.c:3195
#9  0x00007f6aea53849a in SnapBackend::populate<QSnapdListRequest>
(this=this@entry=0x1ca44f0, job=0x1c97200,
state=state@entry=AbstractResource::Installed) at
/workspace/build/libdiscover/backends/SnapBackend/SnapBackend.cpp:117
#10 0x00007f6aea537ff0 in SnapBackend::SnapBackend (this=0x1ca44f0,
parent=<optimized out>) at
/workspace/build/libdiscover/backends/SnapBackend/SnapBackend.cpp:52
#11 0x00007f6aea53850b in SnapBackendFactory::newInstance (this=<optimized
out>, parent=0x172bde0, name=...) at
/workspace/build/libdiscover/backends/SnapBackend/SnapBackend.cpp:42
#12 0x00007f6b2bb3de8f in DiscoverBackendsFactory::backendForFile(QString
const&, QString const&) const () from
/usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#13 0x00007f6b2bb3dbde in DiscoverBackendsFactory::backend(QString const&)
const () from /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#14 0x00007f6b2bb3e48d in DiscoverBackendsFactory::allBackends()
const::{lambda(QString const&)#1}::operator()(QString const&) const () from
/usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#15 0x00007f6b2bb3eb3a in QVector<AbstractResourcesBackend*>
kTransform<QVector<AbstractResourcesBackend*>, QStringList,
DiscoverBackendsFactory::allBackends() const::{lambda(QString
const&)#1}>(QStringList const&, DiscoverBackendsFactory::allBackends()
const::{lambda(QString const&)#1}) () from
/usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#16 0x00007f6b2bb3e4f8 in DiscoverBackendsFactory::allBackends() const () from
/usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#17 0x00007f6b2bb1dcb8 in ResourcesModel::registerAllBackends() () from
/usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#18 0x00007f6b2bb529cf in ResourcesModel::qt_static_metacall(QObject*,
QMetaObject::Call, int, void**) () from
/usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#19 0x00007f6b28eed2b9 in QObject::event (this=0x172bde0, e=<optimized out>) at
kernel/qobject.cpp:1246
#20 0x00007f6b2a4acb9c in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x172bde0, e=0x172bf40) at kernel/qapplication.cpp:3722
#21 0x00007f6b2a4b45a7 in QApplication::notify (this=0x7ffe7638b7e0,
receiver=0x172bde0, e=0x172bf40) at kernel/qapplication.cpp:3481
#22 0x00007f6b28ebfdf8 in QCoreApplication::notifyInternal2
(receiver=0x172bde0, event=event@entry=0x172bf40) at
kernel/qcoreapplication.cpp:1018
#23 0x00007f6b28ec25db in QCoreApplication::sendEvent (event=0x172bf40,
receiver=<optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0,
event_type=event_type@entry=0, data=0x1616fe0) at
kernel/qcoreapplication.cpp:1678
#25 0x00007f6b28ec2a48 in QCoreApplication::sendPostedEvents
(receiver=receiver@entry=0x0, event_type=event_type@entry=0) at
kernel/qcoreapplication.cpp:1532
#26 0x00007f6b28f160a3 in postEventSourceDispatch (s=0x16700f0) at
kernel/qeventdispatcher_glib.cpp:276
#27 0x00007f6b2300f197 in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f6b2300f3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f6b2300f49c in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f6b28f156af in QEventDispatcherGlib::processEvents (this=0x1665420,
flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x00007f6b28ebde2a in QEventLoop::exec (this=this@entry=0x7ffe7638b6b0,
flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#32 0x00007f6b28ec6d64 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1291
#33 0x0000000000415eb8 in main ()

Reported using DrKonqi

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to