[Digikam-devel] [Bug 254679] Crash when closign digikam while filter active

Marcel Wiesweg marcel.wiesweg at gmx.de
Thu Oct 21 11:22:05 BST 2010


https://bugs.kde.org/show_bug.cgi?id=254679





--- Comment #6 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-10-21 12:21:59 ---
I've had a similar crash recently. The reason is that one must remember that
the derived class destructor is executed before the parent class destructor.
So the crash happens like this:

Thread is running, accessing NRFilterPriv data.
Deleting the filter
1) ~NRFilter deletes NRFilterPriv
2) ~DImgThreadedFilter calls cancelFilter
3) cancelFilter wait()s for the thread to finish

Between 1) and 2) the thread is still running and accessed the deleted data.
Solution: Call cancelFilter in ~NRFilter before any data is deleted.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list