Launchpad has imported 1 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=81874.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2014-07-29T12:20:17+00:00 Alberto Salvia Novella wrote:

I looked at the implementation of cairo-ft-font.c and it seems that
there are huge multi-threading violations in cairo. The reason is that
FreeType API documentation clearly states:

In multi-threaded applications, make sure that the same FT_Library
object or any of its children doesn't get accessed in parallel.

Cairo initializes FT_Library for its font map and there's a lock for
that, however it's only used for font map manipulations, the actual FT_
library calls are completely unprotected with that lock, although they
should be! What adds to the injury is that cairo-ft-font.c even has this
comment on one of its functions:

You must be careful when using this function in a library or in a
threaded application, because freetype's design makes it unsafe to
call freetype functions simultaneously from multiple threads, (even
if using distinct FT_Face objects)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1199571/comments/15


** Changed in: libcairo
       Status: Unknown => Confirmed

** Changed in: libcairo
   Importance: Unknown => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1199571

Title:
  Huge multi-threading violations in cairo

To manage notifications about this bug go to:
https://bugs.launchpad.net/libcairo/+bug/1199571/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to