Prevent a crash when deleting a device Interface
Needs ReviewPublic

Authored by meven on Fri, Nov 22, 8:59 AM.

Details

Reviewers
None
Group Reviewers
Frameworks
Summary

Double free of DeviceInterfacePrivate::m_backendObject

BUG: 414200
FIXED-IN: 5.65

#7 QPointer<QObject>::data (this=0x28) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qpointer.h:85
#8 Solid::DeviceInterfacePrivate::backendObject (this=0x20) at /home/meven/kde/src/solid/src/solid/devices/frontend/deviceinterface.cpp:110
#9 0x00007efd423e4cbd in Solid::DevicePrivate::~DevicePrivate (this=0x55b4921e4820, in_chrg=<optimized out>) at /home/meven/kde/src/solid/src/solid/devices/frontend/device.cpp:222
#10 0x00007efd423e4e2d in Solid::DevicePrivate::~DevicePrivate (this=0x55b4921e4820,
in_chrg=<optimized out>) at /home/meven/kde/src/solid/src/solid/devices/frontend/device.cpp:219
#11 0x00007efd423e6437 in Solid::DeviceManagerPrivate::~DeviceManagerPrivate (this=0x55b4921c93e0, in_chrg=<optimized out>) at /usr/include/c++/9/bits/atomic_base.h:413
#12 0x00007efd423e80ad in Solid::DeviceManagerPrivate::~DeviceManagerPrivate (this=0x55b4921c93e0,
in_chrg=<optimized out>) at /home/meven/kde/src/solid/src/solid/devices/frontend/devicemanager.cpp:49

Diff Detail

Repository
R245 Solid
Branch
prevent-crash
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 19046
Build 19064: arc lint + arc unit
meven created this revision.Fri, Nov 22, 8:59 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptFri, Nov 22, 8:59 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
meven requested review of this revision.Fri, Nov 22, 8:59 AM