#23374 [NEW]: TTF related Segfault
| From: | eru@php.net | Date: | Sun, 27 Apr 2003 18:17:42 +0000 |
| Subject: | #23374 [NEW]: TTF related Segfault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-38517@lists.php.net to get a copy of this message | ||
From: eru@php.net
Operating system: Linux
PHP version: 4CVS-2003-04-27 (stable)
PHP Bug Type: GD related
Bug description: TTF related Segfault
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 bug report at http://bugs.php.net/?id=23374&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23374&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23374&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23374&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23374&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23374&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23374&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23374&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23374&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23374&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23374&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23374&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23374&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23374&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23374&r=gnused