Bug 112659

Summary: gs segfaults when pcl3 driver is used in CMYK mode
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Johannes Meixner <jsmeix>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None CC: jsmeix
Version: Beta 2   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: "strace -f" for the above command which leads to a segfault

Description Johannes Meixner 2005-08-24 10:01:00 UTC
I have beta2 installed on x86_64 machine caps.suse.de

gs segfaults when pcl3 driver is used in CMYK mode:

root@caps # gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE \
               -sDEVICE=pcl3 -sSubdevice=unspec -sColorModel=CMYK \
               -sOutputFile=/tmp/pcl3 \
               /usr/share/doc/packages/ghostscript/examples/colorcir.ps
get_encode_color: no color encoding information
set_cinfo_polarity: different polarity already set
set_cinfo_polarity: different polarity already set
Segmentation fault

The CMYK mode is used by default in many PPD files for the pcl3 driver.

It works when using -sColorModel=CMY -sColorModel=CMY+K -sColorModel=Gray.
Comment 1 Johannes Meixner 2005-08-24 10:03:46 UTC
Created attachment 47337 [details]
"strace -f" for the above command which leads to a segfault
Comment 2 Dr. Werner Fink 2005-08-25 13:12:34 UTC
Fixed but needs testing if the coloring for -sColorModel=CMY,
-sColorModel=CMY+K, -sColorModel=Gray, -sColorModel=RGB, and
-sColorModel=CMYK really works.
Comment 3 Dr. Werner Fink 2005-08-25 13:12:53 UTC
see /work/src/done/STABLE/ghostscript-library.werner/
Comment 4 Johannes Meixner 2005-08-25 13:21:37 UTC
will test it...
Comment 5 Johannes Meixner 2005-08-25 14:27:37 UTC
I built and installed /work/src/done/STABLE/ghostscript-library.werner/
on my x86_64 machine caps.suse.de

Now all ColorModels (CMYK, CMY+K, CMY, RGB, Gray) work for me
(using a HP DeskJet 990C) and all "pcl3" PPD files pass my test.