php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24975 Segmentation Fault after ImageCreate on Png
Submitted: 2003-08-07 08:13 UTC Modified: 2003-08-13 04:31 UTC
Votes:10
Avg. Score:4.7 ± 0.6
Reproduced:10 of 10 (100.0%)
Same Version:7 (70.0%)
Same OS:7 (70.0%)
From: c-dilla at gmx dot ch Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.2 OS: SuSe 8.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: c-dilla at gmx dot ch
New email:
PHP Version: OS:

 

 [2003-08-07 08:13 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-07 09:55 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

If the problem still occurs please include a backtrace in your reply.
 [2003-08-08 06:13 UTC] 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-08 07:41 UTC] sniper@php.net
We only support the bundled GD, so configure with --with-gd (without any path).

 [2003-08-08 07:43 UTC] sniper@php.net
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-13 04:31 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC