Samba / LDAP crash?

From: Xavier Mertens (xavier@rootshell.be)
Date: Tue May 30 2006 - 04:31:33 EDT


Hi *,

I'm facing a problem with a running Samba server.
The Samba instance is authenticating users against an ActiveDirectory.
Working smoothly... But from time to time, a forked smbd process crashes:

Assertion failed: SOCKBUF_VALID( sb ), file sockbuf.c, line 91
(from the Samba log)

It seems to be a problem related to LDAP. A search on Google reported the same problem on other OS/platforms but no real fix.

smbd uses the following libs:

# ldd /opt/samba/sbin/smbd
        libthread.so.1 => /lib/libthread.so.1
        libldap-2.2.so.7 => /opt/sfw/lib/libldap-2.2.so.7
        liblber-2.2.so.7 => /opt/sfw/lib/liblber-2.2.so.7
        libgssapi_krb5.so.2 => /opt/kerberos/lib/libgssapi_krb5.so.2
        libkrb5.so.3 => /opt/kerberos/lib/libkrb5.so.3
        libk5crypto.so.3 => /opt/kerberos/lib/libk5crypto.so.3
        libkrb5support.so.0 => /opt/kerberos/lib/libkrb5support.so.0
        libcom_err.so.3 => /opt/kerberos/lib/libcom_err.so.3
        libresolv.so.2 => /lib/libresolv.so.2
        libsocket.so.1 => /lib/libsocket.so.1
        libnsl.so.1 => /lib/libnsl.so.1
        libsendfile.so.1 => /lib/libsendfile.so.1
        libsec.so.1 => /lib/libsec.so.1
        libgen.so.1 => /lib/libgen.so.1
        libpopt.so.0 => /usr/lib/libpopt.so.0
        libc.so.1 => /lib/libc.so.1
        libsasl.so.1 => /usr/lib/libsasl.so.1
        libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7
        libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7
        libgcc_s.so.1 => /opt/sfw/lib/libgcc_s.so.1
        libmp.so.2 => /lib/libmp.so.2
        libmd5.so.1 => /lib/libmd5.so.1
        libscf.so.1 => /lib/libscf.so.1
        libdoor.so.1 => /lib/libdoor.so.1
        libuutil.so.1 => /lib/libuutil.so.1
        libm.so.2 => /lib/libm.so.2

Using mdb, I got the following traceback:

mdb /opt/samba/sbin/smbd core.smbd.15678.0Loading modules: [ libc.so.1 ld.so.1 ]
> $c
libc.so.1`_lwp_kill+7(1, 6)
libc.so.1`raise+0x1f(6)
libc.so.1`abort+0xcd(6, 0, 8043bb8, 81c45c7, 2, fec38000)
readdirname(8266b5e, 1, fecf6fc0, fec38000)
smb_panic+0x10(8266b5e, 8266b52, 82425fb, 28)
fault_report+0x192(6, 82eb668, fec38000, febfdb3f)
sig_fault+0xe(6, 0, 8043cc4)
libc.so.1`__sighndlr+0xf(6, 0, 8043cc4, 81b331b)
libc.so.1`call_user_handler+0x22b(6, 0, 8043cc4)
libc.so.1`sigacthandler+0xbb(6, 0, 8043cc4)
libc.so.1`_lwp_kill+7(1, 6)
libc.so.1`raise+0x1f(6)
libc.so.1`abort+0x64(0, fef598b4, 65737341, 6f697472, 6166206e, 64656c69)
libc.so.1`_assert+0x6b(fef490d8, fef490c3, 5b, 0)
liblber-2.2.so.7.0.10`ber_sockbuf_ctrl+0x41(82dc658, 8, 0, 0)
0xfef69233(0, 82dc658, 80452a0, 836b978, fef9b520, 0)
libldap-2.2.so.7.0.10`ldap_result+0x2d5(836bd08, 46, 0, 0, 836b978, 80452e0)
nss_ldap.so.1`do_result+0x75(0, fe55efac, 46, fe55efac, 836eee8, 8045380)
nss_ldap.so.1`_nss_ldap_getent_ex+0x97(80453a4, 8045380, 8045594, 0, 0, 804537c
)
nss_ldap.so.1`do_parse_initgroups_nested+0x3ca(836b948, 836ba28, 8045594, 0, 0,
8045470)
nss_ldap.so.1`_nss_ldap_getent_ex+0x53(8045494, 8045470, 8045594, 0, 0, 804546c
)
nss_ldap.so.1`do_parse_initgroups_nested+0x3ca(836b6e8, 836b708, 8045594, 0, 0,
1)
nss_ldap.so.1`_nss_ldap_getent_ex+0x53(8045574, 804555c, 8045594, 0, 0, 8045558
)
nss_ldap.so.1`_nss_ldap_getgroupsbymember_r+0x122(82e9798, 8045614)
libc.so.1`nss_search+0x17d(fec391e8, feba6810, 6, 8045614)
libc.so.1`_getgroupsbymember+0xdc(8046900, 836b428, 10, 1)
[...]

Does anybody already had the same problem? Any tips?
The Samba server is used 24x7 and this problems occurs only a few times a day!

Xavier

--
/ is the root of all UNIX.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:58 EDT