[Samba] smbd processes 99% cpu and end-user locks up (good gdb
nvidican at wmptl.com
Wed Oct 19 21:03:41 GMT 2005
I managed to update the system ldap librairies to 2.2.9, but I cannot update
them beyond that becuase of the dependency from nss_ldap.
Long-story short, the only source of nss_ldap I can get to even run make on is
that included in the freebsd ports collection (cvsup'd this afternoon), which is
nss_ldap-1.239, the most current code beying 243. I'm gonna bounce a few emails
back and forth with nss_ldap developers, but it gave me a good question about
samba and it's dependancy upon ldap librairies.
Can samba (preferably via ./configure script) have the location to which it
seeks the ldap librairies over-ridden? As-in with nss_ldap, I can specify
--with-openldap=/openldap/installed/somewhere/else/ and it seeks lib/libldap*.so
and include/ldap.h from their. Reason being I have compiled openldap 2.3.11
using --prefix=/usr/openldap23, I have configured and imported my ldap tree and
am now using slapd-2.3.11 from this installation, but the system (/usr/local)
librairies for ldap are still 2.2.9.
So is there an easy way to point samba towards compiling itself to use a
different openldap distribution, or would this be something one might accomplish
In the meantime, I'll continue to run using openldap-2.2.9 and see if the issue
nvidican at wmptl.com
Windsor Match Plate & Tool Ltd.
Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Nathan Vidican wrote:
> | Thanks, makes sense... so I waited for another (locked up)
> | pid, and did a `gdb /usr/samba/sbin/smbd <pid>` , and
> | got a (hopefully useful) gdb output. I have atatched
> | the output here, along with the logfile of the
> | user which the smbd process belonged to when it happened.
> Looks like the OpenLDAP client libs are stuck in a select()
> call. What version of OL are you using? Is there a newer version you
> could try?
> (gdb) bt
> #0 0x0000000801cdc1dc in select () from /lib/libc.so.6
> #1 0x000000080097ab45 in ldap_result () from
> #2 0x000000080097f32b in ldap_sasl_bind_s () from
> #3 0x000000080097f830 in ldap_simple_bind_s () from
> #4 0x00000000006bc278 in smbldap_connect_system (ldap_state=0x90eb48,
> ldap_struct=0x991200) at lib/smbldap.c:780
> #5 0x00000000006bc787 in smbldap_open (ldap_state=0x90eb48) at
> cheers, jerry
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
More information about the samba