#19413 [Opn]: GD & freetype not thread safe

From: Date: Sun, 15 Sep 2002 06:53:40 +0000
Subject: #19413 [Opn]: GD & freetype not thread safe
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19382@lists.php.net to get a copy of this message
ID: 19413 User updated by: brianh@kheldar.apana.org.au Reported By: brianh@kheldar.apana.org.au Status: Open Bug Type: GD related Operating System: OS/2 PHP Version: 4.2.3 New Comment: This patch serializes access to gdImageStringFT & friends, curing the segfaults I'd been getting. http://silk.apana.org.au/pub/apache/gd_threadsafe_patch.txt Previous Comments: ------------------------------------------------------------------------ [2002-09-15 01:34:18] brianh@kheldar.apana.org.au In testing Apache v2.0.40 running multi-threaded, I noticed regular exceptions occurring with concurrent requests for a GD generated image. I tracked it down to the fact that the way GD uses freetype is not thread safe (it uses a single static FT_Library object which the freetype docs specifically say shouldn't be shared between threads). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19413&edit=1

« previous php.bugs (#19382) next »