From Bugzilla Helper: User-Agent: Mozilla/5.0 (compatible; Konqueror/3.0.0-10; Linux) Description of problem: When an %attr directive mentions a group whose name is not in the /etc/groups file, rpm -i crashes with segmentation violation. (The group entry in question is coming from an LDAP server via nsswitch. I haven't verified whether the problem occurs if NIS is used instead.) Version-Release number of selected component (if applicable): Version : 4.0.4 Vendor: Red Hat, Inc. Release : 7x.18 Build Date: Thu 18 Apr 2002 11:36:17 How reproducible: Always Steps to Reproduce: 1.Export group file from master server with LDAP (using the /usr/share/openldap/migration/ scripts). 2.Set up another machine to import the group and password entries from LDAP using authconfig and /etc/nsswitch.conf. 3.Create an rpm package where an %attr directive mentions a group present in the LDAP server, but not in the local /etc/group file on the second machine. 4. Install the rpm from step 3 on the second machine. Actual Results: rpm -i gets a segmentation violation. Expected Results: Package should have installed normally, with the expected setting of the group id for the files the %attr directive applies to. Additional info:
You need to run nscd if using LDAP passwords to avoid a problem that affects statically linked binaries like rpm.