Bug 208370 - graphics/p5-GD does not read PNG files under mod_perl on 10.2, 10.3RC3
Summary: graphics/p5-GD does not read PNG files under mod_perl on 10.2, 10.3RC3
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Walter Schwarzenfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-28 22:02 UTC by papowell
Modified: 2019-08-14 07:57 UTC (History)
3 users (show)

See Also:


Attachments
Sample CGI script, test103.png, and additional outputs from tests (4.40 KB, text/plain)
2016-03-28 22:02 UTC, papowell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description papowell 2016-03-28 22:02:30 UTC
Created attachment 168739 [details]
Sample CGI script, test103.png, and additional outputs from tests

p5-GD does not read PNG files when running under mod_perl on 10.2 or 10.3RC3, but does correctly reads them on 9.3.  A simple CGI test file reads test103.png.  This fails and the Apache error log contains an error message.

http://localhost/test103.cgi
In the Apache Error log:
  GD Error: gd-png: fatal libpng error: bad parameters to zlib
  GD Warning: gd-png error: setjmp returns error condition 2

Attached is a SHAR file with the test103.png and test103.cgi.  Install these on the Apache server.  Run the CGI script (example above).  The image PNG will be displayed but the CGI script will fail to read it.  If you execute the CGI script using the command line,  it succeeds:

cd ...   # cd to directory containing test103.png, test103.cgi
perl test103.cgi

  ... <h1>images/test103.png</h1><img src="images/test103.png">
      <br> Read Image
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-13 23:51:05 UTC
Maintainer feedback?
Comment 2 Kurt Jaeger freebsd_committer 2018-01-14 07:15:15 UTC
Someone(tm) should test if the described problem can be reproduced.

As perl@ is a group, and asking a group to do something does not really work in general (only in some cornercases), that's why nobody tested it until now.
Comment 3 Walter Schwarzenfeld freebsd_triage 2019-08-14 07:57:54 UTC
10.2 and 10.3 are gone. We have p5-GD version 2.71. This is overcome by events.

If there are problems with the newer version, please, reopen.