#40578 [Csd]: Thread safety issue with imagettftext
| From: | pajoye@php.net | Date: | Wed, 21 Feb 2007 15:42:02 +0000 |
| Subject: | #40578 [Csd]: Thread safety issue with imagettftext | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109269@lists.php.net to get a copy of this message | ||
ID: 40578
Updated by: pajoye@php.net
Reported By: scottmacvicar at ntlworld dot com
Status: Closed
Bug Type: GD related
Operating System: RHEL 4
PHP Version: 5.2.1
Assigned To: tony2001
New Comment:
I reported the issue in GD too:
http://bugs.libgd.org/?do=details&task_id=48
Will be fixed in 2.0.35.
Thanks for your patch and nice reproduce case!
Previous Comments:
------------------------------------------------------------------------
[2007-02-21 15:00:50] tony2001@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
And again - very nice reproduce case & report, thanks.
------------------------------------------------------------------------
[2007-02-21 14:40:19] scottmacvicar at ntlworld dot com
Should probably class this as a crash.
------------------------------------------------------------------------
[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