Edit report at https://bugs.php.net/bug.php?id=53585&edit=1

 ID:                 53585
 Comment by:         andy at fud dot org dot nz
 Reported by:        serge dot sitnikov at gmail dot com
 Summary:            PNG support broken, Abort trap: 6 (core dumped)
 Status:             Not a bug
 Type:               Bug
 Package:            GD related
 Operating System:   FreeBSD 8.1-RELEASE
 PHP Version:        5.3.4
 Block user comment: N
 Private report:     N

 New Comment:

Updating to print/pdflib to 7.0.5_1 will resolve this issue.


Previous Comments:
------------------------------------------------------------------------
[2012-05-22 08:38:50] andy at fud dot org dot nz

Putting the following patch in /usr/ports/print/pdflib/files/patch-pngusr.h and 
recompiling pdflib fixes the issue. There was a namespace conflict between the 
static png lib inside libpdf and libpdf.so.

https://gg.net.nz/X/patch-pngusr.h

I will get this committed to the pdflib port.

------------------------------------------------------------------------
[2012-03-02 05:26:41] Serge dot Sitnikov at gmail dot com

I found that recompiling all pecl extensions solve the problem, so this is some 
kind of dependency problem.

------------------------------------------------------------------------
[2012-03-02 01:40:13] dave at jetcafe dot org

Confirmed and duplicated on FreeBSD 7.3-RELEASE. Moving a crashing extension to 
the top just moves the bug down. I am unable to find any determinism (which 
doesn't mean none exists) in this. 

I appreciate that both the FreeBSD camps and PHP camps are pointing at each 
other. It would be greatly appreciated by those of us having a problem if 
someone from both camps could take a cooperative look. Thank you. :)

------------------------------------------------------------------------
[2012-02-13 13:55:02] erik at erik dot eu

By changing the order in extensions.ini the problem doesn't go away.
It's moved to the latter module.

with sequence;
--- snip of extensions.ini ---
extension=pdf.so
extension=gd.so
---
pdf_load_image($pdfObject,"png", 'someimage.png'); will work
But png functions from GD won't!

with sequence;
--- snip of extensions.ini ---
extension=gd.so
extension=pdf.so
---
GD works but pdf_load_image will segfault.

doing portupgrade will alter the sequence in extensions.ini so GD works and it 
looks like problems are solved. But loading png in pdf will fail.

Enviroment;
Freebsd 8.2-RELEASE php5.3.10
just did portmaster -r png (13-feb-2012)

------------------------------------------------------------------------
[2011-11-17 00:17:04] andy at fud dot org dot nz

I can reproduce this on  FreeBSD 8.2-RELEASE (amd64)

the test script is
<?php
$im = imagecreatefrompng("test.png");
echo 'ok';
?>

test.png can be found at https://gg.net.nz/X/test.png


If I have the pdf extension loaded before gd (in extensions.ini) then I get an 
abort
--- snip of extensions.ini ---
extension=pdf.so
extension=gd.so
---
% php test.php
zsh: abort (core dumped)  php t.php


If I load gd first then the issue goes away
--- snip of extensions.ini ---
extension=gd.so
extension=pdf.so
---
% php test.php
ok          


The software versions are:
php5-5.3.8
php5-gd-5.3.8
pdflib-7.0.4
pecl-pdflib-2.1.8
png-1.4.8

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


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

    https://bugs.php.net/bug.php?id=53585


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=53585&edit=1

Reply via email to