Re: static build: DestroyDrawInfo: Assertion `draw_info->signature == MagickSignature' failed

Michael Melcher <[email protected]> Mon, 15 Nov 2021 11:43:49 +0000
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <PAXP192MB1391257E46498DC5BF94574C86989@PAXP192MB1391.EURP192.PROD.OUTLOOK.COM>
Hi Bob,

thanks for your feedback. I have just tried a hg checkout of the code and c=
onfigure and build it in the same manner as before. The assertion error now=
 occurs on both compiles.

# LDFLAGS=3D"-static-pie -g" CFLAGS=3D"-fPIE -g" ./configure ....
As well as
# ./configure ...

With PIE
# utilities/gm convert -pointsize 12 -font helvetica -size 100x caption:"te=
st" -transparent white ../test.png
gm: magick/render.c:1061: DestroyDrawInfo: Assertion `draw_info->signature =
=3D=3D MagickSignature' failed.
utilities/gm convert: abort due to signal 6 (SIGABRT) "Abort"...

Without PIE
# utilities/gm convert -pointsize 12 -font helvetica -size 100x caption:"te=
st" -transparent white ../test.png
gm: magick/render.c:1061: DestroyDrawInfo: Assertion `draw_info->signature =
=3D=3D MagickSignature' failed.
utilities/gm convert: abort due to signal 6 (SIGABRT) "Abort"...
Aborted (core dumped)

--
Freundliche Gr=FC=DFe

Michael Melcher
Linux System Administrator
IT-Architektur & Support

Tel.: 06 21-52 00 78 - 109 - Fax: 06 21-52 00 78 - 20
E-Mail: [email protected]

Fasihi GmbH - Ludwig-Reichling-Stra=DFe 6 - 67059 Ludwigshafen
Gesch=E4ftsf=FChrer Saeid Fasihi, Rolf Lutzer - Firmensitz Ludwigshafen a. =
Rh.
Amtsgericht Ludwigshafen - HRB 60601

Preistr=E4ger Gro=DFer Preis des Mittelstandes 2014 =

Innovationspreistr=E4ger Rheinland-Pfalz 2011
Ausgezeichnet f=FCr innovative Anwendungen und Verfahren der Informations- =
und Kommunikationstechnologien

Besuchen Sie uns auch unter
Homepage: https://www.fasihi.net
Link WEB inFACTORY: https://www.webinfactory.de
Link Gro=DFer Preis des Mittelstandes: https://www.fasihi.net/mittelstand =

Link Innovationspreis: https://www.fasihi.net/innovationspreis

-----Urspr=FCngliche Nachricht-----
Von: Bob Friesenhahn <[email protected]> =

Gesendet: Freitag, 12. November 2021 16:10
An: GraphicsMagick bug reporting and discussion <graphicsmagick-bugs@lists.=
sourceforge.net>
Betreff: Re: [GM-bugs] static build: DestroyDrawInfo: Assertion `draw_info-=
>signature =3D=3D MagickSignature' failed

On Thu, 11 Nov 2021, Michael Melcher wrote:

> Greetings,
>
> when building GM statically I get the above mentioned error followed =

> by a SIGABRT
>
> It does not matter whether I use an Ubuntu system as build host and =

> build the dependencies (libpng, libtiff, libjpeg, jasper, webp,
> lcms2 and freetype) from their current sources or whether I use a =

> Gentoo system as build system with "static-libs" and "pie" as =

> useflags. As soon as I configure with LDFLAGS=3D"-static-pie"
> CFLAGS=3D"-fPIE" I get the following error:

Unfortunately, the 1.3.36 release is rather old.  A great many issues have =
been fixed in the development version

I am not familiar with the requirements for static PIE.  Perhaps all involv=
ed static libraries need to be compiled and linked similarly?

Regardless, the type of assertion encountered sounds like something which m=
ight have been corrected since the 1.3.36 release.

Are you able to try a build using the latest Mercurial or snapshot version =
to see if the same error is encountered?

I tried your command using latest code (but without the PIE options) and it=
 did not throw an assersion.

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt


_______________________________________________
Graphicsmagick-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs