Bug 113823

Summary: gs aborts with "buffer overflow detected" for -sDEVICE=lips4v
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Johannes Meixner <jsmeix>
Component: PrintingAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None CC: jsmeix
Version: Beta 3   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: strace -f of the gs command on nelson.suse.de (i386)
strace -f of the gs command on caps.suse.de (x86_64)

Description Johannes Meixner 2005-08-29 12:09:06 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
Comment 1 Johannes Meixner 2005-08-29 12:12:12 UTC
Created attachment 47982 [details]
strace -f of the gs command on nelson.suse.de (i386)
Comment 2 Johannes Meixner 2005-08-29 12:12:51 UTC
Created attachment 47983 [details]
strace -f of the gs command on caps.suse.de (x86_64)
Comment 3 Dr. Werner Fink 2005-08-29 12:43:43 UTC
The strace does not help in this case.
Comment 4 Johannes Meixner 2005-08-29 12:54:46 UTC
What would help you?
Comment 5 Dr. Werner Fink 2005-08-29 13:07:56 UTC
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. 
Comment 6 Dr. Werner Fink 2005-08-29 13:19:36 UTC
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.
Comment 7 Dr. Werner Fink 2005-08-29 13:23:27 UTC
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.
Comment 8 Dr. Werner Fink 2005-08-29 13:46:18 UTC
It seems that libgmodule for OMNI was not linked with the new generated gs.
Comment 9 Dr. Werner Fink 2005-08-29 14:25:22 UTC
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 ....
Comment 10 Dr. Werner Fink 2005-08-29 15:16:29 UTC
FIXED