ports/89246: ImageMagick Core dumping on various utilities

Paul pprocacci at datapipe.com
Fri Nov 18 18:10:24 UTC 2005


>Number:         89246
>Category:       ports
>Synopsis:       ImageMagick Core dumping on various utilities
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 18 18:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Paul
>Release:        4.11-RELEASE-p11
>Organization:
DataPipe
>Environment:
FreeBSD www.zumu.com 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #0: Thu Oct 13 22:15:41 GMT 2005     root at www.uselesscrap.com:/usr/obj/usr/src/sys/EASYADMIN-SMP  i386
>Description:
My clients are using ImagickMagick on their site to handle image manipulation through their web application.  At certain times throughout the day, there upload fails.  They then upload the same image again, and it works without error.  A closer look at the files on the server revealed a couple of core files hanging around from the various utilities that are being executed.

I have successfully compiled ImageMagick with symbols by editing the Makefile, by adding the following:

.if defined(WITH_DEBUG)
CPPFLAGS+= -g -ggdb3 -O0
.endif

and compiling with:  make install -DWITH_DEBUG

Below is the output of my gdb sessions on the file.  My knowledge of gdb isn't that great, so if there is anything more that is needed to attain from gdb or otherwise, please let me know.  Also, if this is a known problem, I apologize, as I haven't seen anything yet relating to this problem.

---------------------------------------------------------------------

www# gdb /usr/local/bin/mogrify ./mogrify.core                                                                               
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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-unknown-freebsd"...
(no debugging symbols found)...
Core was generated by `mogrify'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libMagick.so.8...Deprecated bfd_read called                                                                                                                          at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c li                                                                                                                         ne 3049 in dwarf2_read_section
done.
Reading symbols from /usr/local/lib/libjbig.so.1...done.
Reading symbols from /usr/local/lib/liblcms.so.1...done.
Reading symbols from /usr/local/lib/libtiff.so.4...done.
Reading symbols from /usr/local/lib/libjasper.so.4...done.
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Reading symbols from /usr/local/lib/libpng.so.5...done.
Reading symbols from /usr/local/lib/libfpx.so.1...done.
Reading symbols from /usr/lib/libbz2.so.1...done.
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/local/lib/libltdl.so.4...done.
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/lib/libstdc++.so.3...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  InheritException (exception=0x31c4, relative=0xbfbff58c)
    at magick/exception.c:473
473     magick/exception.c: No such file or directory.
(gdb) bt
#0  InheritException (exception=0x31c4, relative=0xbfbff58c)
    at magick/exception.c:473
#1  0x281277e5 in MogrifyImageCommand (image_info=0x804c000, argc=4, 
    argv=0x804a040, metadata=0x0, exception=0xbfbff58c)
    at magick/mogrify.c:2634
#2  0x80489e5 in __register_frame_info ()
#3  0x8048832 in __register_frame_info ()

-----------------------------------------------------------------------------

www# gdb /usr/local/bin/identify ./identify.core 
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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-unknown-freebsd"...(no debugging symbols found)...
Core was generated by `identify'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libMagick.so.8...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dwarf2read.c line 3049 in dwarf2_read_section
done.
Reading symbols from /usr/local/lib/libjbig.so.1...done.
Reading symbols from /usr/local/lib/liblcms.so.1...done.
Reading symbols from /usr/local/lib/libtiff.so.4...done.
Reading symbols from /usr/local/lib/libjasper.so.4...done.
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Reading symbols from /usr/local/lib/libpng.so.5...done.
Reading symbols from /usr/local/lib/libfpx.so.1...done.
Reading symbols from /usr/lib/libbz2.so.1...done.
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/local/lib/libltdl.so.4...done.
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/lib/libstdc++.so.3...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  ResetTimer (time_info=0x16c) at magick/timer.c:271
271     magick/timer.c: No such file or directory.
(gdb) bt
#0  ResetTimer (time_info=0x16c) at magick/timer.c:271
#1  0x280c5fec in PingImage (image_info=0x8059000, exception=0x0) at magick/constitute.c:251
#2  0x2810fdc5 in IdentifyImageCommand (image_info=0x804c000, argc=4, argv=0x804a040, metadata=0xbfbff588, exception=0xbfbff58c) at magick/identify.c:1060
#3  0x8048a96 in __register_frame_info ()
#4  0x80488da in __register_frame_info ()
>How-To-Repeat:
I'm not quite sure how to repeat this problem.  One upload file, but another attempt at the same upload (i.e. same file) will work just fine.
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list