Bug 417015 - plasmashell crashes in primaryConnectionTypeChanged() after restarting NetworkManager
Summary: plasmashell crashes in primaryConnectionTypeChanged() after restarting Networ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networks widget (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-01 09:28 UTC by Bernie Innocenti
Modified: 2024-12-23 18:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.18
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernie Innocenti 2020-02-01 09:28:54 UTC
SUMMARY

Upon restarting the NetworkManager daemon, plasmashell displays the applet normally until wifi connects, then it crashes.


STEPS TO REPRODUCE
1. login into Plasma desktop
2. sudo systemctl restart NetworkManager
3. wait a few seconds while wifi reconnects

Stack trace (sorry, I can't easily install Qt symbols on ArchLinux):

Thread 1 "plasmashell" received signal SIGSEGV, Segmentation fault.
0x00007ffff5b45f8e in ?? () from /usr/lib/libQt5Core.so.5
(gdb) bt
#0  0x00007ffff5b45f8e in  () at /usr/lib/libQt5Core.so.5
#1  0x00007fff8f967353 in Handler::hotspotSupportedChanged(bool) () at /usr/lib/libplasmanm_internal.so
#2  0x00007ffff5b4646e in  () at /usr/lib/libQt5Core.so.5
#3  0x00007fff8f705382 in NetworkManager::Notifier::primaryConnectionTypeChanged(NetworkManager::ConnectionSettings::ConnectionType) () at /usr/lib/libKF5NetworkManagerQt.so.6
#4  0x00007fff8f769390 in  () at /usr/lib/libKF5NetworkManagerQt.so.6
#5  0x00007fff8f7162d3 in  () at /usr/lib/libKF5NetworkManagerQt.so.6
#6  0x00007ffff6c16350 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007ffff5b3e26a in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#8  0x00007ffff6607362 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff6610819 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff5b10962 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#11 0x00007ffff5b131c6 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#12 0x00007ffff5b699d4 in  () at /usr/lib/libQt5Core.so.5
#13 0x00007ffff3e1439e in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#14 0x00007ffff3e161b1 in  () at /usr/lib/libglib-2.0.so.0
#15 0x00007ffff3e161f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#16 0x00007ffff5b69020 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/libQt5Core.so.5
#17 0x00007ffff5b0f4cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#18 0x00007ffff5b174d6 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#19 0x0000555555573018 in  ()
#20 0x00007ffff54e1153 in __libc_start_main () at /usr/lib/libc.so.6
#21 0x000055555557323e in _start ()
Comment 1 Bernie Innocenti 2020-02-01 09:30:03 UTC
There are several similar bugs: #290684, #317700, #345967... but they're market as fixed long ago, and the stack traces don't match. So this bug is probably new.
Comment 2 Bernie Innocenti 2020-02-01 09:41:08 UTC
This is consistently reproducible.

Qt 5.14.1-1
plasma-nm 5.17.90.4-1
plasma-workspace 5.17.90-1
plasma-framework 5.66.0-1
Comment 3 Jan Grulich 2020-02-01 15:02:49 UTC
This should be fixed already in git. The fix will be included in the stable version.
Comment 4 Bernie Innocenti 2020-02-02 09:35:19 UTC
(In reply to Jan Grulich from comment #3)
> This should be fixed already in git. The fix will be included in the stable
> version.

Good to hear. Could you please link to the commit?
Comment 6 Christoph Feck 2020-02-27 09:22:10 UTC
Changing status according to previous comments.
Comment 7 Ben Cooksley 2024-12-23 18:25:55 UTC
Bulk transfer as requested in T17796