Klaus,

On Fri, May 13, 2005 at 10:48:43PM +0200, Klaus Ethgen wrote:
> Package: libldap-2.2-7
> Version: 2.2.23-5
> Severity: critical

I'm not sure what you mean by this bug.  Are you reporting a bug against the
software running on your client system, or on your server system?

The libldap-2.2-7 library is not directly the cause of any hanging on the
client; it is only used by the slapd server and by the ldap client
applications (ldapadd, ldapmodify) that come with OpenLDAP.

> There is a havy to debugging bug whith the newest libldap. After update
> cron stops executing jobs on a random time. When stracing the binary the
> bug is not happen. But with some effort I got the following:
> 22:17:36 select(1024, [5], [], NULL, NULL) = 1 (in [5])
> 22:18:01 read(5, "0>\2\1\4d9\4", 8)     = 8
> 22:18:01 read(5, "01\2\1\4e\7\n\1\0\4\0\4\0\240#0!\4\0261.2.840.1135"..., 56) 
> = 51
> 22:18:01 select(1024, [5], [], NULL, NULL) = 1 (in [5])
> 22:19:01 read(5, "=de0\202", 5)         = 5
> 22:19:01 select(1024, [5], [], NULL, NULL) = 1 (in [5])
> 22:19:01 read(5, "\2\2650\24\4\2cn", 8) = 8
> 22:19:01 write(5, "0\5\2\1\4B\0", 7)    = 7
> 22:19:01 shutdown(5, 2 /* send and receive */) = 0
> 22:19:01 close(5)                       = 0

> This fd 5 is the connection to the ldap server. In this case it was
> hanging for several minutes and then got finaly data and exists. But
> sometimes the hang will be endles. (It will be endles if I do not
> stracing the process)

> To my environment:
> The ldap server is a sarge system without the problem. The client with
> the problem is a sid system.

But your strace shows that all the time is spent waiting for data from the
server, which sounds like a server bug.  While cron is hanging, do other
queries (using ldapsearch, for example) still work from this system?  Can
you forward us a copy of your /etc/ldap/slapd.conf?

What is the exact version of slapd running on your sarge system?

Your client's /etc/libnss-ldap.conf (and /etc/libpam-ldap.conf, if you use
libpam-ldap) may also help.  Please be sure to remove any passwords from
these files before sending them to the BTS, of course.

Thanks,
-- 
Steve Langasek
postmodern programmer

Attachment: signature.asc
Description: Digital signature

Reply via email to