Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
nscd is segfaulting within libnss_db.so
Version-Release number of selected component (if applicable):
# rpm -q nscd glibc
nscd-2.16-22.el7.x86_64
glibc-2.16-22.el7.x86_64
How reproducible:
all the time
Steps to Reproduce:
1. yum install nscd
2. cd /var/db && make
3. restorecon -R /var/db
4. edit /etc/nsswitch.conf to contain
passwd: db files
shadow: db files
group: db files
5. service nscd start
Actual results:
[101375.444229] nscd[458]: segfault at 7f53a4c7d95c ip 00007f539c9e9d4f sp 00007fff29b38a90 error 4 in libnss_db-2.16.so[7f539c9e5000+7000]
Expected results:
nscd is up and running
Comment 1Siddhesh Poyarekar
2012-11-27 14:24:48 UTC
It looks like the hashtable size calculation goes nuts when the number of entries in the database is exactly 1. I'm testing a patch.
Comment 2Siddhesh Poyarekar
2012-11-27 15:32:34 UTC
Miroslav, Patsy & I are having trouble reproducing this. If I had to hazard a guess it depends on the exact entries in the password/group files when the database is created and nscd gets started. Can you please pass along those files so that Patsy can confirm the bug is present in nscd-2.16-22.el7.x86_64 and is fixed after applying Siddhesh's patch.
Thanks,
jeff
Comment 6Siddhesh Poyarekar
2012-12-11 02:14:34 UTC
/etc/group should have exactly one entry of the form:
mail:x:12:postfix
i.e. exactly one entry where a user is listed in a group entry. A default rhel-7 base installation should have this, unless you're installing qemu or *not* installing postfix (resulting in 0 entries of the above type) - not sure if the latter is possible though.
(In reply to comment #5)
As Siddhesh wrote, just pick default installation of RHEL7 in beaker. But I already tried that (on ppc64), the patch seems to fix the issue. Even our nss sanity test which caught the issue is passing with the patch applied. In next months we will focus more on RHEL7 testing and I'll report anything broken.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.