[Pkg-cups-devel] Bug#381250: cupsd goes into a busy-loop
sacrificial-spam-address at horizon.com
sacrificial-spam-address at horizon.com
Thu Aug 3 01:59:40 UTC 2006
Package: cupsys
Version: 1.2.2-1
I was just heavily playing with the cups configuration, trying
(unsuccessfully) to get it to work with hplip and hp:/ URIs.
So I backed everything out, and now find that if I try to use the
"Modify Printer" option" on the web interface (https://server:631/), then
as soon as I "Continue" past the initial Name/Location/Description page,
cupsd stops responding and instead goes into a silly loop:
select(1024, [2 3 4 5 6 7 9 10 12 13 14], [12 13], NULL, {1, 0}) = 3 (in [12], out [12 13], left {1, 0})
time(NULL) = 1154568871
select(1024, [2 3 4 5 6 7 9 10 12 13 14], [12 13], NULL, {1, 0}) = 3 (in [12], out [12 13], left {1, 0})
time(NULL) = 1154568871
select(1024, [2 3 4 5 6 7 9 10 12 13 14], [12 13], NULL, {1, 0}) = 3 (in [12], out [12 13], left {1, 0})
time(NULL) = 1154568871
select(1024, [2 3 4 5 6 7 9 10 12 13 14], [12 13], NULL, {1, 0}) = 3 (in [12], out [12 13], left {1, 0})
time(NULL) = 1154568871
select(1024, [2 3 4 5 6 7 9 10 12 13 14], [12 13], NULL, {1, 0}) = 3 (in [12], out [12 13], left {1, 0})
time(NULL) = 1154568871
select(1024, [2 3 4 5 6 7 9 10 12 13 14], [12 13], NULL, {1, 0}) = 3 (in [12], out [12 13], left {1, 0})
time(NULL) = 1154568872
The printers.conf file is
# Printer configuration file for CUPS v1.2.2
# Written by cupsd on 2006-08-02 20:48
<Printer color>
Info HP LaserJet 4550
Location Lobby
DeviceURI socket://lj4550.horizon.com.:9100/
State Idle
StateTime 1154544318
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer hp>
Info HP LaserJet 4300dtnsl
Location Documentation group
DeviceURI socket://lj4300.horizon.com.:9100/
State Idle
StateTime 1154561738
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer lablp>
Info HP LaserJet 1320tn
Location Production Test
DeviceURI socket://lj1320.horizon.com.:9100
State Idle
StateTime 1154532821
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<DefaultPrinter lp>
Info HP LaserJet 4100
Location Lobby
DeviceURI parallel:/dev/lp0
State Idle
StateTime 1154547781
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer prodcolor>
Info HP3550 Color LaserJet
Location Production Test
DeviceURI socket://lj3550.horizon.com.:9100
State Idle
StateTime 1150936798
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<Printer tofile>
Info tofile
DeviceURI socket://localhost:511
State Stopped
StateMessage unable to open print file: Permission denied
StateTime 1150983154
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Which all looks fine to me. The last things that the server does before
going into this state are:
13059 open("/var/spool/cups/00000000", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0640) = 10
13059 fchmod(10, 0640) = 0
13059 fchown32(10, 0, 7) = 0
13059 fcntl64(10, F_GETFD) = 0
13059 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
13059 time(NULL) = 1154568636
13059 write(10, "OP=modify-printer&CURRENT_DEVICE_URI=socket%3A%2F%2Flj1320.horizon.com.%3A9100&CURRENT_MAKE_AND_MODEL=HP+LaserJet+1320+Foomatic%"..., 244) = 244
13059 fstat64(10, {st_mode=S_IFREG|0640, st_size=244, ...}) = 0
13059 close(10) = 0
13059 open("/var/spool/cups/00000000", O_RDONLY|O_LARGEFILE) = 10
13059 fcntl64(10, F_GETFD) = 0
13059 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
13059 pipe([11, 12]) = 0
13059 fcntl64(11, F_GETFD) = 0
13059 fcntl64(11, F_SETFD, FD_CLOEXEC) = 0
13059 fcntl64(12, F_GETFD) = 0
13059 fcntl64(12, F_SETFD, FD_CLOEXEC) = 0
13059 rt_sigprocmask(SIG_BLOCK, [TERM CHLD], [WINCH], 8) = 0
13059 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xa7e76928) = 13084
13059 rt_sigprocmask(SIG_SETMASK, [WINCH], NULL, 8) = 0
13059 unlink("/var/run/cups/certs/13084") = -1 ENOENT (No such file or directory)
13059 open("/var/run/cups/certs/13084", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0400) = 13
13059 fchmod(13, 0400) = 0
13059 fchown32(13, 7, 7) = 0
13059 write(13, "965DBFD6142F73A3D2BA260FB1227C80", 32) = 32
13059 close(13) = 0
13059 close(12) = 0
13059 close(10) = 0
13059 time(NULL) = 1154568636
13059 write(1, "I [02/Aug/2006:21:30:36 -0400] Started \"/usr/lib/cups/cgi-bin/admin.cgi\" (pid=13084)\n", 85) = 85
13059 fcntl64(11, F_GETFD) = 0x1 (flags FD_CLOEXEC)
13059 fcntl64(11, F_SETFD, FD_CLOEXEC) = 0
13059 open("/var/log/cups/access_log", O_RDWR|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 10
13059 fcntl64(10, F_GETFD) = 0
13059 fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
13059 fchown32(10, 0, 7) = 0
13059 fchmod(10, 0644) = 0
13059 write(10, "192.35.100.62 - root [02/Aug/2006:21:30:35 -0400] \"POST /admin HTTP/1.1\" 200 244 - -\n", 85) = 85
13059 select(1024, [2 3 4 5 6 7 9 11], [9], NULL, {1, 0}) = 1 (out [9], left {1, 0})
13059 time(NULL) = 1154568636
13059 time(NULL) = 1154568636
13059 time(NULL) = 1154568636
13059 select(1024, [2 3 4 5 6 7 9 11], [9], NULL, {1, 0}) = 1 (out [9], left {1, 0})
13059 time(NULL) = 1154568636
(Tens of thousands of identical trace lines snipped.)
More information about the Pkg-cups-devel
mailing list