php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28173 GD bundle gives Apache Segment Fault
Submitted: 2004-04-27 02:11 UTC Modified: 2004-04-27 21:50 UTC
From: herps at raqtweak dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.6 OS: Redhat 6.x
Private report: No CVE-ID: None
 [2004-04-27 02:11 UTC] herps at raqtweak dot com
Description:
------------
I am using PHP 4.3.6 with --with-gd
It is your BUNDLES GD 2.0.22.
Everything shows fine on a phpinfo.

But when I run the following script (listed below) to test my GD, I get a "[Tue Apr 27 01:28:19 2004] [notice] child pid 9034 exit signal Segmentation fault (11)" in /var/log/httpd/error
===============[Script]===============
<?php 
header ("Contenttype: image/png"); 
$im = @ImageCreate (50, 100) 
or die ("Cannot create a new GD image."); 
$background_color = ImageColorAllocate ($im, 255, 255, 255); 
$text_color = ImageColorAllocate ($im, 233, 14, 91); 
ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color); 
ImagePng ($im); 
?>
===============[Script]===============

I read about a system GD, but I am using the bundled GD...
Any clue what so ever?
I compiled with --with-png=/usr/lib and without, no difference...


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-27 08:27 UTC] derick@php.net
Works fine for me, to which png library are you linking, and what is your configure line?
 [2004-04-27 08:42 UTC] herps at raqtweak dot com
I am linking to PNG:

[root SPECS]# rpm -qa | grep png
libpng-1.2.5-1
libpng-devel-1.2.5-1

./configure --with-gd --enable-gd-imgstrttf --enable-gd-native-ttf --enable-gd-jis-conv --with-imagick --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-ttf --with-ttf=/usr/lib/libttf.so
 [2004-04-27 21:41 UTC] herps at raqtweak dot com
Hmm ok:

I had libpng 1.2.5, didn't work. see issue described.
I downgrade to 1.0.5, works!
 [2004-04-27 21:50 UTC] derick@php.net
Ok, known issue with older redhats. Also, this is most likely because of symbol conflicts somewhere else. Not a PHP bug really.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 19:01:28 2024 UTC