[Magick-bugs] convert fails for pngalpha device using new ghostscript

S. Umar umar at compsci.cas.vanderbilt.edu
Mon Jan 28 08:27:34 PST 2008


Investigated further using valgrind with the debug package. Problem
seems to be with ImageMagick. There is a crash happening at
RelinquishMagickMemory (memory.c:589) when free(memory)
is called. Here is the valgrind output:
==========================================
gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g573x489  "-sOutputFile=/tmp/magick-XXCt7OBg" "-f/tmp/magick-XXspO88W" "-f/tmp/magick-XXi7GxND"
==30776== Invalid free() / delete / delete[]
==30776==    at 0x4A0560B: free (vg_replace_malloc.c:233)
==30776==    by 0x4D11F0D: RelinquishMagickMemory (memory.c:589)
==30776==    by 0x6AA650B: png_IM_free (png.c:1435)
==30776==    by 0x5BEEABB: png_free_data (png.c:490)
==30776==    by 0x3B3C4051EB: (within /usr/lib64/libpng12.so.0.22.0)
==30776==    by 0x3B3C411790: (within /usr/lib64/libpng12.so.0.22.0)
==30776==    by 0x3B3C411AD3: png_destroy_read_struct (in /usr/lib64/libpng12.so.0.22.0)
==30776==    by 0x6AAAE51: ReadOnePNGImage (png.c:1717)
==30776==    by 0x6AB291D: ReadPNGImage (png.c:2834)
==30776==    by 0x4CA1F4F: ReadImage (constitute.c:386)
==30776==    by 0x570CEBF: ReadPSImage (ps.c:706)
==30776==    by 0x4CA1F4F: ReadImage (constitute.c:386)
==30776==  Address 0xF4240 is not stack'd, malloc'd or (recently) free'd
===========================================

That command line runs fine with just using ghostscript.


-- 
Prof. S. Umar
Dept. of Physics & Astronomy
Vanderbilt University
Nashville, TN 37235
Tel : (615) 322-2459
umar at compsci.cas.vanderbilt.edu
http://compsci.cas.vanderbilt.edu/~umar/resume.pdf


More information about the Magick-bugs mailing list