Page 1 of 1

perlmagick segfaults when drawing text on individual images

Posted: 2008-03-18T19:26:06-07:00
by naoliv
Hi!

From this bug report on Debian http://bugs.debian.org/351604:
The following script makes perl segfault:

Code: Select all

  use Image::Magick;
  my $img = Image::Magick->new;
  $img->Read('foo.jpeg');   # foo.jpeg exists
  $img = $img->[0];
  $img->QueryMultilineFontMetrics(text=>"foo bar");
I can reproduce it with Perl 5.8.8 and ImageMagick 6.3.7-9

gdb output is:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xa7dc68c0 (LWP 20551)]
0xa7c3eb8f in XS_Image__Magick_QueryMultilineFontMetrics () from /usr/lib/perl5/auto/Image/Magick/Magick.so
(gdb) bt
#0  0xa7c3eb8f in XS_Image__Magick_QueryMultilineFontMetrics () from /usr/lib/perl5/auto/Image/Magick/Magick.so
#1  0x080c0923 in Perl_pp_entersub ()
#2  0x080bf2fb in Perl_runops_standard ()
#3  0x0806721b in perl_run ()
#4  0x08063752 in main ()
Is it a real problem with ImageMagick?

Thank you!

Re: perlmagick segfaults when drawing text on individual images

Posted: 2008-03-19T10:22:53-07:00
by magick
We have a patch in ImageMagick 6.3.9-10 Beta to fix the problem you reported. 6.3.9-10 will be available sometime tomorrow.