[Pkg-cups-devel] Bug#635096: cups-bsd: printers are no longer visible

Vincent Lefevre vincent at vinc17.net
Fri Jul 29 16:29:20 UTC 2011


reassign 635096 libcups2
retitle 635096 libcups2: printers are no longer visible with HTTP
thanks

On 2011-07-29 18:05:23 +0200, Vincent Lefevre wrote:
> On 2011-07-22 17:44:56 +0200, Vincent Lefevre wrote:
> > After upgrading my machine (cups* packages were upgraded from
> > 1.4.6-11+b1 to 1.4.7-1), I get the following error:
> > 
> > ypig:~> lpq -Plip-multi-3
> > lpq: Unknown destination "lip-multi-3"!
> > 
> > though the printer exists and is even visible by Iceweasel on
> > the same machine.
> 
> I've just reverted to 1.4.6, and lpq is working again.
> So, this is really a regression.

The bug is actually in libcups2, as if I upgrade the other packages
to 1.4.7-1, there are no problems, and the bug starts to appear
when I upgrade libcups2 to 1.4.7-1.

A strace comparison of "lpq" shows:

With libcups2 1.4.6-11+b1 (working):

[...]
8954  sendto(5, "POST / HTTP/1.1\r\nContent-Length:"..., 157, 0, NULL, 0) = 157
8954  sendto(5, "\1\1@\2\0\0\0\1\1G\0\22attributes-charset\0\5"..., 636, 0, NULL, 0) = 636
8954  poll([{fd=5, events=POLLIN}], 1, 1000) = 1 ([{fd=5, revents=POLLIN|POLLERR|POLLHUP}])
8954  recvfrom(5, "HTTP/1.1 426 Upgrade Required\r\nD"..., 2048, 0, NULL, NULL) = 794
8954  close(5)                          = 0
8954  socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
8954  setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
8954  setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
8954  fcntl(5, F_SETFD, FD_CLOEXEC)     = 0
8954  connect(5, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("140.77.14.157")}, 16) = 0
8954  sendto(5, "OPTIONS * HTTP/1.1\r\nConnection: "..., 141, 0, NULL, 0) = 141
8954  recvfrom(5, "HTTP/1.1 101 Switching Protocols"..., 2048, 0, NULL, NULL) = 231
[...]

With libcups2 1.4.7-1 (broken):

[...]
11411 sendto(5, "POST / HTTP/1.1\r\nContent-Length:"..., 157, 0, NULL, 0) = 157
11411 sendto(5, "\1\1@\2\0\0\0\1\1G\0\22attributes-charset\0\5"..., 636, 0, NULL, 0) = 636
11411 poll([{fd=5, events=POLLIN}], 1, 1000) = 1 ([{fd=5, revents=POLLIN|POLLERR|POLLHUP}])
11411 recvfrom(5, "HTTP/1.1 426 Upgrade Required\r\nD"..., 2048, 0, NULL, NULL) = 794
11411 close(5)                          = 0
11411 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
11411 setsockopt(5, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
11411 setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0
11411 fcntl(5, F_SETFD, FD_CLOEXEC)     = 0
11411 connect(5, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("140.77.14.157")}, 16) = 0
11411 sendto(5, "OPTIONS * HTTP/1.1\r\nConnection: "..., 141, 0, NULL, 0) = 141
11411 close(5)                          = 0
11411 write(2, "lpq: error - no default destinat"..., 47) = 47
[...]

Note: I already had problems in the past; see bug 588150

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588150

(now fixed). I don't think there's a relation, but just in case...

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)





More information about the Pkg-cups-devel mailing list