[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#344563: nscd still crashing at version 2.3.6.ds1-13



On Thu, Mar 22, 2007 at 11:30:41AM +0900, Jim Barber wrote:
> I have a system where the nscd daemon constantly crashes too.
> nscd, libc6, locales, etc is at  version 2.3.6.ds1-13
> 
> I've tried  commenting out the user and group caching settings in the 
> /etc/nscd.conf file hoping to avoid the crashes since I only need it to 
> cache host lookups.
> This made no difference.
> Nor does leaving the entries there and just changing the value of 
> 'enable-cache' for the passwd and group entries to 'no'.
> 
> Starting nscd with the -d parameter it starts and runs for about 20 
> seconds before failing with:
> 
> 	nscd: cache.c:335: prune_cache: Assertion `dh->usable' failed.
> 	Aborted
> 
> This error usually happens after entries like:
> 
> 	27822: Reloading "250.186.184.59.sbl-xbl.spamhaus.org." in hosts cache!
> 	27822: Reloading "164.152.206.86.sbl-xbl.spamhaus.org." in hosts cache!
> 
> Clearing the databases like so:
> 
> 	nscd -i hosts
> 	nscd -i passwd
> 	nscd -i group
> Doesn't seem to help either.
> 
> I then got rid of the following files by moving them elsewhere:
> 
> 	/var/db/nscd/group
> 	/var/db/nscd/hosts
> 	/var/db/nscd/passwd
> 
> This seems to at least get things working for a while, but eventually the 
> nscd daemon falls over again.
> 

  A backtrace would really be of help. Please install the -dbg package
for the libc, and try to have one so that we can know which codepath
generates the issue.

  Also be warned that hosts caching in nscd sucks, it's not really built
to deal with DNS caching that other tools like dnsmasq or even bind
really deal with better.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgp7RgMtm57vh.pgp
Description: PGP signature


Reply to: