Bug 84620

Summary: RPM crashes with ldap entries in /etc/nsswitch.conf
Product: [Retired] Red Hat Linux Reporter: Chad Cunningham <ccunning>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DUPLICATE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
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-02-21 18:51:53 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:

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:
Always

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~
33,35c33,35
< passwd:     files nisplus
< shadow:     files nisplus
< group:      files nisplus
---
> passwd:     files nisplus ldap
> shadow:     files nisplus ldap
> group:      files nisplus ldap
53c53
< protocols:  files nisplus
---
> protocols:  files nisplus ldap
55c55
< services:   files nisplus
---
> services:   files nisplus ldap
57c57
< netgroup:   files nisplus
---
> netgroup:   files nisplus ldap
61c61
< automount:  files nisplus
---
> automount:  files nisplus ldap


-----------

An example RPM that I had this problem with was: 

ftp://apt.unl.edu/apt/8.0/RPMS.kde3-test/lame-libs-3.93.1-0.2.8.0.i386.rpm

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.