Bug 101339 - Statically linked Apache crashes in initgroups when using OpenLDAP
Statically linked Apache crashes in initgroups when using OpenLDAP
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
9
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-07-30 19:06 EDT by szaka
Modified: 2016-11-24 09:56 EST (History)
2 users (show)

See Also:
Fixed In Version: 2.3.2-56
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-07-31 11:52:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description szaka 2003-07-30 19:06:49 EDT
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
Comment 1 Jakub Jelinek 2003-07-31 11:52:00 EDT
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.

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