--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: cups: Inability to print anything other than PostScript or PDF files
- From: Lawrence D'Oliveiro <from-debian-bugs@geek-central.gen.nz>
- Date: Mon, 21 Dec 2009 17:34:11 +1300
- Message-id: <20091221043411.30729.18745.reportbug@theon.geek-central.gen.nz>
Package: cups
Version: 1.4.2-5
Severity: important
Actually I'm not sure if the problem is with cups or ghostscript. Basically anything
I try to print with the lp or lpr commands that isn't a PostScript or PDF file (e.g.
a PNG image) appears briefly on the print queue, and then disappears without anything
coming out of my printer (an Epson R800 connected via USB).
Checking with dmesg, I invariably discover that ghostscript has segfaulted, e.g.
[263609.469966] gs[8089]: segfault at 7fff1a30e000 ip 00007f07280937db sp 00007fff1a309d88 error 6 in libc-2.10.2.so[7f0728017000+14a000]
I rebuilt ghostscript from the source .deb with debug symbols, and installed my version
as /usr/bin/gs-orig and also replacing /usr/lib/libgs.so.8.70. I substituted /usr/bin/gs
with a small stub program that sleeps for 30 seconds (long enough for me to attach to it with
gdb) before execing /usr/bin/gs-orig, and discovered in this way that the crash is happening
on line 146 in the source file ./psi/iscan.c, in the routine dynamic_save where it calls
memcpy. This is in turn called from line 1061, inside the scan_token routine in the same
source file. After the crash, further stack frames in the backtrace are simply reported
as hundreds and hundreds of instances of the address 0xffffffffffffffff, which suggests that
the stack has been clobbered.
GUI apps (e.g. Iceweasel, OpenOffice.org) all seem to generate PostScript for printing,
so they aren't affected by this.
Let me know if you need more info, want me to do further investigations with gdb etc.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_NZ.utf8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cups depends on:
ii adduser 3.111 add and remove users and groups
ii bc 1.06.95-2 The GNU bc arbitrary precision cal
ii cups-client 1.4.2-5 Common UNIX Printing System(tm) -
ii cups-common 1.4.2-5 Common UNIX Printing System(tm) -
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii ghostscript 8.70~dfsg-2+b1 The GPL Ghostscript PostScript/PDF
ii libavahi-client3 0.6.25-2 Avahi client library
ii libavahi-common3 0.6.25-2 Avahi common library
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libcups2 1.4.2-5 Common UNIX Printing System(tm) -
ii libcupscgi1 1.4.2-5 Common UNIX Printing System(tm) -
ii libcupsdriver1 1.4.2-5 Common UNIX Printing System(tm) -
ii libcupsimage2 1.4.2-5 Common UNIX Printing System(tm) -
ii libcupsmime1 1.4.2-5 Common UNIX Printing System(tm) -
ii libcupsppdc1 1.4.2-5 Common UNIX Printing System(tm) -
ii libdbus-1-3 1.2.16-2 simple interprocess messaging syst
ii libgcc1 1:4.4.2-5 GCC support library
ii libgnutls26 2.8.5-2 the GNU TLS library - runtime libr
ii libgssapi-krb5-2 1.7+dfsg-3 MIT Kerberos runtime libraries - k
ii libijs-0.35 0.35-7 IJS raster image transport protoco
ii libkrb5-3 1.7+dfsg-3 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.17-2.1 OpenLDAP libraries
ii libpam0g 1.1.0-4 Pluggable Authentication Modules l
ii libpaper1 1.1.23+nmu1 library for handling paper charact
ii libpoppler5 0.12.2-2 PDF rendering library
ii libslp1 1.2.1-7.6 OpenSLP libraries
ii libstdc++6 4.4.2-5 The GNU Standard C++ Library v3
ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
ii perl-modules 5.10.1-8 Core Perl modules
ii poppler-utils 0.12.2-2 PDF utilitites (based on libpopple
ii procps 1:3.2.8-2 /proc file system utilities
ii ssl-cert 1.0.25 simple debconf wrapper for OpenSSL
ii ttf-freefont 20090104-5 Freefont Serif, Sans and Mono True
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
Versions of packages cups recommends:
ii cups-driver-gutenprint 5.2.4-1 printer drivers for CUPS
ii foomatic-filters 4.0-20090509-1 OpenPrinting printer support - fil
ii ghostscript-cups 8.70~dfsg-2+b1 The GPL Ghostscript PostScript/PDF
Versions of packages cups suggests:
ii cups-bsd 1.4.2-5 Common UNIX Printing System(tm) -
pn cups-pdf <none> (no description available)
ii cups-ppdc 1.4.2-5 Common UNIX Printing System(tm) -
ii foomatic-db 20090616-1 OpenPrinting printer support - dat
ii foomatic-db-engine 4.0-20090509-2 OpenPrinting printer support - pro
ii hplip 3.9.10-4 HP Linux Printing and Imaging Syst
ii smbclient 2:3.4.3-1 command-line SMB/CIFS clients for
ii udev 149-1 /dev/ and hotplug management daemo
pn xpdf-korean | xpdf-japane <none> (no description available)
-- debconf information:
cupsys/raw-print: true
cupsys/backend: ipp, lpd, parallel, scsi, serial, socket, usb, snmp, dnssd
--- End Message ---