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
dragos.fedorovici

Segmentation fault

Post by dragos.fedorovici »

Hello,

I'm encountering a segmentation fault when using convert:

/usr/local/bin/convert /home/stapos2/public_html/images/originals/1-20080830081535.jpg -resize 125x90 -border 1 /home/stapos2/public_html/images/thumbnails-125x90/1-20080830081535.jpg

I am able to convert a different image without any issues:
/usr/local/bin/convert /home/stapos2/public_html/images/originals/lunarpages.jpg -resize 125x90 -border 1 /home/stapos2/public_html/images/thumbnails-125x90/lunarpages.jpg

Here is the stack trace:

gdb convert
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
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"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run /home/stapos2/public_html/images/originals/1-20080830081535.jpg -resize 125x90 -border 1 /home/stapos2/public_html/images/thumbnails-125x90/1-20080830081535.jpg
Starting program: /usr/local/bin/convert /home/stapos2/public_html/images/originals/1-20080830081535.jpg -resize 125x90 -border 1 /home/stapos2/public_html/images/thumbnails-125x90/1-20080830081535.jpg
[Thread debugging using libthread_db enabled]
[New Thread -1209047360 (LWP 25075)]

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

Any help appreciated.
Last edited by dragos.fedorovici on 2008-09-07T10:08:04-07:00, edited 1 time in total.
dragos.fedorovici

Re: Segmentation fault

Post by dragos.fedorovici »

This is the original picture where we are experiencing issues:
http://www.stapostle.org/images/origina ... 081535.jpg

Thank you!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault

Post by magick »

We tried your image with the latest ImageMagick release, 6.4.3-6, and it converted without complaint.
dragos.fedorovici

Re: Segmentation fault

Post by dragos.fedorovici »

Thank you!
Post Reply