From: danielsabsay at pacbell dot net
Operating system: MacOS 10.2.6
PHP version: 4.3.2
PHP Bug Type: Reproducible crash
Bug description: GDlib crash running stable code

Description:
------------
Using installation package for MacOS X. Code using
GD functions causes crash. There are 3 crash log
summaries. GD library is version 2.0.12

Actual result:
--------------
Thread 0 Crashed: #0 0x01d1b9ec in fontTest
(gdft.c:337) #1 0x90004a44 in malloc_zone_malloc #2
0x01d1b828 in gdCacheGet (gdcache.c:108) #3
0x01d1c518 in gdImageStringFTEx (gdft.c:855) #4
0x01d1c3a8 in gdImageStringFT (gdft.c:784) #5
0x03817130 in php_imagettftext_common (gd.c:3068) #6
0x03963144 in execute (zend_execute.c:1606) #7
0x0396330c in execute (zend_execute.c:1652) #8
0x03954f84 in zend_execute_scripts (zend.c:870) #9
0x03929860 in php_execute_script (main.c:1673) #10
0x03967bc8 in php_handler (sapi_apache2.c:525) #11
0x0001ee64 in ap_run_handler (config.c:195) #12
0x0001f5ec in ap_invoke_handler (config.c:403) #13

KERN_INVALID_ADDRESS (0x0001) at 0x2f747265 Thread 0
Crashed: #0 0x01d1b81c in gdCacheGet (gdcache.c:108)
#1 0x01d1c518 in gdImageStringFTEx (gdft.c:855) #2
0x01d1c3a8 in gdImageStringFT (gdft.c:784) #3
0x03817130 in php_imagettftext_common (gd.c:3068) #4
0x03963144 in execute (zend_execute.c:1606) #5
0x0396330c in execute (zend_execute.c:1652) #6
0x03954f84 in zend_execute_scripts (zend.c:870) #7
0x03929860 in php_execute_script (main.c:1673) #8
0x03967bc8 in php_handler (sapi_apache2.c:525) #9
0x0001ee64 in ap_run_handler (config.c:195) #10
0x0001f5ec in ap_invoke_handler (config.c:403) #11
0x00007cb4 in ap_process_request (http_request.c:292)
#12 0x00002cec in ap_proc


in gdCacheDelete (gdcache.c:90) #1 0x01d1c348 in
gdFreeFontCache (gdft.c:773) #2 0x0380beec in
zm_deactivate_gd (gd.c:384) #3 0x03957c48 in
module_registry_cleanup (zend_API.c:1175) #4
0x0395a0e4 in zend_hash_apply (zend_hash.c:688) #5
0x03954830 in zend_deactivate_modules (zend.c:635) #6
0x039280f8 in php_request_shutdown (main.c:974) #7
0x03967bec in php_handler (sapi_apache2.c:542) #8
0x0001ee64 in

--
Edit bug report at [url]http://bugs.php.net/?id=24956&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24956&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24956&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24956&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24956&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24956&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24956&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24956&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24956&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24956&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24956&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24956&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24956&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24956&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24956&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24956&r=gnused[/url]