I apologize if this turns out to be a tcl problem but I found hints to the type of crash I see first in the ImageMagick mailing list.
I run from within a tcl script convert to add a comment to an image. The comment is scientific information that explains roughly how this image was produced. It worked well for a long time until an upgrade of either imagemagick or the operating system.
But first the problem:
*** glibc detected *** /usr/bin/convert: free(): invalid pointer: 0x0000000001e40251 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3d00475f3e]
/lib64/libc.so.6[0x3d00478d8d]
[rather long list of stuff excluded]
3d04825000-3d04a25000 ---p 00025000 fd:00 140096 /usr/lib64/libpng12.so.0.49.0child killed: SIGABRT
while executing
"exec $PGM_convert -comment "$com" tmp_plate.png crash_plate.png"
(file "./conv.tcl" line 15)
I isolated the problem to form this example (script)
Code: Select all
#! /usr/bin/tclsh
set PGM_convert /usr/bin/convert;
set com "This is a comment that works\n"
exec $PGM_convert -comment "$com" tmp_plate.png com_plate.png
set com "\nThis is a comment that crashes\n"
exec $PGM_convert -comment "$com" tmp_plate.png crash_plate.png
# end of script
convert --version
Version: ImageMagick 6.7.2-7 2016-05-09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
uname -a
Linux name 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
CentOS 6.8
I suspect you can use any image (png) but if you need my image, I can provide it. Yes, I only tried png as file type.
But it used to work well. Unfortunately, I cannot tell anymore which version of IM worked or what else has changed exactly.
Thanks for any pointers.
Lothar