Debian update and/or New Kernel segfaults cupsd

Other questions
Post Reply
nightbug
Posts: 6
Joined: Wed Sep 10, 2008 3:54 am

Debian update and/or New Kernel segfaults cupsd

Post by nightbug »

I did both an apt-get update/upgrade on my debian system, and also built a custom 2.6.26.3 kernel. Everything seems fine except I can't print any longer with Turboprint. I had solved this problem once before by changing /dev/lp0 to mode 777 (suggestion from Zedonet) , and restarting cups. This time, when I attempt the same solution, cups crashes:

Sep 9 23:18:30 lightning kernel: lp0: using parport0 (interrupt-driven).
Sep 9 23:18:31 lightning kernel: ppdev: user-space parallel port driver
Sep 9 23:38:21 lightning -- MARK --
Sep 9 23:58:21 lightning -- MARK --
Sep 10 00:02:02 lightning kernel: cupsd[2920]: segfault at 3d5132627664 ip 7f3c7b8a3c97 sp 7fff84e0d4b0 error 4 in libcups.so.2[7f3c7b889000+34000]

My printer is an ip6700D which appears to be properly detected on its usb port:

Sep 9 23:18:21 lightning kernel: scsi 2:0:0:0: Direct-Access Canon iP6700

Version: Turboprint 19.6-3
zedonet
Site Admin
Posts: 2156
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

Hello nightbug,

as your printer is connected via USB, why do you change access rights of the parallel port "/dev/lp0"?
The USB port would be either "/dev/usb/lp0" or "/dev/usblp0".

Please check your printer connection in the TurboPrint Control Center (or TurboPrint Setup in version 1). It is listed as "URI" and should look like "usb://..." or "tpu://...".
When setting up your printer with TurboPrint, choose the connection with your printer name and "USB" or better "TP-USB" (TurboPrint 2).
nightbug
Posts: 6
Joined: Wed Sep 10, 2008 3:54 am

Post by nightbug »

I cured the seg fault by doing an apt-get install cupsys. Although, I always thought regular apt-get update/upgrade would keep me up-to-date. However, this, or my move to kernel 2.6.26.3, appears to have changed the /dev usb layout. There is no /dev/usb/ lp0 or /dev/usblp0 any longer. In fact, when Turboprint 1 is selected for local port, it only provides /dev/lp0. I have found the following in /dev:

dev/disk/by-id/usb-Canon_iP6700DStorage_130D8B-0:0 --> sdb
dev/.udev/names/disk\x2fby-id\x2fusb-Canon_iP6700DStorage_130D8B-0:0

I created the uri usb:/dev/sdb for the printer, with no success.

Again, my version 1.96-3 of Turboprint is not capable of finding out the printer is usb in setup. Does this mean that my distribution/kernel upgrades have made my system incompatible with version 1?
zedonet
Site Admin
Posts: 2156
Joined: Fri Oct 06, 2006 8:02 am

Post by zedonet »

For printing to a USB printer using the CUPS printing system you need a working usblp driver. Then the device /dev/usblp0 will be provided and the USB backend can send data to your printer.
This issue is not a special TurboPrint problem - it will not work with standard CUPS drivers either on your system.
Post Reply