GraphicsMagick 1.3.32 gives SIGABRT with compare module
Swiss army knife of image processing
Brought to you by:
bfriesen
My macports installation updated over night and gave me gm 1.3.32 and our testing system for comparing postscript plots immediately started crashing. Specifically, commands like this (does not matter what the PostScript files are but I attach a small one) fail with SIGABRT:
gm compare -density 200 -maximum-error 0.003 -highlight-color magenta -highlight-style assign -metric rmse -file box.png t.ps t.ps
The same commands work fine on earlier gm versions.
The specific message is:
gm compare: abort due to signal 6 (SIGABRT) "Abort"...
Abort trap: 6
On Mon, 1 Jul 2019, Paul Wessel wrote:
I am away on a vacation trip at the moment. Please check if the
latest development snapshot has the problem, or try the latest from
Mercurial. This already existing changeset fixed a SIGABRT during
initialization under OS X and will likely fix the problem:
changeset: 16063:f30492f40f78
user: Bob Friesenhahn bfriesen@GraphicsMagick.org
date: Mon Jun 17 18:54:43 2019 -0500
files: ChangeLog coders/png.c www/Changelog.html
description:
RegisterPNGImage(): Pass correct size value to strlcat().
If you can't use the latest code, then the simplest quick fix is to
change the code around line 6424 from:
to
Bob
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
See the same issue with 1.3.32 built on alpine linux 3.10 but on linux it seems to crash with illegal instruction.
Applied https://sourceforge.net/p/graphicsmagick/code/ci/f30492f40f78d867b43422215057dd21de4ba447/ to 1.3.32 and it works fine again. Thanks for fast fix Bob.
On Thu, 18 Jul 2019, Mattias Wadman wrote:
It is good that the fix also fixes Alpine Linux (with musl C library).
I will produce a new release before long (perhaps this weekend) to fix
the couple of known regressions and fix additional discovered security
issues.
Bob
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
The problem with initializing the PNG module is fixed as of the 1.3.33 release made this past weekend.