Bugzilla – Bug 113823
gs aborts with "buffer overflow detected" for -sDEVICE=lips4v
Last modified: 2005-08-29 15:16:29 UTC
On nelson.suse.de (i386) where a plain beta3 is installed: jsmeix@nelson:~> rpm -q ghostscript-library ghostscript-library-8.15rc1-25 jsmeix@nelson:~> rpm -q --changelog ghostscript-library | head -n 4 * Mon Aug 15 2005 - mfabian@suse.de - Bugzilla #104656: Fix for Ghostscript to render vertical Japanese correctly again. jsmeix@nelson:~> gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE \ -sDEVICE=lips4v -sOutputFile=/dev/null \ /usr/share/doc/packages/ghostscript/examples/colorcir.ps *** buffer overflow detected ***: gs terminated Aborted On caps.suse.de (x86_64) where a newer ghostscript-library is installed: caps:~ # rpm -q ghostscript-library ghostscript-library-8.15rc1-25 caps:~ # rpm -q --changelog ghostscript-library | head -n 3 * Thu Aug 25 2005 - werner@suse.de - Fix color model handling of pcl3 driver for gs 8.15 (bug #112659) caps:~ # gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE \ -sDEVICE=lips4v -sOutputFile=/dev/null \ /usr/share/doc/packages/ghostscript/examples/colorcir.ps *** buffer overflow detected ***: gs terminated Aborted
Created attachment 47982 [details] strace -f of the gs command on nelson.suse.de (i386)
Created attachment 47983 [details] strace -f of the gs command on caps.suse.de (x86_64)
The strace does not help in this case.
What would help you?
In this case of an overflow I've to debug the lips4v driver to catch the wrong usage of the new color mode interface of gs 8.15. Straces are usefull to catch missing files or files which were missed by gs but installed.
Hmmm ... within my change root environment I see: g31:espgs-8.15rc1 # bin/gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE \ -sDEVICE=lips4v -sOutputFile=/dev/null \ /usr/share/doc/packages/ghostscript/examples/colorcir.ps g31:espgs-8.15rc1 # simply nothing.
OK on caps I see: /suse/werner> gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=lips4v -sOutputFile=/dev/null /usr/share/doc/packages/ghostscript/examples/colorcir.ps *** buffer overflow detected ***: gs terminated Abort but /suse/werner> tmp/gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=lips4v -sOutputFile=/dev/null /usr/share/doc/packages/ghostscript/examples/colorcir.ps /suse/werner> ... strange.
It seems that libgmodule for OMNI was not linked with the new generated gs.
Hmmm .. even if libgmodule is linked in and the same CFLAGS are used the gs binary get from command line in the change root environment is different as the binary generated from the build comand in the same change root environment ....
FIXED