convert fails for pngalpha device using new ghostscript

"S. Umar" <[email protected]>
Newsgroups gmane.comp.video.image-magick.bugs
Organization Vanderbilt University
Message-ID <[email protected]>
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
[email protected]
http://compsci.cas.vanderbilt.edu/~umar/resume.pdf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.