Page 1 of 1

covert to png generating a SIGSEGV

Posted: 2011-10-10T10:22:08-07:00
by ianamason
I'm on snow leapard. I installed using macports:

Code: Select all

 
iam% identify --version
Version: ImageMagick 6.7.2-9 2011-09-29 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP OpenCL   

Unfortunately I get:

Code: Select all

iam% 
iam% convert captcha.gif captcha.png
Segmentation fault
[visnet-83:~/Desktop/Defiance/Client] iam% 
and from gdb:

Code: Select all

(gdb) run captcha.gif captcha.png
Starting program: /usr/local/bin/convert captcha.gif captcha.png
Reading symbols for shared libraries .+++++++++++++++++++++.++++..++++.+++++++++++++++++++++.+............................................................................................... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
CopyMagickString (destination=0x7fff5fbfe150 "Resource busy", source=0x0, length=4096) at magick/string.c:741
741	    *q=(*p++);
(gdb) bt
#0  CopyMagickString (destination=0x7fff5fbfe150 "Resource busy", source=0x0, length=4096) at magick/string.c:741
#1  0x00000001000b0a6a in GetExceptionMessage (error=<value temporarily unavailable, due to optimizations>) at magick/exception.c:463
#2  0x000000010014d664 in DestroySemaphoreInfo (semaphore_info=<value temporarily unavailable, due to optimizations>) at magick/semaphore.c:237
#3  0x0000000100157d8a in UnregisterStaticModules () at magick/static.c:436
#4  0x00000001000e9c62 in MagickCoreTerminus () at magick/magick.c:1394
#5  0x0000000100001e9d in main (argc=3, argv=<value temporarily unavailable, due to optimizations>) at utilities/convert.c:85
(gdb) 

Any ideas? Would be nice to get down to actually using it to do some developing :-)

Re: covert to png generating a SIGSEGV

Posted: 2011-10-10T16:54:54-07:00
by magick
Apparently strerror_r() on some systems can return NULL, something we did not account for. We'll get a patch in ImageMagick-6.7.3-1 by sometime tomorrow. In the mean-time, try http://www.imagemagick.org/script/binar ... php#macosx.

Re: covert to png generating a SIGSEGV

Posted: 2011-10-10T17:08:35-07:00
by ianamason
Ahhh I see.

I can build from sources when they are ready. The alternative looks like it is for lion *not* snow leopard:

Code: Select all

iam% convert -version
dyld: Library not loaded: /usr/X11/lib/libX11.6.dylib
  Referenced from: /Users/iam/Software/ImageMagick-6.7.3/bin//convert
  Reason: Incompatible library version: convert requires version 10.0.0 or later, but libX11.6.dylib provides version 9.0.0
Trace/BPT trap
Just guess there...