[Pkg-openldap-devel] Bug#340601: Bug#340601: ldapsearch hangs when using ldap for /etc/hosts

Steve Langasek vorlon at debian.org
Sun Feb 10 07:20:49 UTC 2008


On Sat, Feb 09, 2008 at 09:12:35PM -0800, Russ Allbery wrote:

> > Here is a patch that fixes the deadlock for me.  Fellow maintainers, is
> > this ok to commit to the package, or would you prefer I clean it up
> > first so that it's suitable for upstream submission?

> I think it's fine to commit to the package for right now.  I'll go file an
> upstream bug about the issue so that they're aware of it; my guess is that
> they may have other ideas for how to fix it.

Ok, I've scaled back the patch a bit before committing it because a deeper
search leaves me uncertain that res_query and dn_expand are thread-safe even
in current versions of glibc.  Dropping the mutex for getaddrinfo() and
getnameinfo() is sufficient to fix this bug, in any case.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org





More information about the Pkg-openldap-devel mailing list