perlmagick segfaults when drawing text on individual images

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
naoliv
Posts: 110
Joined: 2007-12-10T18:54:27-07:00
Location: Brazil

perlmagick segfaults when drawing text on individual images

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: perlmagick segfaults when drawing text on individual images

Post 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.
Post Reply