Segfault on end program?
Posted: 2010-05-28T06:37:22-07:00
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!
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!