php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27856 Apache chlid Segmentation fault with Image*PNG functions
Submitted: 2004-04-03 21:44 UTC Modified: 2004-04-04 06:46 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: miracle at pisem dot net Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.5 OS: Linux (Slackware)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: miracle at pisem dot net
New email:
PHP Version: OS:

 

 [2004-04-03 21:44 UTC] miracle at pisem dot net
Description:
------------
upgrade from php4.3.4 to php4.3.5
upgrade Zlib to 1.2.1
upgrade GD library from 2.0.15 to 2.0.22
no error when make and make install
 php ./configure' '--with-apxs=/mnt/webroot/bin/apxs' '--with-gnu-ld' '--with-pear' '--enable-sysvshm' '--enable-sysvsem' '--enable-sockets' '--enable-shmop' '--with-gd=/usr/local' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-mysql=/usr/local' '--with-zlib' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-iconv' '--with-mhash' '--with-mcrypt' '--with-mssql' '--with-ming' '--enable-memory-limit' '--enable-xslt' '--with-xslt-sablot' '--with-expat' '--enable-pcntl'

Linux Slackware 8.1 (kernel 2.4.24)
Apache version 1.3.29
GD Version instaled 2.0.22
Zlib version 1.2.1

Reproduce code:
---------------
php code
<?
$bgname = $_SERVER['DOCUMENT_ROOT']."/pict/bg_count_".$color.".jpg";
  $png = imagecreatefromjpng ($bgname);
   imagepng($png);
?>


Expected result:
----------------
#tail error_log
[Sun Apr  4 00:00:48 2004] [notice] child pid 30726 exit signal Segmentation fault (11)
[Sun Apr  4 00:01:09 2004] [notice] child pid 30727 exit signal Segmentation fault (11)
[Sun Apr  4 00:02:16 2004] [notice] child pid 30728 exit signal Segmentation fault (11)
[Sun Apr  4 00:03:26 2004] [notice] child pid 30731 exit signal Segmentation fault (11)
[Sun Apr  4 00:03:39 2004] [notice] child pid 30732 exit signal Segmentation fault (11)
[Sun Apr  4 03:05:45 2004] [notice] child pid 12382 exit signal Illegal instruction (4)
[Sun Apr  4 03:06:26 2004] [notice] child pid 12395 exit signal Illegal instruction (4)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-04 06:46 UTC] derick@php.net
Use our bundled library, or make sure your GD library is linked to the same libpng as PHP is. Not a bug -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 12:01:29 2024 UTC