Bug 189750
| Summary: | nscd reload (HUP) kills nscd if hosts cache disabled | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 3 | Reporter: | Aryeh Selekman <aryeh.selekman> |
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED DUPLICATE | QA Contact: | Brian Brock <bbrock> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.0 | CC: | tao |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-04-26 13:04:51 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
I can reproduce this on a RHEL 3 U7 box. Following the reproduce steps above I get the following after doing the reload: [root@xander root]# service nscd status [ OK ] nscd dead but pid file exists If I start the service with the host cache enabled, the service reloads fine. -Sam |
Description of problem: If hosts caching disabled in nscd config file: enable-cache hosts no a 'service nscd reload' (which sends HUP to nscd) causes nscd to seg fault. If hosts cache is enabled, the process stays running with a reloaded cache. From my testing, this affect RHEL3 and RHEL4. debug output when running 'nscd -d' and interactively sending HUP to nscd's process: ... 5182: provide access to FD 5, for passwd 5182: remove GETPWBYUID entry "#" 5182: remove GETGRBYNAME entry "XXXXX" 5182: remove GETGRBYGID entry "#" 5182: remove GETGRBYNAME entry "XXXXX" 5182: remove INITGROUPS entry "XXXXXX" Segmentation fault When running 'strace nscd -d': ... stat64("/etc/group", {st_mode=S_IFREG|0644, st_size=17507, ...}) = 0 getpid() = 14541 write(2, "14541: remove GETGRBYGID entry \""..., 3514541: remove GETGRBYGID entry "0" ) = 35 stat64("/etc/hosts", {st_mode=S_IFREG|0644, st_size=386, ...}) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Version-Release number of selected component (if applicable): How reproducible: Disable host cache in nscd configuration file, send a HUP signal to the running nscd process. Steps to Reproduce: 1. Set "enable-cache hosts no" in /etc/nscd.conf 2. service nscd start (or restart if already running) 3. service nscd reload Actual results: [root ~]# service nscd status nscd dead but subsys locked Expected results: nscd running with reloaded/fresh cache Additional info: