[Digikam-devel] [Bug 262077] Crash while trying to select a range of dates in timeline view

Marcel Wiesweg marcel.wiesweg at gmx.de
Mon Oct 3 12:53:58 BST 2011


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





--- Comment #19 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-10-03 11:53:57 ---
We have a nice race condition here:
ImageInfo::~ImageInfo()
{
    ImageInfoData* olddata = m_data.unassign();
    // <- here
    if (olddata)
    {
        ImageInfoStatic::cache()->dropInfo(olddata);
    }
}

At the indicated place, another thread can grab the ImageInfoData from the
cache, use it, and destroy the ImageInfo. It will then see the ref count
dropped to 0 again, and delete it. Returned to the first thread, already
deleted data will be deleted.
Solution: Do not reuse data with ref count 0.

-- 
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