ID: 24975
Updated by: [email]sniperphp.net[/email]
Reported By: c-dilla at gmx dot ch
-Status: Feedback
+Status: No Feedback
Bug Type: GD related
Operating System: SuSe 8.2
PHP Version: 4.3.2
New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




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

[2003-08-08 07:43:10] [email]sniperphp.net[/email]

note about using external GD: You need to have it compiled/linked with
the exact same headers/libraries as you try to compile/link PHP with.


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

[2003-08-08 07:41:53] [email]sniperphp.net[/email]

We only support the bundled GD, so configure with --with-gd (without
any path).


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

[2003-08-08 06:13:07] c-dilla at gmx dot ch

latest CVS tested....same result
error_log of apache
------------------
[Fri Aug 8 15:11:41 2003] [notice] child pid 27517 exit signal
Segmentation fault (11)
[Fri Aug 8 15:11:41 2003] [notice] child pid 27516 exit signal
Segmentation fault (11)
[Fri Aug 8 15:11:41 2003] [notice] child pid 27514 exit signal
Segmentation fault (11)
[Fri Aug 8 15:11:41 2003] [notice] child pid 27513 exit signal
Segmentation fault (11)
[Fri Aug 8 15:11:41 2003] [notice] child pid 27488 exit signal
Segmentation fault (11)

configuration line
------------------
../configure --with-apache=../apache_1.3.28 \
--with-mysql=/usr \
--with-zlib \
--enable-debug=yes \
--enable-safe-mode=no \
--enable-discard-path=no \
--with-ttf \
--with-gd=/usr \
--enable-gd-imgstrttf \
--enable-gd-native-ttf \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
--enable-ftp \
--enable-bcmath \
--enable-memory-limit \
--enable-trans-sid \
--with-xpm-dir=/usr/X11R6 \
--enable-magic-quotes \
--with-tiff-dir=/usr \
--with-jpeg-dir=/usr \
--with-freetype-dir=/usr/local \
--with-t1lib=/usr/local \
--with-zlib-dir=/usr \
--with-mcrypt \
--with-imagick=/usr/lib/ImageMagick/ \
--enable-sigchild \
--with-pear=/usr/local/bin/ \
--enable-memory-limit \
--enable-exif \
--enable-wddx \
--enable-inline-optimization \
--enable-track-vars \
--with-curl=/usr \
--with-pdflib=/usr \
--with-imap-ssl=/usr/include/openssl \
--with-imap=/usr/local/ext-imap \
--enable-memory-limit \
--enable-dbase \
--enable-safe-mode \
--with-iconv \
--with-gettext \
--enable-calendar \
--enable-sysvsem \
--enable-sysvshm \
--enable-shmop


backtrace
---------
backtrace don't want to work, maybe i do something wrong ?! :)
gdb /www/bin/httpd
(gdb) run -X
Starting program: /www/bin/httpd -X
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...Couldn't get registers: Operation not
permitted.

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

[2003-08-07 09:55:11] [email]iliaaphp.net[/email]

Please try using this CVS snapshot:

[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

For Windows:

[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]

If the problem still occurs please include a backtrace in your reply.

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

[2003-08-07 08:13:51] c-dilla at gmx dot ch

Description:
------------
hey,
i want to do
ImageString ($im, 10, 5, 5, "..........", $text_color);
ImagePng ($im)
i get a Segmentation fault in Apache error log
Apache version 1.3.28
gdlib 2.0.15
libpng 1.2.5
php 4.3.2 Stable

everything self compiled. i tried to compile a bunch of other versions
on gd like 2.0.10, but got no better result


Reproduce code:
---------------
<?
header ("Content-type: image/png");
$im = ImageCreate (650, 100)
or die ("Auf diesem Server funktioniert die Erstellung von PNG
Grafiken nicht");
$background_color = ImageColorAllocate ($im, 255, 25, 255);
$text_color = ImageColorAllocate ($im, 233, 255, 91);
ImageString ($im, 10, 5, 5, "Auf diesem Server funktioniert die
Erstellung von PNG Grafiken", $text_color);
ImagePng ($im);
?>

Expected result:
----------------
nothing happens. Segmentation faul of a Child process in Apache
error_log



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


--
Edit this bug report at [url]http://bugs.php.net/?id=24975&edit=1[/url]