Segmentation fault in Annotate function

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
NightBird
Posts: 3
Joined: 2014-12-24T09:03:01-07:00
Authentication code: 6789

Segmentation fault in Annotate function

Post by NightBird »

I use imagemagick (perl module) in debian, and 8:6.7.7.10+dfsg-5 is the latest working version for me. Every version thereafter crashes when calling the annotate function:

Code: Select all

$ perl -e 'use Image::Magick; my $image = new Image::Magick(); $image->Set(size=>"100x100"); $image->ReadImage("canvas:white"); $image->Annotate(font=>"Arial", pointsize=>40, fill=>"green", text=>"121212");'
Segmentation fault

Code: Select all

# dpkg -l | grep magick
ii  imagemagick-common                       8:6.8.9.9-4                  all          image manipulation programs -- infrastructure
ii  libimage-magick-perl                     8:6.8.9.9-4                  all          Perl interface to the ImageMagick graphics routines
ii  libimage-magick-q16-perl                 8:6.8.9.9-4                  i386         Perl interface to the ImageMagick graphics routines -- Q16 version
ii  libmagickcore-6.q16-2:i386               8:6.8.9.9-4                  i386         low-level image manipulation library -- quantum depth Q16
When running the script in gdb, I get this:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
__GI___libc_realloc (oldmem=0x1, bytes=4102) at malloc.c:2977
2977    malloc.c: No such file or directory.
No idea where to look next. Someone here who can help me out?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault in Annotate function

Post by magick »

We tried your perl command-line with ImageMagick 6.9.0-2, the latest release, and it completed without complaint.
NightBird
Posts: 3
Joined: 2014-12-24T09:03:01-07:00
Authentication code: 6789

Re: Segmentation fault in Annotate function

Post by NightBird »

Well, that's great. But debian doesn't have any newer version than this 6.8.9.9. I'd like to know how I can find out what's wrong on my system/installation that the 'annotate' function stopped working. I'm sure there's some other program or library that conflicts with the annotate function in imagemagick and I'd like to find out what it is and how to resolve this.
Could you help me with that?
herwinw
Posts: 1
Joined: 2015-05-04T09:40:10-07:00
Authentication code: 6789

Re: Segmentation fault in Annotate function

Post by herwinw »

This bug has already been reported to the Debian bug tracker: https://bugs.debian.org/cgi-bin/bugrepo ... bug=777158

But since the chances of getting a newer version into Debian are pretty small (which is an understatement): if anyone would have a clue where to find the problem, that would be appreciated.
NightBird
Posts: 3
Joined: 2014-12-24T09:03:01-07:00
Authentication code: 6789

Re: Segmentation fault in Annotate function

Post by NightBird »

Ah, thanks for pointing me there. Indeed, would be great to find a solution (except for keeping the old version installed :)).
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Segmentation fault in Annotate function

Post by broucaries »

They are a patch magick at end of thread https://bugs.debian.org/cgi-bin/bugrepo ... bug=777158

It is a problem of include path...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault in Annotate function

Post by magick »

We added the patch to ImageMagick 6.9.1-3 Beta, available by sometime tomorrow. Thanks.
Post Reply