Page 1 of 1

Why Is PerlMagick Causing a Segmentation Fault

Posted: 2007-07-09T12:46:10-07:00
by burgerguy
I'm running ImageMagick 6.2.6 Q16, PerlMagick 6.2.6 on Perl 5.8.8. Scripts that ran on my old server are causing a segmentation fault and core dump by the second PM-specific line.

Here's some code...

Code: Select all

#!/usr/local/bin/perl -W
print "fault point 0 \n";
  use Image::Magick;
print "fault point 0.5 \n";
  my $im = Image::Magick->new(size => '299x450', background => 'white');
print "fault point 1.0 \n";
  my $rc = $im->Read('xc:white');
print "fault point 1.1 \n";
Here's the output...

Code: Select all

fault point 0 
fault point 0.5 
fault point 1.0 
Segmentation fault (core dumped)
The same code ran fine on my older server. Any idea what is causing this and how I can solve it?