Hi !

I enabled a greater debug level. It seems that cups try to write to a
client while the connection is already closed.

Here the log before the crash :

--------------------
Returning IPP successful-ok for Get-Job-Attributes 
(ipp://fichdc:631/printers/AL-C3800_cdi) from 172.16.1.23
cupsdProcessIPPRequest: ippLength(response)=352
cupsdAddSelect(fd=24, read_cb=0x7f8860956d60, write_cb=0x7f8860956720, 
data=0x7f8861d6c8f0)
select_timeout(0): 26 seconds to write dirty config/state files
cupsdReadClient(con=0x7f8861d6c8f0(24)) con->http.error=0 con->http.used=0, 
con->http.state=7 con->data_encoding=HTTP_ENCODE_LENGTH, 
con->data_remaining=352, con->file=-1
cupsdReadClient: 24 Closing on EOF
cupsdCloseClient: 24
cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
cupsdRemoveSelect(fd=24)
cupsdWriteClient(con=0x7f8861d6c8f0(1642895136)) response=(nil)(-1), file=-1 
pipe_pid=0 state=0
cupsdWriteClient: 1587435144 Closing on unknown HTTP state 1641466080
--------------------

First cups open the client for reading on file descriptor 24 :

--------------------
cupsdAddSelect(fd=24 ...
select_timeout(0): 26 seconds...
--------------------

Then Cups read from client (why ?) on fd=24 :

--------------------
cupsdReadClient(con=0x7f8861d6c8f0(24) ....
cupsdReadClient: 24 Closing on EOF
--------------------

Finally cups close the connection :

--------------------
cupsdCloseClient: 24
cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
cupsdRemoveSelect(fd=24)
--------------------

But just after cups try to write again on the same connection
con=0x7f8861d6c8f0 where all the structure is nil !

--------------------
cupsdWriteClient(con=0x7f8861d6c8f0(1642895136)) response=(nil)(-1), file=-1 
pipe_pid=0 state=0
cupsdWriteClient: 1587435144 Closing on unknown HTTP state 1641466080
--------------------

Everything in less than 1 second.

Difficult to understand for me what cups trying to do...

Baptiste.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/512220

Title:
  cupsd crash "Closing on unknown HTTP state 0"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/512220/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to