[Pkg-hpijs-devel] Bug#503468: hpijs: gs segfaults after printing "unable to read client data err=-2"

martin f krafft madduck at debian.org
Sun Oct 26 11:48:11 UTC 2008


Package: hpijs
Version: 2.6.10+1.6.10-3etch1
Severity: normal

CUPS invokes gs to print to a HP LaserJet as follows:

  gs -sstdout=%stderr -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=ijs \
    -sIjsServer=hpijs -r300 -sDeviceManufacturer=HEWLETT-PACKARD \
    -sDeviceModel='HP LaserJet' -dDEVICEWIDTHPOINTS=595 \
    -dDEVICEHEIGHTPOINTS=842 -dDuplex=false \
    -sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=0,PS:MediaPosition=7 \
    -dIjsUseOutputFD -sOutputFile=%stdout -

On some files, this segfaults:

  GPL Ghostscript 8.54 (2006-05-17)
  Copyright (C) 2006 artofcode LLC, Benicia, CA.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  unable to read client data err=-2
  [1]    2187 segmentation fault  gs -sstdout=%stderr -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=ijs  -r300

Using -sDEVICE=pdfwrite instead of ijs works. Thus I think this is
a problem with the ijs server.

I've tried restarting the hplip service.

Please find attached a PDF file. Use pdf2ps to produce a PS file and
use that to reproduce the problem. The PDF file is a lot smaller
than a bzipped PS file, and it can be fed to ghostscript without
causing the segfault, thus this may be of interest.

If needed, I can also provide debug and strace data, but since it
should be reproducable, you probably don't need those in the bug
report.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hpijs depends on:
ii  ghostscript-x [gs-gpl]   8.62.dfsg.1-3.1 The GPL Ghostscript PostScript/PDF
ii  gs-esp                   8.62.dfsg.1-3.1 Transitional package
ii  libc6                    2.7-15          GNU C Library: Shared libraries
ii  libgcc1                  1:4.3.2-1       GCC support library
ii  libjpeg62                6b-14           The Independent JPEG Group's JPEG 
pn  libsnmp9                 <none>          (no description available)
ii  libssl0.9.8              0.9.8g-13       SSL shared libraries
ii  libstdc++6               4.3.2-1         The GNU Standard C++ Library v3
ii  libusb-0.1-4             2:0.1.12-13     userspace USB programming library

hpijs recommends no packages.

Versions of packages hpijs suggests:
pn  hpijs-ppds                    <none>     (no description available)
pn  hplip | hpoj                  <none>     (no description available)
pn  hplip-doc                     <none>     (no description available)


-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tad-sae.pdf
Type: application/pdf
Size: 775524 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-hpijs-devel/attachments/20081026/0a1221dd/attachment-0001.pdf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-hpijs-devel/attachments/20081026/0a1221dd/attachment-0001.pgp 


More information about the Pkg-hpijs-devel mailing list