gs segfault trying to print test page on Epson printer

Bug #348006 reported by Robert Voje
46
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ghostscript (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: ghostscript

When trying to print a test page (or print anything), gs segfaults whith the following error:

bob kernel: [ 1239.764389] gs[5280]: segfault at 0 ip 00000000 sp bfe9c29c error 4 in gs[8048000+1000]

I tried to shutdown the printer, remove the printer driver, reboot, and turn on the printer again. The printer installed ok:

Mar 24 17:31:28 bob kernel: [ 993.660024] usb 1-1: new high speed USB device using ehci_hcd and address 4
Mar 24 17:31:28 bob kernel: [ 993.794826] usb 1-1: configuration #1 chosen from 1 choice
Mar 24 17:31:28 bob kernel: [ 993.843378] Initializing USB Mass Storage driver...
Mar 24 17:31:28 bob kernel: [ 993.843536] scsi6 : SCSI emulation for USB Mass Storage devices
Mar 24 17:31:28 bob kernel: [ 993.843626] usb-storage: device found at 4
Mar 24 17:31:28 bob kernel: [ 993.843629] usb-storage: waiting for device to settle before scanning
Mar 24 17:31:28 bob kernel: [ 993.843634] usbcore: registered new interface driver usb-storage
Mar 24 17:31:28 bob kernel: [ 993.843637] USB Mass Storage support registered.
Mar 24 17:31:28 bob kernel: [ 993.856179] usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0803
Mar 24 17:31:28 bob kernel: [ 993.856196] usbcore: registered new interface driver usblp
Mar 24 17:31:28 bob hal_lpadmin: Running hal_lpadmin
Mar 24 17:31:29 bob hal_lpadmin: hal_lpadmin triggered by low-level USB device
Mar 24 17:31:30 bob hal_lpadmin: Getting device ID from the usblp HAL entry ...
Mar 24 17:31:30 bob hal_lpadmin: Device ID for /dev/usb/lp0: MFG:EPSON;MDL:Stylus Photo R300;DES:EPSON Stylus Photo R300;CMD:ESCPL2,BDC,D4;
Mar 24 17:31:30 bob hal_lpadmin: Written device ID into HAL database entry: MFG:EPSON;MDL:Stylus Photo R300;DES:EPSON Stylus Photo R300;CMD:ESCPL2,BDC,D4;
Mar 24 17:31:30 bob hal_lpadmin: add
Mar 24 17:31:30 bob hal_lpadmin: Printer reported by HAL: EPSON Stylus Photo R300 L14P20502071215330
Mar 24 17:31:30 bob hal_lpadmin: URIs: ['usb://EPSON/Stylus%20Photo%20R300?serial=L14P20502071215330', 'hal:///org/freedesktop/Hal/devices/usb_device_4b8_803_L14P20502071215330_if1_printer_noserial']
Mar 24 17:31:30 bob hal_lpadmin: HPLIP Fax URIs: None
Mar 24 17:31:30 bob hal_lpadmin: Calling GetReady
Mar 24 17:31:33 bob kernel: [ 998.840249] usb-storage: device scan complete
Mar 24 17:31:33 bob kernel: [ 998.842335] scsi 6:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
Mar 24 17:31:33 bob kernel: [ 998.852158] sd 6:0:0:0: [sde] Attached SCSI removable disk
Mar 24 17:31:33 bob kernel: [ 998.852334] sd 6:0:0:0: Attached scsi generic sg5 type 0
Mar 24 17:31:39 bob hal_lpadmin: Device ID: MFG:EPSON;MDL:Stylus Photo R300;DES:EPSON Stylus Photo R300;CMD:ESCPL2,BDC,D4; URI:usb://EPSON/Stylus%20Photo%20R300?serial=L14P20502071215330
Mar 24 17:31:40 bob hal_lpadmin: PPD: gutenprint.5.2://escp2-r300/expert; Status: 0
Mar 24 17:31:41 bob hal_lpadmin: Added printer Stylus-Photo-R300

But the same gs segfault error mentioned earlier occured on every attempt to print anything.
I'm running jaunty, fully patched from "de.archive.ubuntu.com" at the moment.

#lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04

#apt-cache policy gs
gs:
  Installed: 8.64.dfsg.1-0ubuntu3
  Candidate: 8.64.dfsg.1-0ubuntu3
  Version table:
 *** 8.64.dfsg.1-0ubuntu3 0
        500 http://de.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

ProblemType: Crash
Architecture: i386
CrashCounter: 1
CupsErrorLog:

Disassembly: 0x0:
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/gs
Lpstat: device for Stylus-Photo-R300: usb://EPSON/Stylus%20Photo%20R300
Lsusb:
 Bus 001 Device 002: ID 04b8:0803 Seiko Epson Corp. Printer (Composite Device)
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 003: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
 Bus 002 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: MSI MS-7250
Package: ghostscript 8.64.dfsg.1-0ubuntu3
Papersize: a4
PpdFiles: Stylus-Photo-R300: Epson Stylus Photo R300 - CUPS+Gutenprint v5.2.3
ProcCmdLine: root=UUID=ce68e00a-dcf0-47f4-8af6-87bf43ec3cce ro quiet splash
ProcCmdline: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -I/usr/share/cups/fonts -sMediaClass=Standard -sMediaType=Plain -r720x360 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=1 -dcupsRowFeed=5 -scupsPageSizeName=A4 -c -f -_
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_DK.UTF8
ProcVersionSignature: Ubuntu 2.6.28-11.37-generic
Signal: 11
SourcePackage: ghostscript
StacktraceTop:
 ?? ()
 gs_setcolortransfer_remap () from /usr/lib/libgs.so.8
 ?? () from /usr/lib/libgs.so.8
 ?? () from /usr/lib/libgs.so.8
 gs_interpret () from /usr/lib/libgs.so.8
Title: gs crashed with SIGSEGV in gs_setcolortransfer_remap()
UserGroups:

Revision history for this message
Robert Voje (robert-voje-dk) wrote :
Revision history for this message
Robert Voje (robert-voje-dk) wrote :
Download full text (4.5 KiB)

I updated Ubuntu with the latest unofficial patch on Till Kamppeter's site, and now it's 'kind of' working again, at least I get to print a test page...
But I had to remove the printer, and install it again manually, because the autoinstaller could'nt find a valid model name.
Here is my syslog from that session:

First, I deleted the printer, then powered it off, and then on. And here the log begins:

Mar 25 21:06:51 bob kernel: [ 9120.924020] usb 1-1: new high speed USB device using ehci_hcd and address 5
Mar 25 21:06:51 bob kernel: [ 9121.059221] usb 1-1: configuration #1 chosen from 1 choice
Mar 25 21:06:51 bob kernel: [ 9121.059686] scsi7 : SCSI emulation for USB Mass Storage devices
Mar 25 21:06:51 bob kernel: [ 9121.059844] usb-storage: device found at 5
Mar 25 21:06:51 bob kernel: [ 9121.059846] usb-storage: waiting for device to settle before scanning
Mar 25 21:06:51 bob hal_lpadmin: Running hal_lpadmin
Mar 25 21:06:52 bob hal_lpadmin: hal_lpadmin triggered by low-level USB device
Mar 25 21:06:52 bob hal_lpadmin: Polling device ID from the printer ...
Mar 25 21:06:56 bob kernel: [ 9126.061144] usblp0: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x04B8 pid 0x0803
Mar 25 21:06:56 bob kernel: [ 9126.067852] usb-storage: device scan complete
Mar 25 21:06:56 bob kernel: [ 9126.069502] scsi 7:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
Mar 25 21:06:56 bob kernel: [ 9126.076466] sd 7:0:0:0: [sde] Attached SCSI removable disk
Mar 25 21:06:56 bob kernel: [ 9126.076537] sd 7:0:0:0: Attached scsi generic sg5 type 0
Mar 25 21:06:56 bob hal_lpadmin: Written device ID into HAL database entry: MFG:Seiko Epson Corp.;MDL:Printer (Composite Device);DES:;CMD:;
Mar 25 21:06:56 bob hal_lpadmin: add
Mar 25 21:06:56 bob hal_lpadmin: Printer reported by HAL: Seiko Epson Corp. Printer (Composite Device) L14P20502071215330
Mar 25 21:06:56 bob hal_lpadmin: URIs: ['usb://Seiko%20Epson%20Corp./Printer%20(Composite%20Device)?serial=L14P20502071215330', 'hal:///org/freedesktop/Hal/devices/usb_device_4b8_803_L14P20502071215330_if1_printer_noserial']
Mar 25 21:06:56 bob hal_lpadmin: HPLIP Fax URIs: None
Mar 25 21:06:56 bob hal_lpadmin: Calling GetReady
Mar 25 21:06:56 bob hal_lpadmin: D-Bus method call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name com.redhat.NewPrinterNotification was not provided by any .service files
Mar 25 21:06:59 bob hal_lpadmin: Device ID: MFG:Seiko Epson Corp.;MDL:Printer (Composite Device);DES:;CMD:; URI:usb://Seiko%20Epson%20Corp./Printer%20(Composite%20Device)?serial=L14P20502071215330
Mar 25 21:07:00 bob hal_lpadmin: PPD: lsb/usr/cups-included/textonly.ppd; Status: 3
Mar 25 21:07:00 bob hal_lpadmin: Did not add printer with URI usb://Seiko%20Epson%20Corp./Printer%20(Composite%20Device)?serial=L14P20502071215330, no exact model fit found

Then I chose to add the printer manually, and the model name turned up in the list automatically (R300), so I chose it.
Here is the syslog after that:

Mar 25 21:07:54 bob kernel: [ 9184.079703] ppdev0: registered pardevice
Mar 25 21:07:54 bob hp: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 25 21:07:54 bob kernel: [ 9184.124162] ppdev0: unregis...

Read more...

visibility: private → public
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The update of my PPA is the fix for bug 333429, and your originally reported bug got also fixed by that and, according ti what you have posted, it seems to be the same bug. Therefore I mark this one as duplicate.

The not working automatic recognition and setup of your printer is a separate issue. Please report a new bug (package: hal-cups-utils) for it and especially attach the output of "lshal" to the new bug report.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.