herb at sgi.com
Thu May 17 18:17:45 GMT 2001
I have gotten a couple of reports of people getting the following
message on their console.
check_log_size: open of debug file /usr/samba/var/log.smbd failed -
So far I have narrowed it down to the following conditions.
Log level = 0 (default)
max log size = 50 (or some other number other than zero)
an old log.smbd exists that is larger that the max log size
Somehow an error message is trying to be printed without an open
debug file (dbf is NULL). The only call to check_log_size directly
from smbd is "protected" by an if (need_to_check_log_size()) which
returns false if dbf is NULL. The other call to check_log_size is
in lib/debug.c in the function Debug1 which is used by all the
debug messages. This is not "protected".
I have not been able to reproduce this error myself to narrow down
the real problem. I don't want to just hide it by adding the
if (need_to_check_log_size()) in debug.c (actually all it needs is
a test for if (dbf) ) so I'm looking for anyone else that may have
seen this problem to see if we can come up with a reproducable case.
More information about the samba-technical