Karmic: Cups + usblp + segfault in libc-2.10.1.so

Bug #461020 reported by phaidros
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cups (Ubuntu)
New
Undecided
Unassigned

Bug Description

I updated an AMD64 box to karmic recently. There was always a HP Laserjet 5P running on that machine (worked until the update).
It took me ages once to find out the correct device string (something like hal:/org/freedesktop/HAL/usb_no_serial_if0_serial (out of my head ..)), because the printer is connected via a usb2parallel adapter.

Following the Bugs regarding the move from hal to udev, I blacklisted usblp (which detected the printer somehow and created /dev/usblp0) as recommended. Afterwards neither lsusb nor lpinfo and all those tools detected the printer or the parallel/usb adapter anymore.

Now I once for testing loaded the usblp module again ang get these in kern.log:
[17980.160144] usb 3-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
[17980.164615] usb[5266]: segfault at 7fff82f30000 ip 00007f4f1b94fb54 sp 00007fff82f2c178 error 4 in libc-2.10.1.so[7f4f1b8cd000+166000]
[18020.080092] usb 3-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
[18020.084957] usb[5287]: segfault at 7fff374d4000 ip 00007f2a261b0b14 sp 00007fff374d1a28 error 4 in libc-2.10.1.so[7f2a2612e000+166000]
[18022.400169] usb 3-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
[18022.404968] usb[5290]: segfault at 7fff76ae3000 ip 00007f8029decb54 sp 00007fff76ae00f8 error 4 in libc-2.10.1.so[7f8029d6a000+166000]
[18797.620766] usb 3-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
[18797.625678] usb[6044]: segfault at 7fff7da28000 ip 00007f2c50828b54 sp 00007fff7da25a58 error 4 in libc-2.10.1.so[7f2c507a6000+166000]

Any idea to how to get that printer running again without hal backend?

affects: ubuntu → linux (Ubuntu)
Revision history for this message
Irishbandit (irishbandit) wrote :

https://bugs.launchpad.net/ubuntu/+source/cups/+bug/436495
Something in this bug report made me look at my config:
"Eventually after I figured out that /dev/usb/lp0 was missing, I loaded usblp, but even with that my printer is not detected anymore. So anyone who deleted the old configuration in the mean time to let it re-detect, will have a problem now. Something like "parallel:/dev/usb/lp0" is not obvious to people not configuring printers each and every day."

So I tried loading a printer from sysyem>administration>printing add printer pick lpt#1 followed all the steps then when it was done right click on my new printer and in the device uri: add parallel:/dev/usb/lp0

It worked, I can print again.

lpinfo -v
serial serial:/dev/ttyS0?baud=115200
network socket
direct scsi
network http
network lpd
network smb
network beh
network ipp
direct parallel:/dev/lp0
direct hp
direct hpfax

ls -l /dev/usb/lp*
crw-rw---- 1 root lp 180, 0 2009-10-26 16:46 /dev/usb/lp0

ls -l /dev/bus/usb/*/*
crw-rw---- 1 root lp 189, 898 2009-10-26 16:46 /dev/bus/usb/008/003

sudo lsusb
Bus 008 Device 003: ID 1a86:7584 Unknown

Its not being detected but it is printing.

affects: linux (Ubuntu) → eglibc (Ubuntu)
Revision history for this message
phaidros (phaidros) wrote :

OK, the hint with parallel:/dev/usb/lp0 and *not* blacklisting usblp helped.
printer is not detected, but prints :D

anways, everytime I plug it in the segfault in libc-2.10.1.so is logged. so,
printer is running, but still this is a bug.

Revision history for this message
Irishbandit (irishbandit) wrote :

Can confirm that there is still a segfault in libc-2.10.1.so.

Revision history for this message
Irishbandit (irishbandit) wrote :

With the updates of the last 2 weeks I have not seen this segfault since Nov-02-2009.

Revision history for this message
kirovs (kirovs) wrote :

My printer says not connected from time to time and surely I get the same thing:

[103899.257049] usb[29269]: segfault at 7fffebd86000 ip 00007f0905c8c324 sp 00007fffebd81b68 error 4 in libc-2.11.1.so[7f0905c05000+17a000]
[103901.159029] usb[29306]: segfault at 7fffe83fb000 ip 00007effb936e324 sp 00007fffe83f79a8 error 4 in libc-2.11.1.so[7effb92e7000+17a000]
[103903.085005] usb[29346]: segfault at 7fffaee3d000 ip 00007f206c2eb2e4 sp 00007fffaee39118 error 4 in libc-2.11.1.so[7f206c264000+17a000]
[103904.975988] usb[29384]: segfault at 7fffa0495000 ip 00007f3bf5317324 sp 00007fffa0491bc8 error 4 in libc-2.11.1.so[7f3bf5290000+17a000]
[103906.896002] usb[29422]: segfault at 7fff2dd93000 ip 00007f341e40c324 sp 00007fff2dd90828 error 4 in libc-2.11.1.so[7f341e385000+17a000]

 uname -a
Linux kavarna 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:46 UTC 2011 x86_64 GNU/Linux

affects: eglibc (Ubuntu) → cups (Ubuntu)
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.