#40578 [Opn->Asn]: Thread safety issue with imagettftext

From: Date: Wed, 21 Feb 2007 14:57:49 +0000
Subject: #40578 [Opn->Asn]: Thread safety issue with imagettftext
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109264@lists.php.net to get a copy of this message
ID: 40578 Updated by: tony2001@php.net Reported By: scottmacvicar at ntlworld dot com -Status: Open +Status: Assigned -Bug Type: Reproducible crash +Bug Type: GD related Operating System: RHEL 4 PHP Version: 5.2.1 -Assigned To: +Assigned To: tony2001 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#109264) next »