covert to png generating a SIGSEGV

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
ianamason
Posts: 5
Joined: 2011-10-01T14:37:25-07:00
Authentication code: 8675308

covert to png generating a SIGSEGV

Post 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 :-)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: covert to png generating a SIGSEGV

Post 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.
ianamason
Posts: 5
Joined: 2011-10-01T14:37:25-07:00
Authentication code: 8675308

Re: covert to png generating a SIGSEGV

Post 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...
Post Reply