Bug #16841 Updated: imagepng() segfaults
| From: | daniel at pressure dot net dot nz | Date: | Sat, 27 Apr 2002 01:18:30 +0000 |
| Subject: | Bug #16841 Updated: imagepng() segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6191@lists.php.net to get a copy of this message | ||
ID: 16841
Updated by: daniel@pressure.net.nz
Reported By: daniel@pressure.net.nz
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: Linux
PHP Version: 4.2.0
New Comment:
The simplest configuration I can get it to crash with is:
configure --with-zlib --with-gd --with-png-dir=/usr
--with-jpeg-dir=/usr --pdflib
I'm just building the CGI version because it is easier than doing a
'make install' and restarting the Apache etc, but this bug does affect
the Apache DSO build as well.
The weird thing is that this works fine with PHP 4.1.2, AND the libpng
1.2.1. It seems to look more and more like this bug is pdflib related.
Previous Comments:
------------------------------------------------------------------------
[2002-04-26 09:20:11] mfischer@php.net
I couldn't reproduce this either with pdflib from pdflib.com.
Can you paste the full configure line of PHP and of pdflib ?
------------------------------------------------------------------------
[2002-04-26 08:34:05] daniel@pressure.net.nz
I got it to work ok by removing the --with-pdflib from my configure.
There's something over at http://www.pdflib.com/pdflib/patches.html
which sounds almost relevant (although it affects TIFF routines). I'm
running pdflib 4.0.2
------------------------------------------------------------------------
[2002-04-26 02:23:04] derick@php.net
Not closing yet...
------------------------------------------------------------------------
[2002-04-26 02:21:36] derick@php.net
I think this is the same libgd / libpng 1.2 incompability as we saw
before.
If you downgrade to libpng 1.0.9 it should work fine. Can you try
this?
Derick
------------------------------------------------------------------------
[2002-04-26 01:00:32] rasmus@php.net
Tested here as well and not able to reproduce. I got a proper PNG.
(PHP HEAD and GD-2.0.1)
This smells like a local libpng problem to me. The segfault is deep
inside libpng.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16841
--
Edit this bug report at http://bugs.php.net/?id=16841&edit=1