Bug 423289 - Settings Module Crash on opening "Configure Window Manager" in window context menu
Summary: Settings Module Crash on opening "Configure Window Manager" in window context...
Status: RESOLVED DUPLICATE of bug 423111
Alias: None
Product: systemsettings
Classification: Applications
Component: kcmshell (show other bugs)
Version: 5.19.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-20 20:04 UTC by Pierre Maraval
Modified: 2020-06-24 07:24 UTC (History)
3 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 Pierre Maraval 2020-06-20 20:04:58 UTC
Application: kcmshell5 (5.19.0)

Qt Version: 5.15.0
Frameworks Version: 5.71.0
Operating System: Linux 5.7.1-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:

1) Open Application (tried with several)
2) Access WIndow menu with Alt+F3 or by right clicking on the titlebar
3) Select "More Actions"
4) Select "Configure Window Manager"
----> Crash notification appears instead of desired configuration window. Other context menu options (Special Windows Settings etc) work fine.

The same settings window behaves fine when accessed through the KDE settings or by accessing "Window Rules" from KRunner.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings Module (kcmshell5), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f9aa5a4ab97 in std::__atomic_base<QThreadData*>::load (__m=std::memory_order_acquire, this=0x38) at /usr/include/c++/10/bits/atomic_base.h:741
#5  std::atomic<QThreadData*>::load (__m=std::memory_order_acquire, this=0x38) at /usr/include/c++/10/atomic:523
#6  QAtomicOps<QThreadData*>::loadAcquire<QThreadData*> (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:251
#7  QBasicAtomicPointer<QThreadData>::loadAcquire (this=0x38) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:255
#8  QBasicAtomicPointer<QThreadData>::operator QThreadData* (this=0x38) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:251
#9  QObjectPrivate::setParent_helper (this=0x55efca8f8670, o=0x55efca8f84d0) at kernel/qobject.cpp:2157
#10 0x00007f9a933514ff in KWinOptionsSettings::KWinOptionsSettings (this=<optimized out>, parent=<optimized out>, this=<optimized out>, parent=<optimized out>) at /usr/src/debug/kwin5-5.19.0-1.1.x86_64/build/kcmkwin/kwinoptions/kwinoptions_settings.cpp:9
#11 0x00007f9a9334ed94 in KFocusConfigStandalone::KFocusConfigStandalone (parent=0x55efca803990, this=0x55efca8f84d0) at /usr/src/debug/kwin5-5.19.0-1.1.x86_64/kcmkwin/kwinoptions/main.cpp:44
#12 KPluginFactory::createInstance<KFocusConfigStandalone, QWidget> (parentWidget=<optimized out>, parent=<optimized out>, args=...) at /usr/include/KF5/KCoreAddons/kpluginfactory.h:520
#13 0x00007f9aa6bf9c52 in KPluginFactory::create (this=this@entry=0x55efca8d46e0, iface=0x7f9aa52bb298 "KCModule", parentWidget=parentWidget@entry=0x0, parent=parent@entry=0x55efca803990, args=..., keyword=...) at /usr/src/debug/kcoreaddons-5.71.0-1.1.x86_64/src/lib/plugin/kpluginfactory.cpp:133
#14 0x00007f9aa6f185dd in KPluginFactory::create<KCModule> (parentWidget=0x0, args=..., keyword=..., parent=0x55efca803990, this=0x55efca8d46e0) at /usr/include/KF5/KCoreAddons/kpluginfactory.h:567
#15 KService::createInstance<KCModule> (parentWidget=0x0, error=0x7ffd8d50e788, args=..., parent=0x55efca803990, this=0x55efca274450) at /usr/include/KF5/KService/kservice.h:557
#16 KService::createInstance<KCModule> (error=0x7ffd8d50e788, args=..., parent=0x55efca803990, this=0x55efca274450) at /usr/include/KF5/KService/kservice.h:532
#17 KCModuleLoader::loadModule (mod=..., report=report@entry=KCModuleLoader::Inline, parent=0x55efca803990, args=...) at /usr/src/debug/kcmutils-5.71.0-1.1.x86_64/src/kcmoduleloader.cpp:120
#18 0x00007f9aa6f18fa4 in KCModuleProxyPrivate::loadModule (this=this@entry=0x55efca8133b0) at /usr/src/debug/kcmutils-5.71.0-1.1.x86_64/src/kcmoduleproxy.cpp:94
#19 0x00007f9aa6f19638 in KCModuleProxy::realModule (this=this@entry=0x55efca803990) at /usr/src/debug/kcmutils-5.71.0-1.1.x86_64/src/kcmoduleproxy.cpp:67
#20 0x00007f9aa6f19ac2 in KCMultiDialog::addModule (this=0x7f9a940086a0, moduleInfo=..., parentItem=0x0, args=...) at /usr/src/debug/kcmutils-5.71.0-1.1.x86_64/src/kcmultidialog.cpp:496
#21 0x000055efc8e73ee0 in main (_argc=<optimized out>, _argv=<optimized out>) at /usr/include/qt5/QtCore/qbasicatomic.h:118
[Inferior 1 (process 24696) detached]
Comment 1 Jaime Torres 2020-06-23 20:44:00 UTC
I suffer the same bug with the same backtrace following the same steps.

