Bug #17653: "Contains no Data when I use GD Functions"
| From: | huberfelix at web dot de | Date: | Sat, 08 Jun 2002 11:12:55 +0000 |
| Subject: | Bug #17653: "Contains no Data when I use GD Functions" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-9836@lists.php.net to get a copy of this message | ||
From: huberfelix@web.de
Operating system: Linux
PHP version: 4.0CVS-2002-06-08
PHP Bug Type: GD related
Bug description: "Contains no Data when I use GD Functions"
Hi,
I used 4.1.2 and everythings works fine - with Freetype 2.1 and GD 2.0.1
(Beta).
But now i tried 4.2.1 (and cvs 08.06.02) with the same config, and php
segfaults. Other php pages (phpinfo() etc) are working fine with 4.2.1 -
but no gd functions.
)
[Sat Jun 8 13:00:06 2002] [notice] child pid 29410 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:14 2002] [notice] child pid 9319 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:14 2002] [notice] child pid 16736 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:14 2002] [notice] child pid 30265 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:15 2002] [notice] child pid 6633 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:15 2002] [notice] child pid 11331 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:15 2002] [notice] child pid 4859 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:16 2002] [notice] child pid 2575 exit signal
Segmentation fault (11)
[Sat Jun 8 13:00:16 2002] [notice] child pid 2112
I can't understand this error, and compiled 4.1.2 again - and 4.1.2 still
works fine.
./configure \
--with-apxs=/usr/local/apache/current/bin/apxs \
--with-xpm-dir=/usr/X11R6/lib \
--with-tiff-dir=/usr/lib \
--with-gif \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib \
--with-freetype-dir=/usr/local/include/freetype2 \
--with-bz2 \
--with-gdbm=/usr/local/lib \
--with-mysql=/usr/local/mysql/current \
--with-mcrypt \
--with-mhash \
--with-pear \
--with-openssl \
--with-cpdflib \
--with-pdflib \
--with-curl \
--with-expat \
--with-mm \
--with-xslt-sablot \
--with-gettext \
--with-db \
--with-db3 \
--with-dom \
--with-gd=/tmp/gd-2.0.1 \
--enable-gd-native-ttf \
--enable-gd-imgstrttf \
--enable-ftp \
--enable-versioning \
--enable-track-vars=yes \
--enable-url-includes \
--enable-sysvshm=yes \
--enable-sysvsem=yes \
--enable-ctype \
--enable-wddx \
--enable-xslt \
--with-config-file-path=/etc \
--with-imap=/tmp/imap-2001a \
--with-imap-ssl \
--with-zip
I use following script to test the config:
<?
header ("Content-type: image/png");
$im = imagecreate (500, 100);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagettftext ($im, 20, 0, 10, 20, $white,
"/usr/local/fonts/ttf/verdana.ttf", "UFOs are real!");
imagepng ($im);
imagedestroy ($im);
?>
Any hints?
Thanks for your help
Felix
--
Edit bug report at http://bugs.php.net/?id=17653&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17653&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17653&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17653&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17653&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17653&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17653&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17653&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17653&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17653&r=globals