php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59465 assertion fail when resizing particular gif
Submitted: 2010-10-15 06:25 UTC Modified: 2011-07-01 02:57 UTC
From: fiedzia at gmail dot com Assigned: vitoc (profile)
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.2 OS: Ubuntu 9.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fiedzia at gmail dot com
New email:
PHP Version: OS:

 

 [2010-10-15 06:25 UTC] fiedzia at gmail dot com
Description:
------------
attempt to resize and display cetain gif image 
(this one:
http://www.similaria.pl/file/4cb/7fa/166/535/79a/f47/010/100
/
misiu1.gif )

displays:

php: magick/blob.c:981: DestroyBlob: Assertion `image->blob-
>signature == 0xabacadabUL' failed.

apache log shows:
pache2: magick/blob.c:981: DestroyBlob: Assertion `image-
>blob->signature == 0xabacadabUL' failed.
[Mon Oct 11 21:30:04 2010] [notice] child pid 9419 exit 
signal Aborted (6)



# pecl list
INSTALLED PACKAGES, CHANNEL PECL.PHP.NET:
=========================================
PACKAGE    VERSION STATE
gmagick    1.0.8b1 beta


# dpkg -l | grep magick
ii  graphicsmagick                       1.3.5-6                                    
collection of image processing tools
ii  graphicsmagick-libmagick-dev-compat  1.3.5-6                                    
image processing libraries providing ImageMa
ii  libgraphics-magick-perl              1.3.5-6                                    
format-independent image processing - perl i
ii  libgraphicsmagick++1-dev             1.3.5-6                                    
format-independent image processing - C++ de
ii  libgraphicsmagick++3                 1.3.5-6                                    
format-independent image processing - C++ sh
ii  libgraphicsmagick1-dev               1.3.5-6                                    
format-independent image processing - C deve
ii  libgraphicsmagick3                   1.3.5-6                                    
format-independent image processing - C shar


Reproduce code:
---------------
<?php

#$img = new Gmagick('misiu1.gif');
$img = new Gmagick('http://www.similaria.pl/file/4cb/7fa/166/535/79a/f47/010/100/misiu1.gif');
$oldW = $img-> getImageWidth();
$oldH = $img-> getImageHeight();
$finalW = 100;
$finalH = ceil(100 * $oldH / $oldW);
                if ($finalH > 100) {
                        $finalH = 100;
                        $finalW = ceil(100 * $oldW / $oldH);
                }

                        $img->resizeImage($finalW, $finalH, null, 1);
echo ($img);



?>


Expected result:
----------------
nothing

Actual result:
--------------
php: magick/blob.c:981: DestroyBlob: Assertion `image->blob-
>signature == 0xabacadabUL' failed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-08 12:30 UTC] paulgao at yeah dot net
i has same problem.

Centos 5.x 64-bit + GM 1.3.12 + PHP 5.3.3.
 [2010-11-08 12:33 UTC] paulgao at yeah dot net
TWO ASSEST FAILED:

magick/semaphore.c:526: LockSemaphoreInfo: Assertion `semaphore_info->signature == 0xabacadabUL' failed.

magick/blob.c:4120: GmTellBlob: Assertion `image->blob->type != UndefinedStream' failed.
 [2011-07-01 02:57 UTC] vito@php.net
Bug logged to GraphicsMagick:

https://sourceforge.net/tracker/?
func=detail&aid=3348868&group_id=73485&atid=537937
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 15:01:27 2024 UTC