Qt Version: 5.15.0
Frameworks Version: 5.71.0
Operating System: Linux 5.7.1-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"
Comment 2 Jaime Torres 2020-06-23 20:50:59 UTC
Or from command line:
/usr/bin/kcmshell5 --icon preferences-system-windows --desktopfile /usr/share/kservices5/kwinfocus.desktop kwindecoration kwinactions kwinfocus kwinmoving kwinadvanced kwinrules kwincompositing kwineffects kwintabbox kwinscreenedges kwinscripts

Caused by:
==22198== Invalid read of size 8
==22198==    at 0x5DD0B97: load (atomic_base.h:747)
==22198==    by 0x5DD0B97: load (atomic:523)
==22198==    by 0x5DD0B97: loadAcquire<QThreadData*> (qatomic_cxx11.h:251)
==22198==    by 0x5DD0B97: loadAcquire (qbasicatomic.h:255)
==22198==    by 0x5DD0B97: operator QBasicAtomicPointer<QThreadData>::Type (qbasicatomic.h:251)
==22198==    by 0x5DD0B97: QObjectPrivate::setParent_helper(QObject*) (qobject.cpp:2157)
==22198==    by 0x149C74FE: KWinOptionsSettings::KWinOptionsSettings(QObject*) (kwinoptions_settings.cpp:9)
==22198==    by 0x149C4E13: UnknownInlinedFun (main.cpp:54)
==22198==    by 0x149C4E13: QObject* KPluginFactory::createInstance<KMovingConfigStandalone, QWidget>(QWidget*, QObject*, QList<QVariant> const&) (kpluginfactory.h:520)
==22198==    by 0x4BE2C51: KPluginFactory::create(char const*, QWidget*, QObject*, QList<QVariant> const&, QString const&) (kpluginfactory.cpp:133)
==22198==    by 0x48CB5DC: KCModuleLoader::loadModule(KCModuleInfo const&, KCModuleLoader::ErrorReporting, QWidget*, QStringList const&) (kpluginfactory.h:569)
==22198==    by 0x48CBFA3: KCModuleProxyPrivate::loadModule() (kcmoduleproxy.cpp:94)
==22198==    by 0x48CC637: KCModuleProxy::realModule() const (kcmoduleproxy.cpp:67)
==22198==    by 0x48CCAC1: KCMultiDialog::addModule(KCModuleInfo const&, KPageWidgetItem*, QStringList const&) (kcmultidialog.cpp:496)
==22198==    by 0x10FEDF: main (main.cpp:309)
==22198==  Address 0xba is not stack'd, malloc'd or (recently) free'd
Comment 3 Wolfgang Bauer 2020-06-24 07:24:11 UTC
Should be fixed in Plasma/kwin 5.19.2.

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