gs command fails in cups, fine at command line

Chris Cera ceraREMOVECAPS at cs.drexel.edu
Wed Jan 12 20:06:54 PST 2005


I decided to hack the gs-wrapper script such that it uses the same device and the same input file.  If I copy/paste the failed command from the log file, the command works at the command-line.  I am now completely baffled.  Here is the command as printed from the logfile.

D [12/Jan/2005:23:03:16 -0500] [Job 37] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=HP LaserJet' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2

The output from 3>&1 and 1>&2 are empty if I redirect them to files.  I believe the error value of 139 (see full output below) is meaningful.  I don't know what it means;  I couldn't find it in errno.h.

Any help is greatly appreciated.





Chris Cera wrote:
> Here is a dump of the log file.  I believe it gs bombs because of something device related.  The same command with the device set properly at the end works.  I'm using the '/etc/cups/ppd/laserjet_4l.ppd' file.  I'm not sure what all the redirections mean in the snippet below.  Here is the working command I mentioned (with difference outline):
>
>     $ gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet" -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dDuplex=false -r300 -sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile="/dev/lp0" test.ps -c quit
>                               ^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> The command I used from cups was:
>     $ lpr test.ps
>
> Here is a small log snippet with the command:
>
> D [12/Jan/2005:21:42:31 -0500] [Job 13] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=HP LaserJet' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
>
>
> Here is the entire log snippet:
>
> D [12/Jan/2005:21:42:31 -0500] [Job 13] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="HP LaserJet" -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dDuplex=false -r300 -sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- -
> D [12/Jan/2005:21:42:31 -0500] [Job 13] perl: warning: Setting locale failed.
> D [12/Jan/2005:21:42:31 -0500] [Job 13] perl: warning: Please check that your locale settings:
> D [12/Jan/2005:21:42:31 -0500] [Job 13] LANGUAGE = (unset),
> D [12/Jan/2005:21:42:31 -0500] [Job 13] LC_ALL = (unset),
> D [12/Jan/2005:21:42:31 -0500] [Job 13] LANG = "en"
> D [12/Jan/2005:21:42:31 -0500] [Job 13] are supported and installed on your system.
> D [12/Jan/2005:21:42:31 -0500] [Job 13] perl: warning: Falling back to the standard locale ("C").
> D [12/Jan/2005:21:42:31 -0500] [Job 13] foomatic-gswrapper: gs '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=HP LaserJet' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=1,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2
> D [12/Jan/2005:21:42:32 -0500] [Job 13] renderer return value: 139
> D [12/Jan/2005:21:42:32 -0500] [Job 13] renderer received signal: 139
> D [12/Jan/2005:21:42:32 -0500] [Job 13] Process dying with "The renderer may have dumped core.", exit stat: 3
> D [12/Jan/2005:21:42:32 -0500] [Job 13] The renderer may have dumped core.
> D [12/Jan/2005:21:42:32 -0500] [Job 13] tail process done writing data to STDOUT
>
> Any help is greatly appreciated.  Thank you.
>





More information about the cups mailing list