Segmentation fault

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
carldouglas

Segmentation fault

Post by carldouglas »

Hello, I'm encountering a segmentation fault when using convert:

$ convert -size 500x500 'phpHhTeR2.jpg' -thumbnail '500x500>' 'xyz.jpg'
Here is the image: http://89.234.7.89/images/phpHhTeR2.jpg

Here is the stack trace:

$ gdb convert
GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -size 500x500 'phpHhTeR2.jpg' -thumbnail '500x500>' 'zyx.jpg'
Starting program: /usr/bin/convert -size 500x500 'phpHhTeR2.jpg' -thumbnail '500x500>' 'zyx.jpg'
[Thread debugging using libthread_db enabled]
[New Thread -1208879424 (LWP 28463)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208879424 (LWP 28463)]
0x007e1d1a in realloc () from /lib/tls/libc.so.6
(gdb)



Any help appreciated.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault

Post by magick »

We can reproduce the problem and will have a fix in ImageMagick 6.3.5-1 scheduled for release within a week. Thanks.
carldouglas

Re: Segmentation fault

Post by carldouglas »

Thanks, how efficient! Will it be available in CVS sooner, or was that what you meant?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault

Post by magick »

The patch is in magick/xml-tree.c and will be available by tommorrow at the ftp site and in subversion.
Post Reply