Bug 202454
| Summary: | installation of screen(1) fails if nscd is running | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Elena Zannoni <ezannoni> | ||||||
| Component: | shadow-utils | Assignee: | Peter Vrabec <pvrabec> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | David Lawrence <dkl> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 4.0 | CC: | drepper, jakub, kloczek, prockai, rbiba | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2006-10-11 15:30:36 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: | |||||||||
| Bug Depends On: | 191464 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Elena Zannoni
2006-08-14 15:41:39 UTC
Even thou I know shadow-utils have problem with invalidating of nscd cache, I need to reproduce it against something else. Screen isn't a good example since it doesn't use it's own group in rhel-4. You can write a trivial tet program like (pseudo-code):
int main (void) {
system ("adduser something");
getpwnam ("something");
}
If the getpwnam call fails the bug isn't fixed.
I can't reproduce it. I have tried #up2date {dovecot,named} and Ulrich's test program without
any success. :-(
nscd (pid 15313) is running...
glibc-2.3.4-2.25
shadow-utils-4.0.3-60.RHEL4
Do u have any suggestions Elena?
As strace on RHEL4 U4 shows, shadow-utils-4.0.3-60.RHEL4 does quite bad things: getent group screen; /usr/sbin/groupadd -g 84 -r -f screen; getent group screen shows groupadd opening a wrong socket (/var/run/.nscd_socket instead of the RHEL4+ /var/run/nscd/socket) and if that fails, sends SIGHUP signal to nscd (this happens to work if nscd is awaken fast enough, but there is no guarantee it will be). If opening the socket succeeds (try for testing ln -sf /var/run/nscd/socket /var/run/.nscd_socket), then it does another bogus thing - writes the request in multiple writes, which nscd won't grok, as the initial read is non-blocking and therefore groupadd is killed by SIGPIPE. I don't think you need to spend too much time trying to reproduce it, just the strace log is enough to find several severe bugs that simply have to be fixed for RHEL4.5. Created attachment 134644 [details]
strace output
How do you like this, Jakub? It's strace output of shadow-utils-4.0.3, which
were patched to use same mechanism to invalidate nscd cache as
shadow-utils-4.0.17 from rawhide.
Created attachment 137646 [details]
another strace
I can't reproduce this problem on RHEL-4, even thou I have used
screen-4.0.2-12.
Quality Engineering Management has reviewed and declined this request. You may appeal this decision by reopening this request. |