Description of problem: Statically linked Apache children immdiately crash (sig11) in glibc's initgroups when using OpenLDAP. Version-Release number of selected component (if applicable): latest glibc and openldap shipped by Red Hat 9. The glibc errata didn't fix the problem. How reproducible: Always Steps to Reproduce: 1. install openldap 2. make sure the 'group' line in /etc/nsswitch.conf is 'file ldap' 3. echo "main(){initgroups("root",0);} > a.c ; gcc --static a.c 4. ./a.out segmentation fault Actual Results: segmentation fault Expected Results: no segmentation fault
Works for me in glibc-2.3.2-56. Also, it gives a new link time warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking as using NSS/iconv in statically linked programs is really bad idea.