Bug 191217 - cups stop sending browse lists after reload
cups stop sending browse lists after reload
Product: Fedora
Classification: Fedora
Component: cups (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
Blocks: FC6Target
  Show dependency treegraph
Reported: 2006-05-09 16:02 EDT by Orion Poplawski
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 1.2.1-1.2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-05-23 18:13:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
cupsd.conf (22.46 KB, text/plain)
2006-05-15 15:59 EDT, Orion Poplawski
no flags Details

  None (edit)
Description Orion Poplawski 2006-05-09 16:02:17 EDT
Description of problem:

After a reload of the cups server, it stops sending browse lists.  See the
following in the error log:

I [09/May/2006:14:01:19 -0600] Full reload is required.
I [09/May/2006:14:01:19 -0600] Saving job cache file "/var/cache/cups/job.cache"...
E [09/May/2006:14:01:19 -0600] cupsdSendBrowseList: sendto failed for browser 1
- Bad file descriptor.
I [09/May/2006:14:01:19 -0600] Loaded MIME database from '/etc/cups': 34 types,
38 filters...
I [09/May/2006:14:01:19 -0600] Loading job cache file "/var/cache/cups/job.cache"...
I [09/May/2006:14:01:19 -0600] Full reload complete.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. make change to cupsd.conf
2. service cups reload
Comment 1 Tim Waugh 2006-05-10 04:56:22 EDT
Confirmed on cups-1.2.0-1.1.
Comment 2 Tim Waugh 2006-05-10 05:23:34 EDT
Reported upstream:

Comment 3 Tim Waugh 2006-05-15 12:33:48 EDT
Actually I can't get it to happen any more. :-/
Comment 4 Orion Poplawski 2006-05-15 13:31:07 EDT
Still completely reproducible here.  Still running cups-1.2.0-1.1. 
Comment 5 Orion Poplawski 2006-05-15 15:59:07 EDT
Created attachment 129112 [details]

This is the cupsd.conf we use.	It is a little non-standard (sends browse
queries but does not accept any).
Comment 6 Orion Poplawski 2006-05-15 16:36:13 EDT
Watching cups during reload:

- main.c:631 -> cupsdStopServer -> cupsdStopBrowsing closes the browe socket and
sets BrowseSocket to -1.

- Here:
#0  0x00839ca3 in read_configuration (fp=0x9c614d8) at conf.c:2285
#1  0x0083c2f9 in cupsdReadConfiguration () at conf.c:456
#2  0x00843b6b in main (argc=1, argv=0xbfba49c4) at main.c:637

NumBrowsers gets set to 1

- Here:
#0  send_cups_browse (p=0x8e63fd0) at dirsvc.c:2608
#1  0x007d6d84 in cupsdDeletePrinter (p=0x8e63fd0, update=0) at printers.c:681
#2  0x007d6e7b in cupsdDeleteAllPrinters () at printers.c:571
#3  0x007b2c3a in cupsdReadConfiguration () at conf.c:938
#4  0x007b9b6b in main (argc=1, argv=0xbf9a6b64) at main.c:637

  NumBrowsers gets set to 0

- main.c:668 -> cupsdStartServer -> cupsdStartBrowsing sets BrowseSocket to 2,

So, NumBrowsers gets left at 0 and no browsing.

- NumBrowsers gets set by read_configuration (conf.c:1998) 
Comment 7 Tim Waugh 2006-05-21 05:40:05 EDT
cups-1.2.0-1.3 (currently in updates-testing) contains the fix for this.
Comment 8 Orion Poplawski 2006-05-22 15:46:29 EDT
Confirmed it fixes the problem for me.  Thanks!
Comment 9 Fedora Update System 2006-05-23 14:39:56 EDT
Fixed in 1.2.1-1.2.

Note You need to log in before you can comment on or make changes to this bug.