[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ber_get_next: Assertion failed



Thank you Howard and Pierangelo for your very quick answers,

But this server is in production. I can't make lot of test on it.

I notice than there is 2 packages in Debian Sarge (don't know why,
but libldap-2.2-7 depends on libldap2) and 2 libldap_r (see dpkg -L).
It seems not so easy to change/test a new version on this
samba pdc server.

What do you think ?

Thank you.

Guy Roussin


[03:26 PM] mtd1:/usr/lib# dpkg -L libldap2 ... /etc/ldap/ldap.conf ... /usr/lib/liblber.so.2.0.130 /usr/lib/libldap_r.so.2.0.130 /usr/lib/liblber.so.2 /usr/lib/libldap.so.2 /usr/lib/libldap.so.2.0.130 /usr/lib/libldap_r.so.2

[03:39 PM] mtd1:/usr/lib# dpkg -L libldap-2.2-7
...
/usr/lib/liblber-2.2.so.7.0.16
/usr/lib/libldap_r-2.2.so.7.0.16
...
/usr/lib/liblber-2.2.so.7
/usr/lib/libldap-2.2.so.7
/usr/lib/libldap-2.2.so.7.0.16
/usr/lib/libldap_r-2.2.so.7



[02:56 PM] mtd1:~# dpkg -s libldap2
Package: libldap2
Status: install ok installed
Priority: important
Section: libs
Installed-Size: 384
Maintainer: Torsten Landschoff <torsten@debian.org>
Architecture: i386
Source: openldap2
Version: 2.1.30-8
Replaces: libopenldap-runtime, libldap2-tls
Provides: libldap2-tls
Depends: libc6 (>= 2.3.2.ds1-21), libgnutls11 (>= 1.0.16), libsasl2 (>= 2.1.19)
Conflicts: libldap2-tls, ldap-utils (<= 2.1.23-1)
Conffiles:
 /etc/ldap/ldap.conf 5f104fc31ae3b89e5958d2ce2d5f3ddd
Description: OpenLDAP libraries
 These are the run-time libraries for the OpenLDAP (Lightweight Directory
 Access Protocol) servers and clients.

[03:10 PM] mtd1:~# dpkg -s libldap-2.2-7
Package: libldap-2.2-7
Status: install ok installed
Priority: important
Section: libs
Installed-Size: 368
Maintainer: Torsten Landschoff <torsten@debian.org>
Architecture: i386
Source: openldap2.2
Version: 2.2.23-8
Replaces: libldap2
Depends: libc6 (>= 2.3.2.ds1-21), libsasl2 (>= 2.1.19), libssl0.9.7, libldap2
Conflicts: ldap-utils (<= 2.1.23-1)
Description: OpenLDAP libraries
 These are the run-time libraries for the OpenLDAP (Lightweight Directory
 Access Protocol) servers and clients.



Pierangelo Masarati a écrit :
Howard Chu wrote:

Guy Roussin wrote:

Hi,

I get this logs from /var/log/syslog of my samba pdc, i use debian sarge
and since i upgrade openldap (2.1 to 2.2) i get a lot of problem related
to libnss-ldap.

smbd: /home/devel/openldap/build-area/openldap2-2.1.30/libraries/liblber/io.c:508: ber_get_next: Assertion `ber->ber_buf == ((void *)0)' failed.



This appears to be the same as ITS#3908. That bug report did not come with any backtrace, though.


The backtrace you provided here is missing some important information, your libldap_r has no symbol table so there's no clue what the calling sequence was. It would help if you can build with a more recent library than 2.1.30 (OpenLDAP 2.1 is now historic, and no longer supported) and compile with debugging symbols.


I would suggest, if you are willing, to try code from OpenLDAP's CVS tagged OPENLDAP_REL_ENG_2_3 which is about to be released as 2.3.5; there were a few fixes in the area of concurrency in libldap_r that resulted from concurrency issues in the ldap proxy.

p.


SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497