From: miracle at pisem dot net Operating system: Linux (Slackware) PHP version: 4.3.5 PHP Bug Type: GD related Bug description: Apache chlid Segmentation fault with Image*PNG functions
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) -- Edit bug report at http://bugs.php.net/?id=27856&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27856&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27856&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27856&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27856&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27856&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27856&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27856&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27856&r=support Expected behavior: http://bugs.php.net/fix.php?id=27856&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27856&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27856&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27856&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27856&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27856&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27856&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27856&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27856&r=float
