Segfault on end program?

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
wpns

Segfault on end program?

Post by wpns »

I'm running Centos 5.5, Kernel 2.6.18, Perl v5.8.8, IM 6.6.2-0
I built IM and PerlMagick from sources.

I'm getting some wierd and inconsistent results, and when I do simple stuff like the code below I get segfaults.

Note that the segfault happens after the last printf, so it's when the program is closing?

[root@camsrv01 Movies]# cat pv.pl
#!/usr/bin/perl -w
use Image::Magick;
$image=Image::Magick->new;
print $image->Get('version');
undef $image;
printf "\n";
[root@camsrv01 Movies]# perl pv.pl
ImageMagick 6.6.2-0 2010-05-27 Q16 http://www.imagemagick.org
Segmentation fault
[root@camsrv01 Movies]#

Any idea what I'm doing wrong?

Thanks!
wpns

Re: Segfault on end program?

Post by wpns »

Would you believe a hardware error? Memtest86 ran over 24 hours, but network file copies fell over, and Perl::Magick was failing in all kinds of bizarre ways (not comparing, not reading or writing files properly, failing to annotate, etc).

Of course, with hardware errors anything's possible, but this was a weird one.

Fortunately I had an identical chassis I could swap in, and the problem followed the chassis. Go figure...
Post Reply