Re: static build: DestroyDrawInfo: Assertion `draw_info->signature == MagickSignature' failed
Bob Friesenhahn <[email protected]> Mon, 15 Nov 2021 10:10:57 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 15 Nov 2021, Michael Melcher wrote: > Hi Bob, > > thanks for your feedback. I have just tried a hg checkout of the code and configure and build it in the same manner as before. The assertion error now occurs on both compiles. > > # LDFLAGS="-static-pie -g" CFLAGS="-fPIE -g" ./configure .... > As well as > # ./configure ... > > With PIE > # utilities/gm convert -pointsize 12 -font helvetica -size 100x caption:"test" -transparent white ../test.png > gm: magick/render.c:1061: DestroyDrawInfo: Assertion `draw_info->signature == MagickSignature' failed. > utilities/gm convert: abort due to signal 6 (SIGABRT) "Abort"... > > Without PIE > # utilities/gm convert -pointsize 12 -font helvetica -size 100x caption:"test" -transparent white ../test.png > gm: magick/render.c:1061: DestroyDrawInfo: Assertion `draw_info->signature == MagickSignature' failed. > utilities/gm convert: abort due to signal 6 (SIGABRT) "Abort"... > Aborted (core dumped) Do you actually have a "helvetica" font on your system? One does not normally have this font on Ubuntu 20.04 systems without installing additional font packages. On my system, the font file used for this is located at "/usr/share/fonts/type1/gsfonts/n019003l.pfb". Since you should have a core file, then using gdb you could do gdb utilities/gm core and then 'bt' to get a backtrace to see where the problem is occuring. It is likely that the problem is occuring due to an error and the error is not handled properly. If you add debug tracing like utilities/gm convert -debug exception,annotate,configure .... (or you could even use '-debug all') then there will be tracing which shows what the program is doing. You can do 'gm convert -list type' to list the fonts that GraphicsMagick thinks are available. 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