Bugzilla – Bug 417865
nscd crashes with hosts cache enabled
Last modified: 2008-11-19 19:24:29 UTC
Created attachment 233744 [details] original nscd.conf, only log changed, crash occurs with this configuration file With the hosts cache enabled, nscd crashes regularely during boot time on my system. This bug seems to be similar to http://www.mail-archive.com/debian-bugs-closed%40lists.debian.org/msg121181.html, but there is no persistant hosts cache, and so removing the hosts cache is not possible. As a workaround it is possible to disable the hosts cache in /etc/nscd.conf. With debug level 5 the last message in nscd.log before the crash is 6592: remove GETAI entry "mail" This operation seems to cause the crash. I attach my nscd.conf and nscd.log to this bug.
Created attachment 233745 [details] nscd.log, please watch the last line, which always occurs before the crash
Created attachment 233746 [details] patch for nscd.conf, which disables hosts caching This patch can be published through the openSuSE update service, to prevent nscd crashes on other user's computers.
It is even worse. nscd crashes still, with disabled hosts caching. It is just not as often as with host caching. Always cleanup operations are the last recorded actions before the crash. It seems to be a general bug in the cache container cleanup. Crashes occure regularly after starting up my system. Then many passwd entries in the persistent cache get outdated, and many cleanup operations occur. I try now to disable persistent caching in nscd.conf as another workaround.
This bug is a show stopper in LDAP environments, as the resolver library routines hang in these environment, when nscd is not running. Because off this I cannot start VMware workstation as a LDAP user while nscd is not running. Right now I watch out for nscd to be running before I try to use VMware. But a normal user (and there will be lots off them in typical LDAP environments) will not be able to do this or even to start nscd.
*** This bug has been marked as a duplicate of bug 387202 ***