ID: 40578 Updated by: [EMAIL PROTECTED] 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:
Also backported to 4_4. Previous Comments: ------------------------------------------------------------------------ [2007-02-21 18:24:27] scottmacvicar at ntlworld dot com Any chance of having this backported to the PHP_4_4 branch? It's a fairly minor patch to apply. ------------------------------------------------------------------------ [2007-02-21 15:42:02] [EMAIL PROTECTED] 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! ------------------------------------------------------------------------ [2007-02-21 15:00:50] [EMAIL PROTECTED] 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