Page 1 of 1

Segmentation fault

Posted: 2014-11-22T17:03:00-07:00
by oleksiy
Hi,

I receive segmentation fault on Linux and 'Abort trap: 6' on Mac with Image Magick 6.9.0-0 and 6.8.9-7 with the following command:

convert '/tmp/file.png' '(' -clone 0 -fill white -colorize 100% -fill black -draw 'translate 1332,701 roundRectangle -1332,-701 1332,701 1332,701' ')' -compose multiply -composite -compose over png:/tmp/out.png

file.png: https://www.dropbox.com/s/545ekl46ypszykw/file.png?dl=0

Thanks!

Re: Segmentation fault

Posted: 2014-11-22T17:42:47-07:00
by fmw42
convert '/tmp/file.png' '(' -clone 0 -fill white -colorize 100% -fill black -draw 'translate 1332,701 roundRectangle -1332,-701 1332,701 1332,701' ')' -compose multiply -composite -compose over png:/tmp/out.png
On unix systems, each parenthesis should be escaped with \

try

convert '/tmp/file.png' \( -clone 0 -fill white -colorize 100% -fill black -draw 'translate 1332,701 roundRectangle -1332,-701 1332,701 1332,701' \) -compose multiply -composite -compose over png:/tmp/out.png


Personally, I would not work with image in /tmp. I suggest you move your data out of /tmp. I believe it is for temporary data, primarily. You may also have a limited amount of space in /tmp.

Re: Segmentation fault

Posted: 2014-11-22T20:38:35-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-1 Beta, available by sometime tomorrow. Thanks.

Re: Segmentation fault

Posted: 2014-11-23T01:55:37-07:00
by oleksiy
Thanks!

/tmp was used just as an example