[cups.bugs] [HIGH] STR #2639: Cups scheduler crashing when using lpadmin -p PRINTERNAME -o port-monitor=none on RAW queue

Heule Daniel hda at sfsservices.biz
Thu Dec 20 00:47:17 PST 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

hello cups programmers,

first thx for the nice Feature of a Port Monitor.

I have writen my own port Monitor called pkpgcounter.
If i write it directli to printers.conf all is working fine.

But if i try to enable it or disable it with the command

lpadmin -p P012 -o port-monitor=none

or 

lpadmin -p P012 -o port-monitor=pkpgcounter

The cups process is died.

As a sideinfo i have only raw queues, and the filter is 
counting pages using the python pkpgcounter on the raw streams,
(please don't say portmonitor's aren't supportet on raw queues,
i need this feature! and it's working if i enable it on printers.conf)
but it doesnt matter if the command is called whit my own filter
or with none or one of the standard filter.

If i try to enalbe it on a normal queue (with ppd file), 
the lpadmin the comment is 
lpadmin: Bad port-monitor "pkpgcounter"!

Here the output from my command:
lpadmin -p P012 -o port-monitor=none
lpadmin: Unknown


Here the relevant log cups/error_log with loglevel debug:
D [20/Dec/2007:09:36:22 +0100] [Job 367314] Loading from cache...
D [20/Dec/2007:09:36:22 +0100] [Job 367315] Loading from cache...
D [20/Dec/2007:09:36:22 +0100] [Job 367316] Loading from cache...
I [20/Dec/2007:09:36:22 +0100] Full reload complete.
I [20/Dec/2007:09:36:22 +0100] Cleaning out old temporary files in
"/var/spool/cups/tmp"...
I [20/Dec/2007:09:36:22 +0100] Listening to 0.0.0.0:631 on fd 3...
E [20/Dec/2007:09:36:22 +0100] Unable to open listen socket for address
:::631 - Address family not supported by protocol.
I [20/Dec/2007:09:36:22 +0100] Listening to /var/run/cups/cups.sock on fd
4...
I [20/Dec/2007:09:36:22 +0100] Resuming new connection processing...
D [20/Dec/2007:09:36:31 +0100] cupsdAcceptClient: 7 from localhost
(Domain)
D [20/Dec/2007:09:36:31 +0100] cupsdReadClient: 7 POST / HTTP/1.1
D [20/Dec/2007:09:36:31 +0100] cupsdAuthorize: No authentication data
provided.
D [20/Dec/2007:09:36:31 +0100] Get-Printer-Attributes
ipp://localhost/printers/P012
D [20/Dec/2007:09:36:31 +0100] cupsdProcessIPPRequest: 7 status_code=0
(successful-ok)
D [20/Dec/2007:09:36:31 +0100] cupsdAcceptClient: 9 from localhost
(Domain)
D [20/Dec/2007:09:36:31 +0100] cupsdReadClient: 9 POST / HTTP/1.1
D [20/Dec/2007:09:36:31 +0100] cupsdAuthorize: No authentication data
provided.
D [20/Dec/2007:09:36:31 +0100] Get-Printer-Attributes
ipp://localhost/printers/P012
D [20/Dec/2007:09:36:31 +0100] cupsdProcessIPPRequest: 9 status_code=0
(successful-ok)
D [20/Dec/2007:09:36:31 +0100] cupsdReadClient: 9 GET /printers/P012.ppd
HTTP/1.1
D [20/Dec/2007:09:36:31 +0100] cupsdAuthorize: No authentication data
provided.
D [20/Dec/2007:09:36:31 +0100] cupsdSendError: 9 code=404 (Not Found)
D [20/Dec/2007:09:36:31 +0100] cupsdCloseClient: 9
D [20/Dec/2007:09:36:31 +0100] cupsdReadClient: 7 POST /admin/ HTTP/1.1
D [20/Dec/2007:09:36:31 +0100] cupsdAuthorize: No authentication data
provided.
D [20/Dec/2007:09:36:31 +0100] CUPS-Add-Modify-Printer
ipp://localhost/printers/P012
D [20/Dec/2007:09:36:31 +0100] cupsdIsAuthorized: username=""
E [20/Dec/2007:09:36:31 +0100] CUPS-Add-Modify-Printer: Unauthorized
D [20/Dec/2007:09:36:31 +0100] cupsdSendError: 7 code=401 (Unauthorized)
D [20/Dec/2007:09:36:31 +0100] cupsdSendHeader: WWW-Authenticate: Basic
realm="CUPS"
D [20/Dec/2007:09:36:31 +0100] cupsdCloseClient: 7
D [20/Dec/2007:09:36:31 +0100] cupsdAcceptClient: 7 from localhost
(Domain)
D [20/Dec/2007:09:36:31 +0100] cupsdReadClient: 7 POST /admin/ HTTP/1.1
D [20/Dec/2007:09:36:31 +0100] cupsdAuthorize: Authorized as root using
Local
D [20/Dec/2007:09:36:31 +0100] CUPS-Add-Modify-Printer
ipp://localhost/printers/P012
D [20/Dec/2007:09:36:31 +0100] cupsdIsAuthorized: username="root"

Link: http://www.cups.org/str.php?L2639
Version: 1.3.5





More information about the cups-devel mailing list