Bug 84620 - RPM crashes with ldap entries in /etc/nsswitch.conf
Summary: RPM crashes with ldap entries in /etc/nsswitch.conf
Status: CLOSED DUPLICATE of bug 84630
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2003-02-19 18:31 UTC by Chad Cunningham
Modified: 2007-04-18 16:51 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-02-21 18:51:53 UTC

Attachments (Terms of Use)

Description Chad Cunningham 2003-02-19 18:31:22 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211

Description of problem:

I have had numerous problems with segmentation faults while attempting to
install RPM's. I haven't seen a pattern with what rpm's cause this, some RPM's
install fine, others cause a segmentation fault. Using strace, I found that the
segfault occurs immediately after rpm reads /etc/nsswitch.conf. As I have made
changes to this to get information out of ldap, I figured it was worth a shot to
try and make it stock. Sure enough, after removing 'ldap' from the entries in
/etc/nsswitch.conf, several rpm's I had been unable to install worked fine. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. attempt to install rpm

Actual Results:  rpm segmentation fault

Expected Results:  installation of rpm

Additional info:

Here is a diff between my nsswitch.conf (that causes the segfaults) and the
stock version:

[root@hooloovoo archives]# diff /etc/nsswitch.conf /etc/nsswitch.conf~
< passwd:     files nisplus
< shadow:     files nisplus
< group:      files nisplus
> passwd:     files nisplus ldap
> shadow:     files nisplus ldap
> group:      files nisplus ldap
< protocols:  files nisplus
> protocols:  files nisplus ldap
< services:   files nisplus
> services:   files nisplus ldap
< netgroup:   files nisplus
> netgroup:   files nisplus ldap
< automount:  files nisplus
> automount:  files nisplus ldap


An example RPM that I had this problem with was: 


Comment 1 Jeff Johnson 2003-02-20 15:52:11 UTC

*** This bug has been marked as a duplicate of 84630 ***

Comment 2 Red Hat Bugzilla 2006-02-21 18:51:53 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.