Michael Howard
2011-02-02 22:59:29 UTC
I am getting a segmentation fault using perl Image::Magick on CentOS 5.5
CentOS 5.5 repositories are out of date, so I installed the following
from source .tar.gz files
ImageMagick-6.6.7-3
ghostscript-9.00
ImageMagick-6.6.7-3/PerlMagick
ImageMagick itself seems to be running OK, and dealing properly with PDF files.
I ran the tests after doing the makes. With PerlMagick there were two
tests that displayed a small X window and halted. When I closed the
respective windows each of these tests registered it as a failure.
Other than that everything worked OK. I ran the PerlMagick/demo make
and it worked just fine, displaying the window with the various
transformed images.
I am a somewhat experienced perl programmer, but this is the first
time I have used PerlMagick. Simple perl scripts using Image::Magick
seem to run OK; I can Read() image files and perform Crop()
transformations.
However, upon exit I am getting a segmentation fault. Doesn't matter
whether I actually allocate an Image::Magick object or not. Simply
'use Image::Magick' will cause the segmentation fault upon exit.
I need to fix this problem because A) it is the right thing to do & B)
the segmentation fault messes up the exit code, which I need to return
to the calling scripts.
I don't have any experience trying to diagnose this type of thing.
Any advice / pointers would be greatly appreciated.
Michael
CentOS 5.5 repositories are out of date, so I installed the following
from source .tar.gz files
ImageMagick-6.6.7-3
ghostscript-9.00
ImageMagick-6.6.7-3/PerlMagick
ImageMagick itself seems to be running OK, and dealing properly with PDF files.
I ran the tests after doing the makes. With PerlMagick there were two
tests that displayed a small X window and halted. When I closed the
respective windows each of these tests registered it as a failure.
Other than that everything worked OK. I ran the PerlMagick/demo make
and it worked just fine, displaying the window with the various
transformed images.
I am a somewhat experienced perl programmer, but this is the first
time I have used PerlMagick. Simple perl scripts using Image::Magick
seem to run OK; I can Read() image files and perform Crop()
transformations.
However, upon exit I am getting a segmentation fault. Doesn't matter
whether I actually allocate an Image::Magick object or not. Simply
'use Image::Magick' will cause the segmentation fault upon exit.
I need to fix this problem because A) it is the right thing to do & B)
the segmentation fault messes up the exit code, which I need to return
to the calling scripts.
I don't have any experience trying to diagnose this type of thing.
Any advice / pointers would be greatly appreciated.
Michael