[Digikam-devel] [Bug 166424] Crash when editing Caption with Digikam4 SVN

Andreas Huggel ahuggel at gmx.net
Mon Jul 14 13:28:19 BST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=166424         




------- Additional Comments From ahuggel gmx net  2008-07-14 14:28 -------
Marcel,

Exiv2 is only _almost_ thread-safe:

The IPTC code is reentrant

The Exif code will be reentrant in 0.18 (fix for #439 is in SVN). Current versions still have some hidden unprotected Makernote initialization code done in the constructor of static class variables, which is probably not safe.

The XMP code uses the Adobe XMP toolkit (XMP SDK), which according to its documentation is thread-safe. It actually uses mutexes to serialize critical sections. However, I just saw that the XMP SDK initialization function is not mutex protected, so I believe that it is not thread-safe. In addition, Exiv2::XmpProperties::registerNs is also not thread-safe. So at least for the time being, applications need to ensure that these two XMP functions are serialized.



More information about the Digikam-devel mailing list