[cairo-bugs] [Bug 69034] New: Make cairo_ft thread safe

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 6 06:19:58 PDT 2013


          Priority: medium
            Bug ID: 69034
          Assignee: david at freetype.org
           Summary: Make cairo_ft thread safe
        QA Contact: cairo-bugs at cairographics.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: mkasik at redhat.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: freetype font backend
           Product: cairo

Created attachment 85352
  --> https://bugs.freedesktop.org/attachment.cgi?id=85352&action=edit
Make usage of freetype thread safe

Current freetype backend is not thread safe. It can cause segmentation fault
when threads are not properly handled by applications which use cairo (see
https://bugzilla.redhat.com/show_bug.cgi?id=678397 and its duplicates).

Attached patch tries to fix this problem by creating FT_Library object for each
thread. This is recommended solution by freetype

It adds a hash table to which FT_Library is added if a new thread needs one.
Thread IDs are used as keys for this table.


You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20130906/e6856e3f/attachment.html>

More information about the cairo-bugs mailing list