#21586 [Opn->Csd]: imagettftext segmentation fault
| From: | iliaa@php.net | Date: | Sat, 11 Jan 2003 18:41:50 +0000 |
| Subject: | #21586 [Opn->Csd]: imagettftext segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29787@lists.php.net to get a copy of this message | ||
ID: 21586
Updated by: iliaa@php.net
Reported By: bonzo_idd@hotmail.com
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 4.3.0
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, 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/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-01-11 12:36:28] bonzo_idd@hotmail.com
imagettftext seems to be impossible to use ;p because it crash apache
child every time it's invoked (there was a similar bug report but
problem was resolved relinking libpng, now it's not a libpng problem,
so i've done a new post)
look here plz:
$im_size = GetImageSize ("image.jpg");
$imageWidth = $im_size[0];
$imageHeight = $im_size[1];
$im = imageCreateTrueColor($imageWidth, $imageHeight);
$im2 = ImageCreateFromJPEG("image.jpg");
ImageCopy ($im,$im2,0,0,0,0, $imageWidth, $imageHeight);
ImageDestroy ($im2);
$black = ImageColorClosest($im, 0, 0, 0);
// Now apache will crash...
imagettftext($im, 15, 0, 40, 90, $black, "arial.ttf", "Ciao");
Header ("Content-type: image/jpeg");
ImageJpeg($im);
ImageDestroy($im);
tail -n 1 error_log:
[Sat Jan 11 19:17:29 2003] [notice] child pid 15648 exit signal
Segmentation fault (11)
i'm using:
libjpeg jpeg-6b
libgd 1.8.3
and php 4.3.0
my configure options are:
--prefix=/usr
--with-bz2
--with-gd
--enable-force-cgi-redirect
--enable-discard-path
--enable-gd-native-ttf
--enable-mime-magic
--enable-ftp
--enable-wddx
--enable-dbase
--enable-bcmath
--enable-sysvsem
--enable-exif
--enable-sysvshm
--enable-sockets
--enable-calendar
--enable-trans-sid
--enable-safe-mode
--enable-versioning
--enable-track-vars
--enable-inline-optimization
--with-config-file-path=/etc/php4
--host=i686-pc-linux-gnu
--without-readline
--with-pam
--with-gettext
--with-openssl
--with-gdbm=/usr
--with-db3=/usr
--with-mysql=/usr
--with-ttf
--with-t1lib
--with-pdflib=/usr
--with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib
--with-zlib
--with-zlib-dir=/usr/lib
--with-exec-dir=/usr/bin
--with-apxs=/usr/sbin/apxs
--with-xml
--with-dom
--with-mcrypt
--with-mhash
--disable-posix-threads
--with-xpm-dir=/usr/X11R6
ps
if i use imagestring instead of imagettftext it works..
bye bye and thanx
Bonzo
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21586&edit=1