<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Make cairo_ft thread safe"
href="https://bugs.freedesktop.org/show_bug.cgi?id=69034">69034</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>david@freetype.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Make cairo_ft thread safe
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>cairo-bugs@cairographics.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mkasik@redhat.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>freetype font backend
</td>
</tr>
<tr>
<th>Product</th>
<td>cairo
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=85352" name="attach_85352" title="Make usage of freetype thread safe">attachment 85352</a> <a href="attachment.cgi?id=85352&action=edit" title="Make usage of freetype thread safe">[details]</a></span>
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
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=678397">https://bugzilla.redhat.com/show_bug.cgi?id=678397</a> and its duplicates).
Attached patch tries to fix this problem by creating FT_Library object for each
thread. This is recommended solution by freetype
(<a href="http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/freetype.h#n1684">http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/freetype.h#n1684</a>).
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.
Marek</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>