[SOLVED] Text in gif: stroke switch causes Aborted: (core dumped)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Locked
jamtat
Posts: 47
Joined: 2010-05-10T16:51:23-07:00
Authentication code: 8675308

[SOLVED] Text in gif: stroke switch causes Aborted: (core dumped)

Post by jamtat »

Arch user here with imagemagick 7.0.7.34-1 installed. A script for adding text to a gif file, one I cobbled together some time ago, has stopped working recently. I get an "Aborted: (core dumped)" message when I try to run it. It's a really complex (and probably ugly) script, so I won't post the whole thing here at this time. But I have run some tests today using a similar line that was taken straight from http://www.imagemagick.org/Usage/text/ and I get the same error message.

The command is

Code: Select all

convert -background white -fill dodgerblue -font Candice -strokewidth 2 -stroke blue -undercolor lightblue -size 165x70 -gravity center label:Anthony label_color.gif
attempting to run which also results in the "Aborted: (core dumped)" message. Subsequent fiddling with that command, as also resulted in some fiddling I'd previously done with my more complex command, seems to indicate that the -stroke switch is the source of the problem. When I remove that switch, the command runs successfully, though, of course, the resulting image does not have the additional visual effects the -stroke switch is supposed to enable.

Any ideas what could be going on here? Has Arch perhaps compiled a defective binary or some such? Has the -stroke switch been perhaps removed/replaced in more recent versions of IM? It looks like I do still have access through Arch repositories to imagemagick6 6.9.9.46-1 so I could go back to using it to see whether that resolves my issue. Still it would be nice to know what's the source of the issue in imagemagick 7.0.7.34-1 .

Input will be appreciated.
Last edited by jamtat on 2018-05-22T10:49:15-07:00, edited 1 time in total.

jamtat
Posts: 47
Joined: 2010-05-10T16:51:23-07:00
Authentication code: 8675308

Re: Text in gif: stroke switch causes Aborted: (core dumped)

Post by jamtat »

Nevermind. I updated repositories today and noted that a slightly newer version of imagemagick was available: imagemagick-7.0.7.35-1. So I upgraded to it, and now the command listed above runs without errors. So it looks like maybe the Arch maintainer for this package might have compiled a defective binary. So, problem solved.

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: [SOLVED] Text in gif: stroke switch causes Aborted: (core dumped)

Post by magick »

The ImageMagick development team has been busy squashing security flaws in ImageMagick courtesy of OSS Fuzz. Unfortunately, these fixes, on occasion, introduce new flaws such as those in the drawing subsystem in 7.0.7.33 and 7.0.7.34. 7.0.7.35 has resolved these flaws and drawing / clipping / masking appears to work properly once again.

Locked