#23374 [Dup->Csd]: TTF related Segfault

From: Date: Thu, 22 May 2003 01:13:15 +0000
Subject: #23374 [Dup->Csd]: TTF related Segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40174@lists.php.net to get a copy of this message
ID: 23374 Updated by: sniper@php.net Reported By: eru@php.net -Status: Duplicate +Status: Closed Bug Type: GD related Operating System: Linux PHP Version: 4CVS-2003-04-27 (stable) New Comment: Fixed -> closed. Previous Comments: ------------------------------------------------------------------------ [2003-04-28 07:49:45] eru@php.net #23122 ------------------------------------------------------------------------ [2003-04-28 07:49:34] sniper@php.net Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. Same as already reported in #23122 ------------------------------------------------------------------------ [2003-04-27 13:17:42] eru@php.net Following bt is produced: #0 0x0000004a in ?? () #1 0x403ac830 in gdImageStringFTEx (im=0x0, brect=0xbfffd320, fg=-1, fontlist=0x80dd394 "/usr/local/apache_vhosts/ripuaria/htdocs/images/ARIALBI.TTF", ptsize=18, angle=0, x=-1, y=-1, string=0x80e2e8c "9", strex=0x0) at /mnt/usr/local/src/php4/ext/gd/libgd/gdft.c:825 #2 0x403ac684 in gdImageStringFT (im=0x0, brect=0xbfffd320, fg=-1, fontlist=0x80dd394 "/usr/local/apache_vhosts/ripuaria/htdocs/images/ARIALBI.TTF", ptsize=18, angle=0, x=-1, y=-1, string=0x80e2e8c "9") at /mnt/usr/local/src/php4/ext/gd/libgd/gdft.c:767 #3 0x4039ab2a in php_imagettftext_common (ht=4, return_value=0x80dfb54, this_ptr=0x0, return_value_used=1, mode=1, extended=0) at /mnt/usr/local/src/php4/ext/gd/gd.c:3058 #4 0x40399fbb in zif_imagettfbbox (ht=4, return_value=0x80dfb54, this_ptr=0x0, return_value_used=1) at /mnt/usr/local/src/php4/ext/gd/gd.c:2939 #5 0x404de062 in execute (op_array=0x80dd20c) at /mnt/usr/local/src/php4/Zend/zend_execute.c:1606 #6 0x404caef4 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /mnt/usr/local/src/php4/Zend/zend.c:864 #7 0x4048ee2e in php_execute_script (primary_file=0xbffff8e8) at /mnt/usr/local/src/php4/main/main.c:1637 #8 0x404e35e0 in apache_php_module_main (r=0x80d7b18, display_source_mode=0) at /mnt/usr/local/src/php4/sapi/apache/sapi_apache.c:55 #9 0x404e4690 in send_php (r=0x80d7b18, display_source_mode=0, filename=0x80d96a0 "/usr/local/apache_vhosts/ripuaria/htdocs/images/tcounter.php3") at /mnt/usr/local/src/php4/sapi/apache/mod_php4.c:617 #10 0x404e470f in send_parsed_php (r=0x80d7b18) at /mnt/usr/local/src/php4/sapi/apache/mod_php4.c:632 #11 0x4003e4c9 in ap_invoke_handler () from /lib/libcrypt.so.1 #12 0x40057563 in process_request_internal () from /lib/libcrypt.so.1 #13 0x400575dd in ap_process_request () from /lib/libcrypt.so.1 #14 0x4004cb30 in child_main () from /lib/libcrypt.so.1 #15 0x4004cd47 in make_child () from /lib/libcrypt.so.1 #16 0x4004cef7 in startup_children () from /lib/libcrypt.so.1 #17 0x4004d676 in standalone_main () from /lib/libcrypt.so.1 #18 0x4004e0f3 in ap_main () from /lib/libcrypt.so.1 #19 0x080486c3 in ?? () #20 0x4012614f in fnmatch () from /lib/libc.so.6 Script: <?php Header( "Content-type: image/png"); $im = ImageCreate( 10, 10 ); $size = ImageTTFBBox(18, 0, "ARIALBI.TTF", "A"); ImageTTFText($im, 18, 0, 0, 0, 0, "ARIALBI.TTF", "A"); ImagePng($im); ImageDestroy($im); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23374&edit=1

« previous php.bugs (#40174) next »