Bug 209879

Summary: Duplex support in pstoraster is not working properly
Product: [openSUSE] SUSE Linux 10.1 Reporter: Sascha Sommer <ssommer>
Component: PrintingAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None CC: hmuelle
Version: Final   
Target Milestone: ---   
Hardware: i386   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: backtrace of gs using driver sgirgb
output of gs using sgirgb

Description Sascha Sommer 2006-10-04 09:58:36 UTC
After the bugfix for https://bugzilla.novell.com/show_bug.cgi?id=161004
the pstoraster utility stopped to honor the cupsflipDuplex flag (that lets pstoraster flip the data for the pages that have to be printed on the backside)

This has been fixed in espgs 8.15.3.

The str with patch can be found at http://www.cups.org/espgs/str.php?L1987+P0+S1+C0+I0+E0+Qduplex
Comment 1 Johannes Meixner 2006-10-04 10:09:09 UTC
I reassign it to our Ghostscript maintainer.
Comment 2 Dr. Werner Fink 2006-10-09 16:50:15 UTC
It is fixed in 8.15.3.
Comment 3 Dr. Werner Fink 2006-10-11 12:18:22 UTC
Andreas? I'll need a SWAMP ID for this bug and bug #202092
... only the problem of bug #203287 isn't solved by espgs 8.15.3.
With this the update for SLES10-SP1 would be dead.
Comment 8 Harald Mueller-Ney 2006-11-06 14:44:51 UTC
We will release an update with fixes for  bug #202092,  bug #209879 and bug #203287.

bug #203287 is still worked on, but I expect a solution is not to far away.

Werner, ask Anja for a SWAMPID in 203287, when you have a fix.
Comment 9 Dr. Werner Fink 2006-11-10 12:33:15 UTC
Submitted
Comment 10 Heiko Rommel 2006-12-01 13:27:37 UTC
The maintenance update under test
(ghostscript-library-8.15.3-18.2)
introduces a bug on sles10-ia64 in the driver "sgirgb":

When using 

   d=sgirgb

   cat /usr/share/ghostscript/*/examples/colorcir.ps \
   | gs -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=$d \
        -sOutputFile='| cat >&3' /dev/fd/0 3>&1 1>&2 \
   | cat - >/tmp/gs.$d.prn
   ls -l /tmp/gs.$d.prn

I get

"*** glibc detected *** gs: double free or corruption (!prev): 0x6000000000301df0 ***"

I can not reproduce this with the previous version
(ghostscript-library-8.15.2rc1-20.4)

This does not happen on i386, x86_64, ppc* or s390x.

Attaching backtrace and out of gs in a minute.

Please advise.
Comment 11 Heiko Rommel 2006-12-01 13:29:14 UTC
Created attachment 107868 [details]
backtrace of gs using driver sgirgb
Comment 12 Heiko Rommel 2006-12-01 13:29:51 UTC
Created attachment 107869 [details]
output of gs using sgirgb
Comment 13 Dr. Werner Fink 2006-12-04 14:53:14 UTC
Do you really stop this process due a not needed driver?
This makes no sence.
Comment 14 Dr. Werner Fink 2006-12-04 14:55:11 UTC
Beside this, why there is an older version in SLES10-SP1 in comparision
to SLES10?
Comment 15 Dr. Werner Fink 2006-12-04 15:03:49 UTC
The glibc message of the glibc in commant #10 is not complete, is it?
I'm missing the function which the glibc always mention.
Comment 16 Heiko Rommel 2006-12-04 17:30:41 UTC
I'm not stoping this. The maintenance update is still in the qa queue. However, since the defect is caused by one of the fixes that comes with the maintenance update the update would deteriorate the customers installation. 

The person responsible for the swamp workflow should judge if we should release this in the current state or rework the patch.

For ease of use, please use merope.suse.de for reproduction (it's the QA's reference host).
Comment 17 Dr. Werner Fink 2006-12-05 16:01:06 UTC
Just fixed the sgirgb driver it now does not overwrite its stack
anymore and also should work on an itanium system.  Put them
to /work/src/done/SLES10/ghostscript-library/ ...

I'm going to ask rudi to remove the older ghostscript-library
from SLES10-SP1
Comment 18 Harald Mueller-Ney 2006-12-05 17:31:18 UTC
IMO - SGIRGB isn't of real interest nowadays. If noone has objections, let us release the tested update.

The fix for SGIRGB could be released with the next update.
Comment 19 Heiko Rommel 2006-12-06 10:29:34 UTC
I just qa approved the old update.
Comment 24 Dr. Werner Fink 2006-12-21 13:32:38 UTC
I fixed the bug of comment  #10 therefore I'll close this bug as fixed.
If someone does not like this reopen _and reassign the bug to your self.