Core dumps with latest version of IM and Imagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
byron
Posts: 9
Joined: 2010-05-07T05:07:56-07:00
Authentication code: 8675308

Core dumps with latest version of IM and Imagick

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Core dumps with latest version of IM and Imagick

Post by magick »

Before we can comment we need to reproduce the problem. Can you post a small Imagick script that consistently faults?
byron
Posts: 9
Joined: 2010-05-07T05:07:56-07:00
Authentication code: 8675308

Re: Core dumps with latest version of IM and Imagick

Post 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;
?>
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Core dumps with latest version of IM and Imagick

Post 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.
byron
Posts: 9
Joined: 2010-05-07T05:07:56-07:00
Authentication code: 8675308

Re: Core dumps with latest version of IM and Imagick

Post by byron »

OK, thank you! I will relay this to the admin. and let you know.
byron
Posts: 9
Joined: 2010-05-07T05:07:56-07:00
Authentication code: 8675308

Re: Core dumps with latest version of IM and Imagick

Post by byron »

That corrected our problem. Thank you very much!
Post Reply