Bug #13775: Segfault (11) with PHP 4.0.6 / Apache 1.3.22
| From: | brian at spamcop dot net | Date: | Sun, 21 Oct 2001 10:38:13 +0000 |
| Subject: | Bug #13775: Segfault (11) with PHP 4.0.6 / Apache 1.3.22 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-68599@lists.php.net to get a copy of this message | ||
From: brian@spamcop.net
Operating system: Linux - SuSE 7.2
PHP version: 4.0.6
PHP Bug Type: *Graphics related
Bug description: Segfault (11) with PHP 4.0.6 / Apache 1.3.22
With this code (via Rasmus/php-general):
<http://www.php.net/~rasmus/reductor.php>
<html>
<body bgcolor="#000000">
<font color=#ffffff>Original Image:</font><img src="php.png"
align=middle><br clear=left>
<?php
if(!$ch) $ch='$';
$im = ImageCreateFromPNG('./php.png');
$output = " ";
for($y=0;$y<imagesy($im);$y++) {
for($x=0;$x<imagesx($im);$x++) {
$color = ImageColorsForIndex($im,ImageColorAt($im, $x, $y));
echo "<font size=\"1\" color=\"#";
echo
printf("%02x%02x%02x",$color['red'],$color['green'],$color['blue']);
echo "\">$ch</font>";
}
echo "<br>\n";
}
?>
</body></html>
Apache stops responding; Nothing is displayed, not even an error. Apache
must be restarted to bring it back to life.
In the error_log, one sees:
[Sun Oct 21 06:10:03 2001] [notice] child pid 28635 exit signal
Segmentation fault (11)
[Sun Oct 21 06:10:03 2001] [notice] child pid 28634 exit signal
Segmentation fault (11)
Etc...
My php 4.0.6 configure line:
./configure \
--with-config-file-path=/var/www/conf \
--with-gd=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local/ \
--with-tiff-dir=/usr/local \
--with-zlib-dir=/usr \
--with-zlib=/usr \
--with-ttf=/usr/local \
--with-t1lib=/usr/local \
--with-mysql=/usr \
--with-mcrypt=/usr/local \
--with-pdflib=/usr/local \
--with-bz2=/usr/local \
--with-zip=/usr/local \
--with-pspell=/usr/local \
--with-curl=/usr/local \
--with-dom=/usr \
--with-xml \
--enable-magic-quotes \
--enable-ftp \
--with-apache=../apache_1.3.22 > ~root/php_configure.log
My Apache 1.3.22 configure line:
./configure \
--prefix=/var/www \
--mandir=/usr/local/man \
--server-uid=www \
--server-gid=www \
--libexecdir=/var/www/modules \
--enable-module=rewrite \
--enable-module=so \
--enable-shared=speling \
--enable-module=ssl \
--activate-module=src/modules/php4/libphp4.a \
--activate-module=src/modules/perl/libperl.a
I listed this as graphics related, but I really don't know if it really
is.
-Brian
--
Edit bug report at: http://bugs.php.net/?id=13775&edit=1