ImageMagick and threads

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I have a problem with PerlMagick, it crashes every time I run the
script. Perl version 5.8.1, ImageMagick/PerlMagick version 6.1.0-3.

A simple test script:



use threads;
use Image::Magick;

while ($i < 5) {
$t[$i] = threads->new(\&threadtest,$i);

sleep 6;

sub threadtest()
($i) = @_;
my $image = Image::Magick->new;


It segfaults on the line $image->Read("$i.jpg");

Can somebody help me? I have tried PerlMagick/ImageMagick v. 6.0.8 with
the same result. Perl and ImageMagick is compiled with thread support.


// Kasper

Site Timeline