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

 ID:                 53585
 Comment by:         Serge dot Sitnikov at gmail dot com
 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:

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


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2010-12-21 11:03:06] paj...@php.net

Then it is definitively not a PHP problem. The tests suite work just fine, and 
all PNGs I use for testing as well (from the PNG tests suite and some other). 
Please report the issue to FreeBSD or update it as suggested in the other 
comment.

------------------------------------------------------------------------
[2010-12-21 10:48:03] serge dot sitnikov at gmail dot com

@paj...@php.net

You may test on that image, for example:

http://upload.wikimedia.org/wikipedia/commons/7/7a/Basketball.png

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


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