Go to content Go to navigation Go to search

MacPorts ImageMagick 6.3.5: Resizing an Image Causes Deallocation of a Pointer Not Malloced

I noticed this morning that my version of ImageMagick from MacPorts is borked (on my Core 2 Duo MacBook Pro running Mac OS X 10.4.10). When I try to resize an image, like so

   % convert image.jpg -resize 100x100 image_thumb.jpg

I get the following error message:

convert(27132) malloc: *** error for object 0x11087d0: pointer being reallocated was not allocated

convert(27132) malloc: *** set a breakpoint in szone_error to debug

convert(27132) malloc: *** Deallocation of a pointer not malloced: 0x11087d0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug convert: unable to allocate string `begin='' id='W5M0MpCehiHzreSzNTczkc9d''.

A search on Google doesn't return much, but I did notice that there are binaries for OS X available from the ImageMagick web site, so I downloaded them, followed the installation instructions, and everything became un-borked.

I submitted a defect to the MacPorts tracker. Hopefully, someone fixes the problem. Until then, I'll use the binaries straight from the ImageMagick guys.