cups-browsed hangs at 100% CPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups-filters (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 13.04
cups: 1.6.2-1ubuntu5
I'm trying to connect to a remove cups server as a client. In /etc/cups/
ServerName myserver.foo:631 (also tried without :631)
cups-browsed then runs at 100% CPU. It has been killed using the -9 option. Printing to the remote server does not work (it used to work in precise).
I've straced the process and it goes into an infinte loop here (IP address of server replaced with 111.111.111.111):
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
fcntl(7, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(7, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(7, {sa_family=AF_INET, sin_port=
GRESS (Operation now in progress)
fcntl(7, F_SETFL, O_RDWR) = 0
poll([{fd=7, events=
getpeername(7, {sa_family=AF_INET, sin_port=
uname({sys="Linux", node="lap75107", ...}) = 0
sendto(7, "POST /admin/ HTTP/1.
sendto(7, "\2\0@\
poll([{fd=7, events=POLLIN}], 1, 1000) = 1 ([{fd=7, revents=
poll([{fd=7, events=POLLIN}], 1, 60000) = 1 ([{fd=7, revents=
recvfrom(7, "HTTP/1.1 403 Forbidden\r\nDate: Th"..., 2048, 0, NULL, NULL) = 79
poll([{fd=7, events=POLLIN}], 1, 60000) = 1 ([{fd=7, revents=
recvfrom(7, 0x1ca74cc, 2048, 0, 0, 0) = -1 ECONNRESET (Connection reset by peer)
poll([{fd=7, events=POLLIN}], 1, 60000) = 1 ([{fd=7, revents=
recvfrom(7, "", 2048, 0, NULL, NULL) = 0
poll([{fd=7, events=POLLIN}], 1, 60000) = 1 ([{fd=7, revents=
recvfrom(7, "", 2048, 0, NULL, NULL) = 0
poll([{fd=7, events=POLLIN}], 1, 60000) = 1 ([{fd=7, revents=
recvfrom(7, "", 2048, 0, NULL, NULL) = 0
...
I tried editing cups-browsed.conf. I changed the protocol to cups from dnssd, which gave the same problem. Changing to n one stopped the hang, but then I couldn't access the remote server.
I cannot reproduce the problem.
Can you run the commands
sudo stop cups-browsed cups-browsed --debug
sudo /usr/sbin/
Can you post the screen output here? Can you also strace this command and post the strace output here?