Bug 403624

Summary: Software Center crashed in Category::blacklistPluginsInVector() on Ubuntu 18.04
Product: [Applications] Discover Reporter: seancx3
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate
Priority: NOR Keywords: drkonqi
Version: 5.12.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description seancx3 2019-01-26 13:31:29 UTC
Application: plasma-discover (5.12.7)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 4.15.0-43-generic x86_64
Distribution: Ubuntu 18.04.1 LTS

-- Information about the crash:
Software Center crashed everytime when I opened it after I switched to plasma

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 0x7fac4544a800 (LWP 8091))]

Thread 12 (Thread 0x7fabfb7fe700 (LWP 8270)):
#0  0x00007fac408365d7 in ioctl () at ../sysdeps/unix/syscall-template.S:78
#1  0x00007fac1b5d62cc in  () at /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.410.48
#2  0x00007fac1b5d7487 in  () at /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.410.48
#3  0x00007fac1b5d7ce3 in  () at /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.410.48
#4  0x00007fac20df7a12 in  () at /usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.0
#5  0x00007fac1b296764 in  () at /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.410.48
#6  0x00007fac1b1b0dbe in  () at /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.410.48
#7  0x00007fac20dee11d in  () at /usr/lib/x86_64-linux-gnu/libGLX_nvidia.so.0
#8  0x00007fac316448f2 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#9  0x00007fac42c7600a in QOpenGLContext::swapBuffers(QSurface*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x00007fac4439bc03 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#11 0x00007fac443a0ac8 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#12 0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007fac3cf506db in start_thread (arg=0x7fabfb7fe700) at pthread_create.c:463
#14 0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fabfbfff700 (LWP 8268)):
#0  0x00007fac40834bf9 in __GI___poll (fds=0x7fabf00018a0, nfds=1, timeout=110622) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fac3b027539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac4117d90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fac411229ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fac40f4122a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fac3cf506db in start_thread (arg=0x7fabfbfff700) at pthread_create.c:463
#8  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fac01193700 (LWP 8149)):
#0  0x00007fac408300b4 in __GI___libc_read (fd=36, buf=0x7fac01192cd0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fac3b06bcd0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b027027 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac3b0274e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fac3b0278d2 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fac02fd2026 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007fac3b04f105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fac3cf506db in start_thread (arg=0x7fac01193700) at pthread_create.c:463
#8  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fac01994700 (LWP 8148)):
#0  0x00007fac40834bf9 in __GI___poll (fds=0x55e5c59238b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fac3b027539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac3b027691 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fac3b04f105 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fac3cf506db in start_thread (arg=0x7fac01994700) at pthread_create.c:463
#6  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fac10c43700 (LWP 8134)):
#0  0x00007fac3cf56ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7fac10c42c40, expected=0, futex_word=0x7fac04006df4) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  0x00007fac3cf56ed9 in __pthread_cond_wait_common (abstime=0x7fac10c42d00, mutex=0x7fac04006da0, cond=0x7fac04006dc8) at pthread_cond_wait.c:533
#2  0x00007fac3cf56ed9 in __pthread_cond_timedwait (cond=0x7fac04006dc8, mutex=0x7fac04006da0, abstime=0x7fac10c42d00) at pthread_cond_wait.c:667
#3  0x00007fac40f47458 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fac40f4352d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fac3cf506db in start_thread (arg=0x7fac10c43700) at pthread_create.c:463
#7  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fac11444700 (LWP 8133)):
#0  0x00007fac40834bf9 in __GI___poll (fds=0x7fac0409c900, nfds=1, timeout=110622) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fac3b027539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac4117d90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fac411229ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fac40f4122a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fac3cf506db in start_thread (arg=0x7fac11444700) at pthread_create.c:463
#8  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fac129c5700 (LWP 8125)):
#0  0x00007fac40834bf9 in __GI___poll (fds=0x7fac0c004e10, nfds=1, timeout=9622) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fac3b027539 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac4117d90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fac411229ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fac40f4122a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fac3cf506db in start_thread (arg=0x7fac129c5700) at pthread_create.c:463
#8  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fac18d6a700 (LWP 8103)):
#0  0x00007fac408300b4 in __GI___libc_read (fd=26, buf=0x7fac18d69b20, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fac3b06bcd0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b027027 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac3b0274e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fac4117d90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fac411229ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fac40f4122a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fac443212a6 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#9  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fac3cf506db in start_thread (arg=0x7fac18d6a700) at pthread_create.c:463
#11 0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fac288b6700 (LWP 8094)):
#0  0x00007fac3b06d064 in g_mutex_unlock () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fac3b02745e in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac4117d90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fac411229ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fac40f4122a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fac41b576f5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#7  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fac3cf506db in start_thread (arg=0x7fac288b6700) at pthread_create.c:463
#9  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fac2954e700 (LWP 8093)):
#0  0x00007fac408300b4 in __GI___libc_read (fd=7, buf=0x7fac2954db60, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fac3b06bcd0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fac3b027027 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fac3b0274e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fac4117d90b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fac411229ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fac40f4122a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fac42332d45 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fac3cf506db in start_thread (arg=0x7fac2954e700) at pthread_create.c:463
#11 0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fac32666700 (LWP 8092)):
#0  0x00007fac40834bf9 in __GI___poll (fds=0x7fac32665ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fac3adbe747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fac3adc036a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fac354132a9 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fac40f4616d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fac3cf506db in start_thread (arg=0x7fac32666700) at pthread_create.c:463
#6  0x00007fac4084188f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fac4544a800 (LWP 8091)):
[KCrash Handler]
#6  0x0000000000000000 in  ()
#7  0x00007fac43fa4883 in Category::blacklistPluginsInVector(QSet<QString> const&, QVector<Category*>&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#8  0x00007fac43fa475d in Category::blacklistPlugins(QSet<QString> const&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#9  0x00007fac43fa48ca in Category::blacklistPluginsInVector(QSet<QString> const&, QVector<Category*>&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#10 0x00007fac43fa7f21 in CategoryModel::blacklistPlugin(QString const&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#11 0x00007fac43fb76a4 in ResourcesModel::callerFetchingChanged() () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#12 0x00007fac411536cf in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007fac1306ea43 in KNSBackend::setFetching(bool) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/kns-backend.so
#14 0x00007fac1306ebee in KNSBackend::markInvalid(QString const&) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/kns-backend.so
#15 0x00007fac1306efbe in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/kns-backend.so
#16 0x00007fac411536cf in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fac12e46c75 in KNSCore::Engine::signalError(QString const&) () at /usr/lib/x86_64-linux-gnu/libKF5NewStuffCore.so.5
#18 0x00007fac411536cf in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fac12e474b5 in KNSCore::Provider::signalError(QString const&) const () at /usr/lib/x86_64-linux-gnu/libKF5NewStuffCore.so.5
#20 0x00007fac12e3d696 in  () at /usr/lib/x86_64-linux-gnu/libKF5NewStuffCore.so.5
#21 0x00007fac411536cf in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fac3f6c783f in Attica::BaseJob::finished(Attica::BaseJob*) () at /usr/lib/x86_64-linux-gnu/libKF5Attica.so.5
#23 0x00007fac3f67bd5b in Attica::BaseJob::dataFinished() () at /usr/lib/x86_64-linux-gnu/libKF5Attica.so.5
#24 0x00007fac3f6c7afa in  () at /usr/lib/x86_64-linux-gnu/libKF5Attica.so.5
#25 0x00007fac411535b5 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007fac3e5226df in  () at /usr/lib/x86_64-linux-gnu/libQt5Network.so.5
#27 0x00007fac3e5b2cc9 in  () at /usr/lib/x86_64-linux-gnu/libQt5Network.so.5
#28 0x00007fac41154122 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007fac433f882c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007fac434000f4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007fac411249a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007fac4112711d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007fac4117e2c3 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fac3b027387 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fac3b0275c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fac3b02764c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fac4117d8ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007fac411229ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007fac4112ba84 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x000055e5c2eff148 in  ()
#41 0x00007fac40741b97 in __libc_start_main (main=0x55e5c2efe870, argc=1, argv=0x7ffed9311cd8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffed9311cc8) at ../csu/libc-start.c:310
#42 0x000055e5c2eff3ca in _start ()
[Inferior 1 (process 8091) detached]

Reported using DrKonqi
Comment 1 Aleix Pol 2019-02-18 14:43:00 UTC
Looks the same as this one, maybe the fix can be backported? https://bugs.kde.org/show_bug.cgi?id=401435
Comment 2 Nate Graham 2020-05-01 14:18:13 UTC
Please upgrade to Kubuntu 20.04, which is an LTS release like 18.04 and ships a much newer version of Discover that is less crashy. Thanks!

*** This bug has been marked as a duplicate of bug 401435 ***