Bug 459779

Summary: kcm_bolt crashes upon stopping, double free
Product: [Applications] systemsettings Reporter: fw.smit01
Component: kcm_thunderboltAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fw.smit01
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description fw.smit01 2022-09-28 15:09:31 UTC
SUMMARY

STEPS TO REPRODUCE
1. Open system settings
2. Select "Thunderbolt"
3. Try to switch to any other item, e.g. "System Information"

OBSERVED RESULT
systemsettings5 crashes - Only reproducible when a thunderbolt device is connected

EXPECTED RESULT
systemsettings5 should not crash, but show "System Information"

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5
Kernel Version: 5.19.9-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15,4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: HP ZBook Studio G5

ADDITIONAL INFORMATION

This bug is very similar to https://bugs.kde.org/show_bug.cgi?id=423029, but I think it's a different crash. I tried reproducing it as well with the latest git version (e761487c4693693e507b6c5068f4969d1896b2e2).

It can also be reproduced with kcmshell5. When closing the window it crashes as well. Below is the backtrace for that case.

(gdb) bt
#0  0x00007ffff643ac4c in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007ffff63ea9c6 in raise () from /lib64/libc.so.6
#2  0x00007ffff63d47f4 in abort () from /lib64/libc.so.6
#3  0x00007ffff642ed9e in __libc_message () from /lib64/libc.so.6
#4  0x00007ffff644495c in malloc_printerr () from /lib64/libc.so.6
#5  0x00007ffff6446a80 in _int_free () from /lib64/libc.so.6
#6  0x00007ffff6449103 in free () from /lib64/libc.so.6
#7  0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#8  0x00007ffff6aba608 in QObject::~QObject() () from /lib64/libQt5Core.so.5
#9  0x00007fffe17dbbdf in QQmlPrivate::QQmlElement<Bolt::Manager>::~QQmlElement() () from /usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_bolt.so
#10 0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#11 0x00007ffff6aba608 in QObject::~QObject() () from /lib64/libQt5Core.so.5
#12 0x00007ffff5feb449 in QQmlPrivate::QQmlElement<QQuickItem>::~QQmlElement() () from /lib64/libQt5Quick.so.5
#13 0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#14 0x00007ffff6aba608 in QObject::~QObject() () from /lib64/libQt5Core.so.5
#15 0x00007fffe02143d9 in QQmlPrivate::QQmlElement<QQuickPage>::~QQmlElement() () from /usr/lib64/qt5/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so
#16 0x00007ffff629e45a in KDeclarative::QmlObject::~QmlObject() () from /lib64/libKF5Declarative.so.5
#17 0x00007ffff629e73d in KDeclarative::QmlObjectSharedEngine::~QmlObjectSharedEngine() () from /lib64/libKF5Declarative.so.5
#18 0x00007ffff62b295d in KQuickAddons::ConfigModule::~ConfigModule() () from /lib64/libKF5QuickAddons.so.5
#19 0x00007fffe17d9697 in KCMBolt::~KCMBolt() () from /usr/lib64/qt5/plugins/plasma/kcms/systemsettings/kcm_bolt.so
#20 0x00007ffff7f6d647 in KCModuleQml::~KCModuleQml() () from /lib64/libKF5KCMUtils.so.5
#21 0x00007ffff7f6d66d in KCModuleQml::~KCModuleQml() () from /lib64/libKF5KCMUtils.so.5
#22 0x00007ffff7f728e8 in KCModuleProxy::deleteClient() () from /lib64/libKF5KCMUtils.so.5
#23 0x00007ffff7f733e1 in KCModuleProxy::~KCModuleProxy() () from /lib64/libKF5KCMUtils.so.5
#24 0x00007ffff7f735bd in KCModuleProxy::~KCModuleProxy() () from /lib64/libKF5KCMUtils.so.5
#25 0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#26 0x00007ffff7733196 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#27 0x00007ffff77334dd in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#28 0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#29 0x00007ffff7733196 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#30 0x00007ffff7f792f1 in UnboundScrollArea::~UnboundScrollArea() () from /lib64/libKF5KCMUtils.so.5
#31 0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#32 0x00007ffff7733196 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#33 0x00007ffff7d6e6e1 in KPageStackedWidget::~KPageStackedWidget() () from /lib64/libKF5WidgetsAddons.so.5
#34 0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#35 0x00007ffff7733196 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#36 0x00007ffff7dd480d in KPageWidget::~KPageWidget() () from /lib64/libKF5WidgetsAddons.so.5
#37 0x00007ffff6ab2b2a in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#38 0x00007ffff7733196 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#39 0x000055555555e3a1 in KCMShellMultiDialog::~KCMShellMultiDialog (this=<optimized out>, this=<optimized out>)
    at /usr/src/debug/kde-cli-tools-5.25.5-1.fc36.x86_64/redhat-linux-build/kcmshell/kcmshell5_autogen/EWIEGA46WW/../../../../kcmshell/main.h:68
#40 KCMShellMultiDialog::~KCMShellMultiDialog (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kde-cli-tools-5.25.5-1.fc36.x86_64/redhat-linux-build/kcmshell/kcmshell5_autogen/EWIEGA46WW/../../../../kcmshell/main.h:68
#41 0x00007ffff6ab40f1 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#42 0x00007ffff76f4d22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#43 0x00007ffff6a8a218 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#44 0x00007ffff6a8d584 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#45 0x00007ffff6adb457 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#46 0x00007ffff4a03faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#47 0x00007ffff4a592c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#48 0x00007ffff4a01940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#49 0x00007ffff6adaf4a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#50 0x00007ffff6a88c6a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#51 0x00007ffff6a90d32 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#52 0x000055555555c8a2 in main (_argc=<optimized out>, _argv=<optimized out>) at /usr/src/debug/kde-cli-tools-5.25.5-1.fc36.x86_64/kcmshell/main.cpp:359
Comment 1 fw.smit01 2022-09-28 15:11:23 UTC

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