Summary: | Discover crashes in KNSCore::ResultsStream::fetch when searching | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | Nicolas Fella <nicolas.fella> |
Component: | KNewStuff Backend | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aleixpol, alexander.lohnau, bvbfan, ichweissnix, jeisom, julien.dlq, kde, kdebugs, leinir, mail.octoprog, nate, p.wibberley |
Priority: | NOR | Keywords: | qt6, regression |
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=473472 | ||
Latest Commit: | Version Fixed In: | 6.0.3 | |
Sentry Crash Report: | |||
Attachments: |
crash when searching for libreoffice
GDB Backtrace - KNSCore::ResultStream::fetch SIGSEGV crash when searching for libreoffice 2024 02 21 |
Description
Nicolas Fella
2023-08-13 13:30:45 UTC
Can't reproduce. Possible regression from https://invent.kde.org/plasma/discover/-/merge_requests/516. Happens any time I want to search something in Discover I am seeing this on 6.0 beta 1. Happens every time and additionally clicking Installed also crashes it instantly. Not sure if related. Operating System: Arch Linux KDE Plasma Version: 5.90.0 KDE Frameworks Version: 5.246.0 Qt Version: 6.6.1 Kernel Version: 6.6.6-273-tkg-linux-tkg (64-bit) Graphics Platform: Wayland Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor Memory: 62.7 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 4080/PCIe/SSE2 Product Name: X570M Pro4 For me Discover crashes when searching only for some packages (libreoffice, plasma, paint,...). Others just work fine. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.90.90 KDE Frameworks Version: 5.247.0 Qt Version: 6.6.1 Kernel Version: 6.2.0-39-generic (64-bit) Graphics Platform: Wayland Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz Memory: 15.4 GiB of RAM Graphics Processor: Mesa Intel® Xe Graphics Manufacturer: LENOVO Product Name: 82BJ System Version: Yoga 7 15ITL5 Created attachment 164401 [details]
crash when searching for libreoffice
Still the same, crashes when searching for some packages.
Right now my system is basically a clean install on hardware.
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.91.90
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
Kernel Version: 6.2.0-39-generic (64-bit)
Graphics Platform: Wayland
==4220==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f7c26b74a28 bp 0x7ffc022d0090 sp 0x7ffc022cff10 T0) ==4220==The signal is caused by a READ memory access. ==4220==Hint: address points to the zero page. #0 0x7f7c26b74a28 in KNSCore::ResultsStream::fetch() /home/nico/kde6/src/knewstuff/src/core/resultsstream.cpp:68 #1 0x7f7c26b74daa in KNSCore::ResultsStream::fetchMore() /home/nico/kde6/src/knewstuff/src/core/resultsstream.cpp:82 #2 0x7f7c27ea2e70 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KNSCore::ResultsStream::*)()>::call(void (KNSCore::ResultsStream::*)(), KNSCore::ResultsStream*, void**) /usr/include/qt6/QtCore/qobjectdefs_impl.h:145 #3 0x7f7c27e9daad in void QtPrivate::FunctionPointer<void (KNSCore::ResultsStream::*)()>::call<QtPrivate::List<>, void>(void (KNSCore::ResultsStream::*)(), KNSCore::ResultsStream*, void**) /usr/include/qt6/QtCore/qobjectdefs_impl.h:182 #4 0x7f7c27e9873d in QtPrivate::QCallableObject<void (KNSCore::ResultsStream::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /usr/include/qt6/QtCore/qobjectdefs_impl.h:520 #5 0x7f7c55fdafb2 in void doActivate<false>(QObject*, int, void**) /usr/src/debug/qtbase-everywhere-src-6.6.1/build/include/QtCore/../../../src/corelib/kernel/qobjectdefs_impl.h:433 #6 0x7f7c59c75962 in ResultsStream::fetchMore() /home/nico/kde6/build/discover/libdiscover/DiscoverCommon_autogen/3YJK5W5UP7/moc_AbstractResourcesBackend.cpp:193 #7 0x7f7c59d59b24 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (ResultsStream::*)()>::call(void (ResultsStream::*)(), ResultsStream*, void**) (/home/nico/kde6/usr/lib64/plasma-discover/libDiscoverCommon.so+0x159b24) (BuildId: 6434677a9161946212fa3049b2acbb26912a48a6) #8 0x7f7c59d545ed in void QtPrivate::FunctionPointer<void (ResultsStream::*)()>::call<QtPrivate::List<>, void>(void (ResultsStream::*)(), ResultsStream*, void**) /usr/include/qt6/QtCore/qobjectdefs_impl.h:182 #9 0x7f7c59d50813 in QtPrivate::QCallableObject<void (ResultsStream::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /usr/include/qt6/QtCore/qobjectdefs_impl.h:520 #10 0x7f7c55fdafb2 in void doActivate<false>(QObject*, int, void**) /usr/src/debug/qtbase-everywhere-src-6.6.1/build/include/QtCore/../../../src/corelib/kernel/qobjectdefs_impl.h:433 #11 0x7f7c59c75962 in ResultsStream::fetchMore() /home/nico/kde6/build/discover/libdiscover/DiscoverCommon_autogen/3YJK5W5UP7/moc_AbstractResourcesBackend.cpp:193 #12 0x7f7c59d6aedc in ResourcesProxyModel::fetchMore(QModelIndex const&) /home/nico/kde6/src/discover/libdiscover/resources/ResourcesProxyModel.cpp:765 #13 0x7f7c595dc211 (/lib64/libQt6QmlModels.so.6+0x65211) (BuildId: 35c736bc4cef801135dfdfb0ea353bc1244d57b4) #14 0x7f7c595e52d3 in QQmlDelegateModel::event(QEvent*) (/lib64/libQt6QmlModels.so.6+0x6e2d3) (BuildId: 35c736bc4cef801135dfdfb0ea353bc1244d57b4) #15 0x7f7c58fc094d in QApplicationPrivate::notify_helper(QObject*, QEvent*) /usr/src/debug/qtbase-everywhere-src-6.6.1/src/widgets/kernel/qapplication.cpp:3296 #16 0x7f7c55f878b7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qcoreapplication.cpp:1121 #17 0x7f7c55f87c16 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qcoreapplication.cpp:1901 #18 0x7f7c561ad9e2 in postEventSourceDispatch /usr/src/debug/qtbase-everywhere-src-6.6.1/src/corelib/kernel/qeventdispatcher_glib.cpp:243 #19 0x7f7c55872f2f in g_main_dispatch ../glib/gmain.c:3476 #20 0x7f7c55872f2f in g_main_context_dispatch_unlocked ../glib/gmain.c:4284 #21 0x7f7c55874b57 in g_main_context_iterate_unlocked ../glib/gmain.c:4349 #22 0x7f7c5587520b in g_main_context_iteration ../glib/gmain.c:4414 #23 0x7f7c561abc6b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/lib64/libQt6Core.so.6+0x3abc6b) (BuildId: da7667e446842b4ec5e606c6775afb0da17fb3fa) #24 0x7f7c55f9211a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (/lib64/libQt6Core.so.6+0x19211a) (BuildId: da7667e446842b4ec5e606c6775afb0da17fb3fa) #25 0x7f7c55f8bd45 in QCoreApplication::exec() (/lib64/libQt6Core.so.6+0x18bd45) (BuildId: da7667e446842b4ec5e606c6775afb0da17fb3fa) #26 0x4414b3 in main /home/nico/kde6/src/discover/discover/main.cpp:218 #27 0x7f7c556281af in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 #28 0x7f7c55628278 in __libc_start_main_impl ../csu/libc-start.c:360 #29 0x418b44 in _start ../sysdeps/x86_64/start.S:115 AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/nico/kde6/src/knewstuff/src/core/resultsstream.cpp:68 in KNSCore::ResultsStream::fetch() (In reply to ichweissnix from comment #5) > Created attachment 164401 [details] > crash when searching for libreoffice > > Still the same, crashes when searching for some packages. > Right now my system is basically a clean install on hardware. > > Operating System: KDE neon Unstable Edition > KDE Plasma Version: 5.91.90 > KDE Frameworks Version: 5.248.0 > Qt Version: 6.6.1 > Kernel Version: 6.2.0-39-generic (64-bit) > Graphics Platform: Wayland This looks more like https://bugs.kde.org/show_bug.cgi?id=477202 Alex, is this something we can expect https://invent.kde.org/frameworks/knewstuff/-/commit/b67f0c0bf8df59e3b7ed4f98ab2abcf2befe55ee to have fixed? That is at lease not what I had on mind when making the patch - did you notice any change due to the patch? I can't reproduce the issue myself, so I'm not sure. Nicolas, would you be able to test this out again to see if that patch helped? Still crashes Created attachment 165784 [details]
GDB Backtrace - KNSCore::ResultStream::fetch SIGSEGV
I am able to reproduce this bug on Arch Linux with their packaging of KDE Plasma 6.0 RC2. This version of KDE is running on a configuration migrated from the latest 5.X Debian branch (e.g. we copied ".local" and ".config" from the old home directory to the new home directory).
To reproduce, I open "plasma-discover" and use the top left search box of Discover to search for anything. Discover will attempt to search for a few seconds before crashing.
This bug is not impacted by the presence of "PackageKit" or "fwupd" on the system (I tried it with and without the packages installed).
Created attachment 165975 [details]
crash when searching for libreoffice 2024 02 21
Still crashing...
I uploaded a new Log
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-18-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: LENOVO
Product Name: 82BJ
System Version: Yoga 7 15ITL5
Happens for me when searching in Discover 6.0.0 for "Ada" , as well as for "Libreoffice", but not for most other search terms. *** Bug 483177 has been marked as a duplicate of this bug. *** *** Bug 484658 has been marked as a duplicate of this bug. *** There are 2 different issues, one issue from ichweissnix@gmx.at is hitting assert https://invent.kde.org/plasma/discover/-/blob/master/libdiscover/resources/ResourcesProxyModel.cpp#L639 Arazil issue is in KNSCore::ResultsStream::fetch d pointer is null Is this crash still happening to other reporters? I had a bug marked as a duplicate of this and for me, in 6.0.3 of Discover, my initial reproducible crashes are no longer happening. (In reply to Waleed Hamra from comment #18) > Is this crash still happening to other reporters? > > I had a bug marked as a duplicate of this and for me, in 6.0.3 of Discover, > my initial reproducible crashes are no longer happening. I tested a week or 2 ago and it was crashing then. I just did a little test and it didn't crash now. Definitely an improvement. (In reply to Waleed Hamra from comment #18) > Is this crash still happening to other reporters? > > I had a bug marked as a duplicate of this and for me, in 6.0.3 of Discover, > my initial reproducible crashes are no longer happening. I am no longer able to reproduce the bug on Discover 6.0.3. It appears that the problem has been resolved. Thanks for following up, everyone! |