SegFault in "Features" method

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
delilama
Posts: 2
Joined: 2011-10-09T11:48:43-07:00
Authentication code: 8675308

SegFault in "Features" method

Post by delilama »

I'd like to try out the "Features" method in PerlMagick. But I get a segfault when I call it. I've built the latest ImageMagick package from source and installed it (this is on an x86_64 Ubuntu 10.04). Here's a snippet of code:

Code: Select all

$image->BlobToImage($buffer); 
my($width, $height, $format) = $image->Get('width', 'height', 'format'); # works
 print "$f\t$width" . "x" . "$height\t$format image.\n"; # works 
my @features = $image->Features(1); # <--- silent segfault here
If I change the call to the following:

Code: Select all

my $features = $image->Features(1);
I get an error: panic: pp_iter at that line. I'm guessing because Features() is supposed to return an array, so this may not be related.

Any ideas?
Post Reply