Bug #53585 [Com]: PNG support broken, Abort trap: 6 (core dumped)

From: Date: Thu, 17 Nov 2011 00:17:04 +0000
Subject: Bug #53585 [Com]: PNG support broken, Abort trap: 6 (core dumped)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165274@lists.php.net to get a copy of this message
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:             Bogus
 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 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


Previous Comments:
------------------------------------------------------------------------
[2010-12-21 11:03:06] pajoye@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

@pajoye@php.net

You may test on that image, for example:

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

------------------------------------------------------------------------
[2010-12-21 10:40:54] serge dot sitnikov at gmail dot com

@pajoye@php.net

Image does not matter. Any PNG image I have tested lead to the same result -- 
core dumped. Already tested that on two machines.

------------------------------------------------------------------------
[2010-12-21 10:25:30] pajoye@php.net

@serge dot sitnikov at gmail dot com

Please provide the PNG image you use as test.

------------------------------------------------------------------------
[2010-12-21 10:24:38] pajoye@php.net

Not a php problem then :)

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


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


Thread (14 messages)

« previous php.bugs (#165274) next »