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

Re: ber_get_next: Assertion failed

Guy Roussin wrote:

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.

[2005/08/10 08:51:51, 0] lib/fault.c:fault_report(36)
[2005/08/10 08:51:51, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 6 in pid 12180 (3.0.14a-Debian)
  Please read the appendix Bugs of the Samba HOWTO collection
[2005/08/10 08:51:51, 0] lib/fault.c:fault_report(39)
[2005/08/10 08:51:51, 0] lib/util.c:smb_panic2(1495)
  PANIC: internal error
[2005/08/10 08:51:51, 0] lib/util.c:smb_panic2(1503)
  BACKTRACE: 52 stack frames:
   #0 /usr/sbin/smbd(smb_panic2+0x111) [0x81eb301]
   #1 /usr/sbin/smbd(smb_panic+0x1a) [0x81eb1ea]
   #2 /usr/sbin/smbd [0x81d7368]
   #3 /lib/libpthread.so.0 [0x40358825]
   #4 /lib/libc.so.6 [0x401c76f8]
   #5 /lib/libpthread.so.0(raise+0x2b) [0x40355a7b]
   #6 /lib/libc.so.6(gsignal+0x44) [0x401c7554]
   #7 /lib/libc.so.6(abort+0x178) [0x401c8a88]
   #8 /lib/libc.so.6(__assert_fail+0x10f) [0x401c0bbf]
   #9 /usr/lib/liblber.so.2(ber_get_next+0xfd) [0x4006237d]
   #10 /usr/lib/libldap_r.so.2 [0x40033096]
   #11 /usr/lib/libldap_r.so.2 [0x40032da5]
   #12 /lib/libnss_ldap.so.2 [0x4068ef8a]
   #13 /lib/libnss_ldap.so.2 [0x4068eb7a]
   #14 /lib/libnss_ldap.so.2 [0x40692507]
   #15 /lib/libnss_ldap.so.2 [0x4069236a]
   #16 /lib/libnss_ldap.so.2 [0x4068f552]
   #17 /lib/libnss_ldap.so.2 [0x40690093]
   #18 /lib/libnss_ldap.so.2(_nss_ldap_initgroups_dyn+0x14c) [0x406926cc]
   #19 /lib/libc.so.6 [0x402433f4]
   #20 /lib/libc.so.6(initgroups+0x6b) [0x4024361b]

Thank you.

 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/