ID:               26344
 Updated by:       [EMAIL PROTECTED]
 Reported By:      james at vcv dot net
 Status:           Feedback
-Bug Type:         GD related
+Bug Type:         Reproducible crash
 Operating System: redhat 9
 PHP Version:      4.3.4
 New Comment:

What MPM module are you using ? worker, prefork, other ?


Previous Comments:
------------------------------------------------------------------------

[2003-11-21 21:27:56] [EMAIL PROTECTED]

1. Use the bundled GD library (just plain --with-gd)
2. Try ./configure --help to see what configure options exist and what
they actually do..

For example, you don't need --enable-sigchild (known to cause
problems)

And only use either Freetype 1 OR 2. Not both.
(remove --with-ttf)


------------------------------------------------------------------------

[2003-11-21 13:48:25] james at vcv dot net

Thank you for your help.

I have tried to generate backtrace using various methods:
HTTPD -X, (gdb) run -X, and php_cli but failed to get any result except
what I provided in the first report 'Couldn't get registers: Operation
not permitted.'

I upgraded gdb to latest version 6. It did not help. Somewhere I read
that I need to upgrade the kernel for it to work. My current kernel is
2.4.20-8

Apache model:
httpd-2.0.48

./configure --prefix=/usr/local/apache_ssl \
--enable-modules="vhost_alias" \
--enable-ssl \
--with-ssl=/usr/local/openssl \
--enable-so

------------------------------------------------------------------------

[2003-11-21 11:57:54] [EMAIL PROTECTED]

Please generate a backtrace of the crash. Also, which model is your
apache using?

------------------------------------------------------------------------

[2003-11-21 04:06:35] james at vcv dot net

Description:
------------
./configure \
--with-apxs2=/usr/local/apache_ssl/bin/apxs \
--with-config-file-path=/usr/local/lib \
--enable-track-vars=yes \
--with-pdflib=/usr/local/ \
--with-zlib-dir=/usr/lib/ \
--with-gd=../gd-2.0.15 \
--enable-gd-imgstrttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--enable-gd-native-ttf \
--with-ming=/usr/local/src/ming-0.2a/php_ext \
--with-freetype-dir=/usr/local/include/freetype2/freetype/ \
--with-ttf=/usr/local/lib \
--enable-memory-limit \
--enable-debug \
--enable-sigchild

no change is made to the php.ini-dist 
phpinfo is at:
http://www.martysmom.com/phpinfo.php

tried gdb:

(gdb) run -X
Starting program: /usr/local/apache_ssl/bin/httpd -X
[New Thread 1075477920 (LWP 6941)]
Couldn't get registers: Operation not permitted.
(gdb) bt
Cannot fetch general-purpose registers for thread 1075477920: generic
error
(gdb)


Reproduce code:
---------------
<?
$fontfile  = '/usr/local/fonts/truetype/VERDANAZ.TTF';
$image     = imagecreate(700, 300);
$backcolor = imagecolorallocate ($image, 128, 128, 85);
$forecolor = imagecolorallocate ($image, 155, 255, 255);
ImageFtText($image, 25, 15, 5, 125, $forecolor, $fontfile, "Hello
World!", array("linespacing" => 0.5));
Header("Content-type: image/png");
ImagePNG($image);
ImageDestroy($image);
?>

Expected result:
----------------
"Hello World!" on a png graphic 700x300

Actual result:
--------------
sometimes I get the expected result and sometimes I get
"child pid xxxx exit signal Segmentation fault (11)"
from versions 4.3.2, 4.3.3, 4.3.4, php-5.0.0b2.

I always get the expected result from versions 4.3.1, 4.3.0



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26344&edit=1

Reply via email to