[Bug 194333] New: mod_perl, GD, libpng combination core dumps when doing $img->png
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Oct 13 15:02:49 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194333
Bug ID: 194333
Summary: mod_perl, GD, libpng combination core dumps when doing
$img->png
Product: Ports Tree
Version: Latest
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: papowell at astart.com
CC: dinoex at FreeBSD.org
CC: dinoex at FreeBSD.org
Created attachment 148258
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148258&action=edit
SHAR of graphics/png16, graphics/png16, mods to graphics/gd/Makefile
Using: apache24, libpng (libpng15), gd, p5-GD from repository, also when
compiled from ports.
When generating graphics using a Perl script from apache, apache core dumps
when the perl CGI script runs $img->png, but only for a small set of graphics.
Similar problem reported in 2004 for various Linux distributions. The problem
appears to be in the libpng $img->png support. Note: this only occurs when
using mod_perl, same scripts run stand alone do not core dump.
Solution: installed libpng16, compiled gd using libpng16, p5-GD using gd with
libpng16. This passed my admittedly feeble regression tests.
In doing this, I generated a modified version of graphics/png which installs
libpng16. However, graphics/png also installs files with the same names in the
same locations, i.e. /usr/local/include and /usr/local/lib. The graphics/png
script currently creates version specific directories, /usr/local/lib/libpng15
and installs the libpng15 libraries in this location as well.
I have modified the graphics/png and created two new ports - graphics/png15 and
graphics/png16. These have a 'configure' option - COMPAT that when selected
will not install files in conflicting locations. By default, the
graphics/png15 has COMPAT disabled and installs the files while graphics/png16
has the COMPAT enabled and will not install the files in conflicating
locations.
The graphics/gd port Makefile has been modified and a LIBPNG16 configuration
option added. When this is selected then the libpng16 version of the libraries
installed by graphics/libpng16 are forced to be used, otherwise the default
libraries installed by graphics/png or graphics/png15 can be used.
Attached is a SHAR file that has the graphics/png15 and graphics/png16 ports.
These can be added to the ports without causing any conflicts with graphics/png
until they are used, and only if you disable the COMPAT option.
Also, there is a patch for graphics/gd which will select the libpng16 libraries
if the LIBPNG16 configuration option is used.
Is it possible to add these changes to the ports distribution?
--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Maintainers CC'd
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list