Bug#336310: nscd dies (Aborted) because of corrupted(?) persistent-cache file
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
Reply to: