[PATCH] Solid circular deletion

Alex Merry huntedhacker at tiscali.co.uk
Tue Feb 19 01:21:24 GMT 2008


Plasma keeps on crashing when removing external devices due to a segfault in S
olid.

gdb gives a circular backtrace like this:
#953 0xb74323b3 in ~DevicePrivate (this=0x8092650) at /home/kde-devel/src/KDE/
kdelibs/solid/solid/device.cpp:250
#954 0xb7433530 in ~QExplicitlySharedDataPointer (this=0x8092668)
    at /home/kde-devel/src/qt-copy/include/QtCore/../../src/corelib/tools/qsha
reddata.h:172
#955 0xb74323b3 in ~DevicePrivate (this=0x8092650) at /home/kde-devel/src/KDE/
kdelibs/solid/solid/device.cpp:250
#956 0xb7433530 in ~QExplicitlySharedDataPointer (this=0x8092668)

The attached patch seems to fix it, but I'm not sure if it's really the correc
t fix - can someone who knows about the code (or using QExplicitlySharedPointe
r as a self reference) check it?  It may introduce memory leaks.

Alex


-- 
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: solid.diff
Type: text/x-patch
Size: 411 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080219/5c310ff3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080219/5c310ff3/attachment.sig>


More information about the kde-core-devel mailing list