[Kde-hardware-devel] ASSERT: "dev->backendObject()==0" in file /SVN/kdelibs/solid/solid/devicemanager.cpp, line 164

Kevin Ottens ervin at kde.org
Sat Nov 17 16:48:38 CET 2007


Le samedi 17 novembre 2007, Christian Esken a écrit :
> I ran Valgrind to find out what might be going wrong and found "Invalid
> read of size 8" inside Solid when *unplugging* the device. It looks to me
> like the device table is already corrupt on unplug.

It looks like Valgrind is confused by QPointer, at this point if we would 
access an invalid memory zone the assert of this line would trigger.

> I don't delete the pointer returned by
> Solid::Device::as<Solid::AudioInterface>(), but should I at all? Anyhow,
> this is just a minor leak.

No, you shouldn't delete it yourself. I'll try to take a look at this leak.

Regards.
-- 
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20071117/f8249403/attachment.pgp 


More information about the Kde-hardware-devel mailing list