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

Bug#368658: marked as done (nscd dies silently when nis stops, cache corruption?)



Your message dated Wed, 25 Apr 2007 22:52:25 +0200
with message-id <20070425205225.GA2106@.madism.org>
and subject line Bug#336310: nscd dies (Aborted) because of corrupted(?) persistent-cache file
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: nscd
Version: 2.3.6-9
Severity: normal

On a NIS client:

klecker:/var/log$ sudo /etc/init.d/nscd start
Starting Name Service Cache Daemon: nscd.
klecker:/var/log$ pgrep nscd
27324
klecker:/var/log$ sudo /etc/init.d/nis start 
Starting NIS services: ypbind 
klecker:/var/log$ pgrep bind                
27347
klecker:/var/log$ sudo /etc/init.d/nis stop 
klecker:/var/log$ pgrep nscd
klecker:/var/log$

Using debugging mode:

27601: handle_request: request received (Version = 2) from PID 27609
27601:  GETFDPW
27601: provide access to FD 4, for passwd
27601: handle_request: request received (Version = 2) from PID 27609
27601:  GETFDGR
27601: provide access to FD 6, for group
27601: Reloading "irc.oftc.net" in hosts cache!
nscd: hstcache.c:364: cache_addhst: Assertion `hst->h_addr_list[1] == ((void *)0)' failed.
Aborted

Removing cache files in /var/cache/nscd solves the issue. I think the
program is quite weak in respect with cache checking before their use.
That could explain randomly faults reported from time to time...
Any reason to not remove the cache files at startup for safety?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=it_IT@euro, LC_CTYPE=it_IT@euro (charmap=ISO-8859-15)

Versions of packages nscd depends on:
ii  libc6                         2.3.6-9    GNU C Library: Shared libraries

nscd recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 2.5

On Sat, Oct 29, 2005 at 02:14:45PM +0200, Franklin PIAT wrote:
> Package: nscd
> Version: 2.3.5-6
> Severity: normal
> 
> 
> Hello,
> 
> Symptom: 
> 	nscd dies suddenly
> Disgnostic:
> 	when running nscd in debug modes, it dies with the error :
> 		12870: handle_request: request received (Version = 2)
> 		from PID 12877
> 		12870:  GETFDHST
> 		12870: provide access to FD 8, for hosts
> 		12870: Reloading "ldap.dmz1.klabs.be" in hosts cache!
> 		12870: Reloading "www.tnt.com" in hosts cache!
> 		nscd: hstcache.c:364: cache_addhst: Assertion
> 		`hst->h_addr_list[1] == ((void *)0)' failed.
> 		Aborted
> 	
> 	Note that i didn't "used" the record www.tnt.com and that 
> 	nscd always crashes with that record.
> 
> 	running "strace nscd -d"
> 		epoll_wait(10, 11716: Reloading "www.tnt.com" in hosts
> 		cache!
> 		nscd: hstcache.c:364: cache_addhst: Assertion
> 		`hst->h_addr_list[1] == ((void *)0)' failed.
> 		bfa02940, 100, 29988)    = -1 EINTR (Interrupted system
> 		call)
> 		+++ killed by SIGABRT +++
> 
> 	I have a copy of the faulty table i can provide.
> 
> Workaround:
> 	- invalidates (i.e. purge) faulty table cache with "nscd -i
> 	  hosts" (while nscd is running !)
> 	- disable "persistent" option in /etc/nscd.conf
> 
> Thanks,
> 
> Franklin PIAT
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers testing
>   APT policy: (990, 'testing')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.12-1-686
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> 
> Versions of packages nscd depends on:
> ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
> 
> nscd recommends no packages.
> 
> -- debconf-show failed
> 
> 

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

Attachment: pgpdtkDPC2_lB.pgp
Description: PGP signature


--- End Message ---

Reply to: