#40578 [Opn]: Thread safety issue with imagettftext
| From: | scottmacvicar at ntlworld dot com | Date: | Wed, 21 Feb 2007 14:40:19 +0000 |
| Subject: | #40578 [Opn]: Thread safety issue with imagettftext | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109261@lists.php.net to get a copy of this message | ||
ID: 40578
User updated by: scottmacvicar at ntlworld dot com
Reported By: scottmacvicar at ntlworld dot com
Status: Open
-Bug Type: GD related
+Bug Type: Reproducible crash
Operating System: RHEL 4
PHP Version: 5.2.1
New Comment:
Should probably class this as a crash.
Previous Comments:
------------------------------------------------------------------------
[2007-02-21 14:25:47] scottmacvicar at ntlworld dot com
Description:
------------
There appears to be a race condition with the truetype font support of
GD. I can see mutexes in the code for the font cache so there must be a
code path that's missed.
Backtrace:
http://public.vbulletin.com/bugs/php/gd_thread_safety-bt.txt
Reproduce code:
http://public.vbulletin.com/bugs/php/gd_thread_safety.phps
http://public.vbulletin.com/bugs/php/HECK.TTF
Command: ab -c 30 -n 10000
http://localhost/~scott/gd_thread_safety.php
Using Apache 2 with the Worker MPM.
Only patch applied to the build is a thread safety patch for
zend_strtod.c
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40578&edit=1