Bug 449755 - (SEGV) kde5d crashed via kf5-bluez-qt when logging out
Summary: (SEGV) kde5d crashed via kf5-bluez-qt when logging out
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.23.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-07 18:09 UTC by postix
Modified: 2022-02-07 18:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.24
Sentry Crash Report:


Attachments
Full backtrace (46.77 KB, text/plain)
2022-02-07 18:09 UTC, postix
Details
Journalctl log: Relevant part before and after the crash (144.20 KB, text/x-log)
2022-02-07 18:09 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2022-02-07 18:09:28 UTC
Created attachment 146399 [details]
Full backtrace

SUMMARY

After scanning a for bluetooth devices, w/o connecting to any and logging out, the logout screen freezes after a second, though the cursor still reacts.

```
#5  std::__atomic_base<int>::operator++() (this=0x20) at /usr/include/qt5/QtCore/qbasicatomic.h:118
#6  QAtomicOps<int>::ref<int>(std::atomic<int>&) (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:283
#7  QBasicAtomicInteger<int>::ref() (this=0x20) at /usr/include/qt5/QtCore/qbasicatomic.h:118
#8  QSharedPointer<BluezQt::Adapter>::ref() const (this=0x5582f2845550) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:503
#9  QSharedPointer<BluezQt::Adapter>::QSharedPointer(QSharedPointer<BluezQt::Adapter> const&) (other=..., this=0x5582f2845550, this=<optimized out>, other=<optimized out>) at /usr/include/qt5/QtCore/qsharedpointer_impl.h:327
#10 QList<QSharedPointer<BluezQt::Adapter> >::node_construct(QList<QSharedPointer<BluezQt::Adapter> >::Node*, QSharedPointer<BluezQt::Adapter> const&) (this=0x7ffde8557700, t=..., n=0x5582f2644fd0) at /usr/include/qt5/QtCore/qlist.h:465
#11 QList<QSharedPointer<BluezQt::Adapter> >::append(QSharedPointer<BluezQt::Adapter> const&) (t=<optimized out>, this=<optimized out>) at /usr/include/qt5/QtCore/qlist.h:634
#12 QList<QSharedPointer<BluezQt::Adapter> >::append(QSharedPointer<BluezQt::Adapter> const&) (t=..., this=0x7ffde8557700) at /usr/include/qt5/QtCore/qlist.h:620
#13 QHash<QString, QSharedPointer<BluezQt::Adapter> >::values() const (this=0x5582f29cd820) at /usr/include/qt5/QtCore/qhash.h:726
#14 BluezQt::Manager::adapters() const (this=<optimized out>) at /usr/src/debug/kf5-bluez-qt-5.90.0-1.fc35.x86_64/src/manager.cpp:76
#15 0x00007ff7b105c791 in DeviceMonitor::saveState() (this=this@entry=0x5582f29ce660) at /usr/src/debug/bluedevil-5.23.5-1.fc35.x86_64/src/kded/devicemonitor.cpp:139
#16 0x00007ff7b105ca07 in DeviceMonitor::~DeviceMonitor() (this=0x5582f29ce660, this=<optimized out>) at /usr/src/debug/bluedevil-5.23.5-1.fc35.x86_64/src/kded/devicemonitor.cpp:73
#17 0x00007ff7b105ca3d in DeviceMonitor::~DeviceMonitor() (this=0x5582f29ce660, this=<optimized out>) at /usr/src/debug/bluedevil-5.23.5-1.fc35.x86_64/src/kded/devicemonitor.cpp:74
#18 0x00007ff7daf407ca in QObjectPrivate::deleteChildren() (this=this@entry=0x5582f29b6960) at kernel/qobject.cpp:2104
#19 0x00007ff7daf480cc in QObject::~QObject() (this=0x5582f29cead0, __in_chrg=<optimized out>) at kernel/qobject.cpp:1082
#20 0x00007ff7b105d5ed in BlueDevilDaemon::~BlueDevilDaemon() (this=0x5582f29cead0, this=<optimized out>) at /usr/src/debug/bluedevil-5.23.5-1.fc35.x86_64/src/kded/bluedevildaemon.cpp:112
#21 0x00005582f0be25b4 in Kded::~Kded() (this=0x5582f2674c60, this=<optimized out>) at /usr/src/debug/kf5-kded-5.90.0-1.fc35.x86_64/src/kded.cpp:101
#22 0x00005582f0be274d in Kded::~Kded() (this=0x5582f2674c60, this=<optimized out>) at /usr/src/debug/kf5-kded-5.90.0-1.fc35.x86_64/src/kded.cpp:103
#23 0x00005582f0be0ed8 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kf5-kded-5.90.0-1.fc35.x86_64/src/kded.cpp:773
```


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 35
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-200.fc35.x86_64 (64-bit)
Graphics Platform: X11
Comment 1 postix 2022-02-07 18:09:52 UTC
Created attachment 146400 [details]
Journalctl log: Relevant part before and after the crash
Comment 2 Nate Graham 2022-02-07 18:29:48 UTC
Crash is here:

DeviceMonitor::~DeviceMonitor()
{
    // Save state when tearing down to avoid getting out of sync if kded crashes
    // or is manually restarted
    saveState();
}


This code has been removed for Plasma 5.24, so I think the crash is no longer possible.