Bug 89122
| Summary: | getpwnam in static executables segfaults if "compat" is listed for passwd in /etc/nsswitch.conf | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Kees Cook <kees> | ||||||
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 8.0 | CC: | fweimer | ||||||
| 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: | 2003-04-23 07:37:16 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: | 59709 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Kees Cook
2003-04-17 20:47:06 UTC
Created attachment 91179 [details]
Output from gdb
Created attachment 91180 [details]
Minimal example code
I very much doubt that I'll fix that. NSS in statically linked apps is only minimally supported, only simple services. In fact, static linking should be avoided for almost any cost, it's evil and will always have problems. Statically linked binaries are much less stable after runtime upgrades. I'll look at the code but better get rid of either static linking or this NIS hack. Well, it's pretty confusing to have "rpm" segfault. On the machines we kickstart, we can't have our NIS running until all the RPMs are installed. Do glibc 2.3.x's nss_compat libraries seg fault? Sure you can use rpm. rpm is dynamically linked in RHL9. As I said, I'll look briefly at it. If I cannot reproduce it or it turns out to be more complicated than a tiny little change it'll not be fixed. Static linking is bad. NIS is horrible. Combinbed it's a desaster. |