Bug 461924

Summary: crash in WifiSecurity::setStoreSecretsSystemWide() when changing setting in Network config
Product: [Applications] systemsettings Reporter: Miguel Rozsas <miguel>
Component: kcm_networkmanagementAssignee: Jan Grulich <jgrulich>
Status: RESOLVED DUPLICATE    
Severity: crash CC: avinesh.saini, cooler, nate, nicolas.fella, plasma-bugs-null
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.26.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Miguel Rozsas 2022-11-16 22:29:43 UTC
Application: systemsettings (5.26.3)

Qt Version: 5.15.7
Frameworks Version: 5.100.0
Operating System: Linux 6.0.8-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.26.3 [KCrashBackend]

-- Information about the crash:
in a connetion window, geral configuration tab, there is a setting named "all users can connect to this network" that is set.
As Windows Manager is asking me root password every time I want to use this configuration, I will try to disable it and them , add my specific user to the next field.
But when I click on the check box above, it crash. I already provided root password to show this window..So, there is at least 2 bugs here. It is asking root password to use a connection already set to all users and it crahs whem I change this setting. Opensuse Tumbleweed
S
S

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Configurações do sistema (systemsettings), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fe15ece1c28 in WifiSecurity::setStoreSecretsSystemWide(bool) () from /lib64/libplasmanm_editor.so
#5  0x00007fe19bd132cd in ?? () from /lib64/libQt5Core.so.5
#6  0x00007fe19bd132cd in ?? () from /lib64/libQt5Core.so.5
#7  0x00007fe19caa7fde in QCheckBox::stateChanged(int) () from /lib64/libQt5Widgets.so.5
#8  0x00007fe19ca98c4a in ?? () from /lib64/libQt5Widgets.so.5
#9  0x00007fe19ca98d97 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#10 0x00007fe19c9e6c38 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#11 0x00007fe19c9a53fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#12 0x00007fe19c9ad922 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#13 0x00007fe19bcdc128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#14 0x00007fe19c9aba9e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5
#15 0x00007fe19c9ffa58 in ?? () from /lib64/libQt5Widgets.so.5
#16 0x00007fe19ca02fb0 in ?? () from /lib64/libQt5Widgets.so.5
#17 0x00007fe19c9a53fe in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#18 0x00007fe19bcdc128 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#19 0x00007fe19c17b9ad in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#20 0x00007fe19c14f37c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#21 0x00007fe1987210fa in ?? () from /lib64/libQt5XcbQpa.so.5
#22 0x00007fe19a46aa90 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#23 0x00007fe19a46ae48 in ?? () from /lib64/libglib-2.0.so.0
#24 0x00007fe19a46aedc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#25 0x00007fe19bd33b56 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#26 0x00007fe19bcdab9b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#27 0x00007fe19bce2d06 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#28 0x00005596496bffa8 in ?? ()
#29 0x00007fe19b42c5b0 in __libc_start_call_main () from /lib64/libc.so.6
#30 0x00007fe19b42c679 in __libc_start_main_impl () from /lib64/libc.so.6
#31 0x00005596496c08d5 in ?? ()
[Inferior 1 (process 8333) detached]

Reported using DrKonqi
Comment 1 Miguel Rozsas 2022-11-17 12:01:30 UTC
If you click on "global" change settings (on top of NM panel, next to the pin) you are prompt to root password, which is fine. After typing the correct root password all connections are showed to choose one to modify. If a select a connection that all users can use and I try to modify this property, it crash.
Instead, if I click on local configure button that shows when you click on the arrow in the list of connections then the configure connection panel for that connection show up (just like before), but now, no root password is asked and if I click on the check mark to change the setting (all users can use this connection) it not crash, allowing me to edit the list of authorized users !
Comment 2 Avinesh Kumar 2022-11-24 04:58:04 UTC
Created attachment 153987 [details]
New crash information added by DrKonqi

systemsettings (5.26.3) using Qt 5.15.7

Network Configurations application crashes everytime when trying to unselect the check box - "all users can connect to this network"

-- Backtrace (Reduced):
#4  0x00007fd1d890e17b in PasswordField::setPasswordOption(PasswordField::PasswordOption) () from /lib64/libplasmanm_editor.so
#5  0x00007fd1d88f9c8f in WifiSecurity::setStoreSecretsSystemWide(bool) () from /lib64/libplasmanm_editor.so
[...]
#8  0x00007fd21b2a7fde in QCheckBox::stateChanged(int) () from /lib64/libQt5Widgets.so.5
[...]
#10 0x00007fd21b298d97 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#11 0x00007fd21b1e6c38 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
Comment 3 Nate Graham 2022-12-06 18:36:20 UTC
*** Bug 462710 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas Fella 2023-01-17 17:01:04 UTC

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