fork() after pthread_mutex_init()
Phil Mayers
p.mayers at imperial.ac.uk
Tue May 14 09:21:21 CEST 2013
On 05/13/2013 08:03 PM, Edgar Fuß wrote:
> registered a pthread_atfork handler, which intended to call
> ldap_drop_conenction() from libldap, but, because of PLT
> load-time-linking, in fact ended up calling ldap_drop_connection()
> from libldap_r. Boom (inside fork()).
Oh yuck...
NSS really is a disaster - "dynload in arbitrary linked-libraries every
time I lookup a uid->user mapping, why sure!".
You might find that running nscd helps, as it'll confine nss_ldap to the
nscd process.
More information about the Freeradius-Devel
mailing list