Bug#299051: exim4+libnss-ldap: Loops infinitely on startup

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 299051@bugs.debian.org
Fri, 11 Mar 2005 14:26:38 +0100


tags #299051 help
thanks

Hi!

On Fri, Mar 11, 2005 at 02:36:45PM +0200, Antonio Kanouras wrote:
> I've hit a weird bug when using libnss-ldap. It seems related to
> #190072. Under some circumstances, Exim4 gets stuck in an infinite
> loop. Everything else on the system works as usual in either case. I'm
> just a beginner in C, but it seems that when using the first version of
> nsswitch.conf, libnss-ldap (or libldap probably) tries to use Exim's
> IPv6 listening socket for communicating with the LDAP server instead of
> opening its own.

You have me at a loss here. I do not use ldap or libnss-ldap myself. I
am tagging this bug help since I do not have the slightest idea where
to start debugging.

> connect(5, {sa_family=AF_FILE, path="/var/run/ldapi"}, 110) = 0
> select(5, [3 4], NULL, NULL, NULL)      = -1 EBADF (Bad file descriptor)
> waitpid(-1, 0xbffff238, WNOHANG)        = -1 ECHILD (No child processes)
> select(5, [3 4], NULL, NULL, NULL)      = -1 EBADF (Bad file descriptor)
> waitpid(-1, 0xbffff238, WNOHANG)        = -1 ECHILD (No child processes)
> select(5, [3 4], NULL, NULL, NULL)      = -1 EBADF (Bad file descriptor)
> waitpid(-1, 0xbffff238, WNOHANG)        = -1 ECHILD (No child processes)

Can you say which process is listening on /var/run/ldapi, and whether
this process logs any errors?

Have you tried ltracing the daemon?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835