[Pkg-cups-devel] Bug#490080: cupsys: [arch armv5tel]: pstoraster crashes on signal 11
tom
tom at thomas-harding.name
Wed Jul 9 17:39:04 UTC 2008
Package: cupsys
Version: 1.2.7-4etch3
Severity: important
*Important*
I post this patch against Cupsys, while I do not handle
the complexity of print process.
My guess is that the bug comes from gs-esp (up-to-date, too).
ii gs-esp 8.15.3.dfsg.1-1etch1 The Ghostscript PostScript interpreter - ESP version
This bug do not affects my i386 box, but only my NSLU2 one (arch armv5tel).
Unfortunately, the last will be my media server, including printing...
*SO*
while I try to print (eg: test page from cups http frontend),
I got nothing.
/var/log/cups/error_log:
E [09/Jul/2008:18:06:08 +0200] PID 3128 (/usr/lib/cups/filter/pstoraster) crashed on signal 11!
printserver:/# /usr/lib/cups/backend/usb
direct usb://EPSON/Stylus%20Photo%20EX "EPSON Stylus Photo EX" "EPSON Stylus Photo EX USB #1"
"MFG:EPSON;CMD:ESCPL2,BDC;MDL:Stylus Photo EX;CLS:PRINTER;�
However, I tried several things:
printserver:/# ink -p usb
[...]
EPSON Stylus Photo EX
Black: 98%
Cyan: 98%
Magenta: 95%
Yellow: 97%
Light Cyan: 97%
Light Magenta: 98%
tom at printserver:~$ echo test > /dev/usb/lp0
-> prints (while tom belongs /also/ to "lp" group
(/etc/foomatic/direct/epson.ppd has
directive
*FoomaticRIPPostPipe: "| cat"
$ strace foomatic-rip -P epson /etc/hosts > /dev/usb/lp0strace foomatic-rip -P epson /etc/hosts >
/dev/usb/lp0
=> WORKS!
tom at printserver:~$ file hosts.ps
hosts.ps: PostScript document text conforming at level 3.0
tom at printserver:~$ cat hosts.ps | foomatic-rip -P epson > /dev/usb/lp0
=> prints the raw postscript file...
$ /usr/bin/gs-gpl -sDEVICE=stcolor -sOutputFile=hosts.epson hosts.ps
$ cat hosts.epson > /dev/usb/lp0
=> pretty print (in landscape, with header and frame) my /etc/hosts
tom at printserver:~$ /usr/bin/gs-esp -sDEVICE=stcolor -sOutputFile=hosts.epson hosts.ps
Segmentation fault
tom at printserver:~$ /usr/bin/gs-esp
Segmentation fault
So, I thing the error might come from here, while I'm unsure.
tom at printserver:~$ strace -o esptrace /usr/bin/gs-esp
tom at printserver:~$ head esptrace
execve("/usr/bin/gs-esp", ["/usr/bin/gs-esp"], [/* 15 vars */]) = 0
uname({sys="Linux", node="printserver", ...}) = 0
brk(0) = 0x56d000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13674, ...}) = 0
mmap2(NULL, 13674, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3) = 0
[...]
tom at printserver:~$ tail esptrace
stat64("/etc/papersize", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0
stat64("/etc/papersize", {st_mode=S_IFREG|0644, st_size=3, ...}) = 0
open("/etc/papersize", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
read(3, "a4\n", 4096) = 3
close(3) = 0
munmap(0x40016000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
$: ltrace -o espltrace /usr/bin/gs-esp
[...]
Error: call nesting too deep!
Error: call nesting too deep!
Error: call nesting too deep!
Error: call nesting too deep!
Error: call nesting too deep!
tom at printserver:~$ tail espltrace
unexpected breakpoint at 0x368f4
pthread_mutex_lock(0x403a9970, 0x403a829c, 1, 2876, 0x403a9528 <unfinished ...>
unexpected breakpoint at 0x368f4
pthread_mutex_lock(0x403a9970, 0x403a829c, 1, 2876, 0x403a9528 <unfinished ...>
unexpected breakpoint at 0x368f4
pthread_mutex_lock(0x403a9970, 0x403a829c, 1, 2876, 0x403a9528 <unfinished ...>
unexpected breakpoint at 0x368f4
pthread_mutex_lock(0x403a9970, 0x403a829c, 1, 2876, 0x403a9528 <unfinished ...>
--- SIGINT (Interrupt) ---
+++ killed by SIGINT +++
I can send the completes strace and ltrace on demand.
Regards,
Thomas
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: arm (armv5tel)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-ixp4xx
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages cupsys depends on:
ii adduser 3.102 Add and remove users and groups
ii cupsys-common 1.2.7-4etch3 Common UNIX Printing System(tm) -
ii debconf [debconf-2. 1.5.11etch1 Debian configuration management sy
ii gs-esp 8.15.3.dfsg.1-1etch1 The Ghostscript PostScript interpr
ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii libcupsimage2 1.2.7-4etch3 Common UNIX Printing System(tm) -
ii libcupsys2 1.2.7-4etch3 Common UNIX Printing System(tm) -
ii libdbus-1-3 1.0.2-1 simple interprocess messaging syst
ii libgnutls13 1.4.4-3+etch1 the GNU TLS library - runtime libr
ii libldap2 2.1.30-13.3 OpenLDAP libraries
ii libpam0g 0.79-5 Pluggable Authentication Modules l
ii libpaper1 1.1.21 Library for handling paper charact
ii libslp1 1.2.1-6.2 OpenSLP libraries
ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init scrip
ii patch 2.5.9-4 Apply a diff file to an original
ii perl-modules 5.8.8-7etch3 Core Perl modules
ii poppler-utils [xpdf 0.4.5-5.1etch2 PDF utilitites (based on libpopple
ii procps 1:3.2.7-3 /proc file system utilities
ii zlib1g 1:1.2.3-13 compression library - runtime
Versions of packages cupsys recommends:
ii cupsys-client 1.2.7-4etch3 Common UNIX Printing System(tm) -
ii foomatic-filters 3.0.2-20061031-1.2 linuxprinting.org printer support
ii smbclient 3.0.24-6etch10 a LanManager-like simple client fo
-- debconf information:
cupsys/raw-print: true
cupsys/backend: ipp, lpd, parallel, socket, usb
More information about the Pkg-cups-devel
mailing list