Page 1 of 1

Core dumps with latest version of IM and Imagick

Posted: 2010-05-07T05:29:21-07:00
by byron
Hello. I'm with a free web host who has just upgraded ImageMagick to the latest version (6.6.1) and with Imagick 3.0.0 RC and now we are getting core files with the use of some Imagick functions. Before the upgrade all Imagick functions were working fine and I believe it was version 2.2.2 of Imagick. The adinstrator has tried these other versions of Imagick with the same results (2.2.2 and 2.3.0). We are currently at 2.2.2. I'd like to mention also that the Imagick functions seem to be working fine other than causing a core dump. Our OS is Linux. Any ideas on what could be causing the core dumps or what to check?

Thank you,
Byron

Re: Core dumps with latest version of IM and Imagick

Posted: 2010-05-07T05:45:27-07:00
by magick
Before we can comment we need to reproduce the problem. Can you post a small Imagick script that consistently faults?

Re: Core dumps with latest version of IM and Imagick

Posted: 2010-05-07T06:29:35-07:00
by byron
This simple script will cause a core file everytime. It seems most functions I've tried do but not all.

Code: Select all

<?php
header("Content-type: image/jpeg");
$image = new Imagick("../images/Back.jpg");
$image->charcoalImage(1, 2);
echo $image;
?>

Re: Core dumps with latest version of IM and Imagick

Posted: 2010-05-07T06:51:57-07:00
by magick
Add --disable-openmp to your configure command line and rebuild and reinstall ImageMagick. Does the Imagick script work now? If not, type
  • gdb php
    run imagick.php
and post the stack trace here. We did try your script under CentOS 5.4 and Fedora 13 with ImageMagick 6.6.1 and Imagick 2.2.2 and the script completed without complaint.

Re: Core dumps with latest version of IM and Imagick

Posted: 2010-05-07T07:15:58-07:00
by byron
OK, thank you! I will relay this to the admin. and let you know.

Re: Core dumps with latest version of IM and Imagick

Posted: 2010-05-07T13:21:21-07:00
by byron
That corrected our problem. Thank you very much!