On Thu, 8 Sep 2011, Nicolas Chauvet wrote:

> I forward to the lcms-users mailing list this case:
> https://bugzilla.redhat.com/show_bug.cgi?id=607758
>
> This appends with lcms1, having lcms2 installed at the same time.
>
> Thx for your hints.

It is not clear that this issue is due to lcms.  The application seems 
to be using OpenMP and is likely using lcms to perform transforms 
using multiple threads.  The multi-threaded nature may explain why 
behavior has not been consistent.

In my experience, it is not safe to create lcms tranforms in threaded 
context with lcms 1.X and it seems that ufraw may be doing that.  The 
thread safety issues are related to the profiles used.  Perhaps lcms2 
does better at this since it tries to be more thread safe but I have 
not tried that yet.  It is possible to build a thread-safe lcms but 
then it will run like a turtle.

Although it is considerable work to get set up, I recommend using 
Valgrind's "helgrind" mode to verify concurrency in the program.  Any 
shared variables accessed without the protection of a lock will be 
reported.  The reason why this is considerable work to get set up is 
that one must replace the system libgomp.so with one built with one 
from the same GCC release but configured to use POSIX threads rather 
than Linux-specific interfaces.  The results can be quite revealing 
and are worth the effort.

Bob
-- 
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to