php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64540 Segmentation fault in Imagick
Submitted: 2013-03-28 14:04 UTC Modified: 2013-10-15 11:54 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: t at kahkonen dot com Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: Irrelevant OS: Centos 6.4 64-bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: t at kahkonen dot com
New email:
PHP Version: OS:

 

 [2013-03-28 14:04 UTC] t at kahkonen dot com
Description:
------------
Echoes "Segmentation fault" when trying to get colorspace information of 
grayscale jpg image. The image is as attachment (patch).

php -version:
PHP 5.3.3 (cli) (built: Feb 22 2013 02:51:11) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

pecl list:
Installed packages, channel pecl.php.net:
=========================================
Package    Version State
geoip      1.0.8   stable
imagick    3.0.1   stable
intl       2.0.1   stable
mailparse  2.1.5   stable
stats      1.0.3   stable
timezonedb 2013.1  stable
translit   0.6.1   beta


Test script:
---------------
<?php
$file="pu_varitys_487_icc_standard_no_profile_gray.jpg";
$image = new Imagick();
try
{
  $image->pingImage($file);
  $image_info = $image->identifyImage();
  echo $image_info["colorSpace"]."\n";
}
catch(ImagickException $e)
{
    echo "error!";
}
?>


Expected result:
----------------
Should echo "Gray".

Actual result:
--------------
/var/log/messages:
kernel: php[19276]: segfault at 177d004 ip 00007fec01c8b4d0 sp 00007fffdae9ef40 
error 4 in libMagickCore.so.2.0.0[7fec01b72000+1ce000]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-25 07:38 UTC] mkoppanen@php.net
This looks like a bug in ImageMagick. The attachment didn't come through
 [2013-09-25 07:50 UTC] mkoppanen@php.net
-Status: Open +Status: Feedback
 [2013-10-15 11:54 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 11:01:23 2021 UTC