Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug #16841 Updated: imagepng() segfaults

0 views
Skip to first unread message

jb.q...@caraldi.com

unread,
May 24, 2002, 3:37:29 AM5/24/02
to
ID: 16841
Updated by: jb.q...@caraldi.com
Reported By: dan...@pressure.net.nz
Status: Feedback
Bug Type: GD related
Operating System: Linux
PHP Version: 4.2.0
New Comment:

I'm experiencing the same problem on FreeBSD 4.5 with PHP 4.2.1,
libpdf's internal support for PNG conflicts with PHP linking against
libpng. The two libpng versions differ from libpdf to PHP.

Maybe the people from libpdf could add some configure options to allow
the external libpng to be grabbed, but for now the --with-libpng does
not accept a path as argument, so compilation fails.

In our hosting company, the support for libpdf is suspended until the
bug is fixed.


Previous Comments:
------------------------------------------------------------------------

[2002-05-13 06:35:41] k.all...@au.darkbluesea.com

I am having a similar problem, if you notice in the backtrace, it
references /usr/lib/libpng.so.3 on my system this is soft-linked to
libpng.so.5, and if I remove --with-pdflib from my configure line, it
seems to link against the correct library and not segfault, but
--with-pdflib it reverts to the version 3 library and segfaults when I
try to create from PNG in the GD routines

------------------------------------------------------------------------

[2002-04-28 21:23:44] sni...@php.net

Have you tried compiling pdflib with external pnglib?
(--with-pnglib)

--Jani


------------------------------------------------------------------------

[2002-04-26 21:25:26] dan...@pressure.net.nz

Uh, 'configure', 'make', 'make install'. Always worked in the past.

------------------------------------------------------------------------

[2002-04-26 21:23:10] mfis...@php.net

And your pdflib configure line?

------------------------------------------------------------------------

[2002-04-26 21:18:30] dan...@pressure.net.nz

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.

------------------------------------------------------------------------

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

0 new messages