From:             scottmacvicar at ntlworld dot com
Operating system: RHEL 4
PHP version:      5.2.1
PHP Bug Type:     GD related
Bug description:  Thread safety issue with imagettftext

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 bug report at http://bugs.php.net/?id=40578&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40578&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40578&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40578&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40578&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40578&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40578&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40578&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40578&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40578&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40578&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40578&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40578&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40578&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40578&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40578&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40578&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40578&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40578&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40578&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40578&r=mysqlcfg

Reply via email to