I had a smbd process which locked up, totally frozen. Would not even respond to SIGTERM. Had to SIGKILL it. It was preventing users from accessing a file (it had a lock on the file). The process seems to have been stuck in the ldapsam code, and might be a fault of libldap, but I don't know enough about it to make that assumption. The problem started because our LDAP server was restarted.
I got a full backtrace from the frozen smbd process, and it is attached. The only way to fix the lock was to kill -9 the frozen process and restart all of Samba. -- Jerry Haltom <[EMAIL PROTECTED]> Feedback Plus, Inc.
#0 0x4017a7ee in select () from /lib/libc.so.6
No symbol table info available.
#1 0x40047854 in ldap_int_hostname () from /usr/lib/libldap.so.2
No symbol table info available.
#2 0x40032606 in ldap_connect_to_host () from /usr/lib/libldap.so.2
No symbol table info available.
#3 0x40022033 in ldap_int_open_connection () from /usr/lib/libldap.so.2
No symbol table info available.
#4 0x40030968 in ldap_new_connection () from /usr/lib/libldap.so.2
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#5 0x40021bf9 in ldap_open_defconn () from /usr/lib/libldap.so.2
No symbol table info available.
#6 0x40030597 in ldap_send_initial_request () from /usr/lib/libldap.so.2
No symbol table info available.
#7 0x40028610 in ldap_sasl_bind () from /usr/lib/libldap.so.2
No symbol table info available.
#8 0x400286b9 in ldap_sasl_bind_s () from /usr/lib/libldap.so.2
No symbol table info available.
#9 0x40028d8b in ldap_simple_bind_s () from /usr/lib/libldap.so.2
No symbol table info available.
#10 0x082564d2 in smbldap_connect_system (ldap_state=0x83d87a0, ldap_struct=0x83de590)
at lib/smbldap.c:776
rc = 0
ldap_dn = 0x83e92b8 "cn=samba,ou=Accounts,dc=feedbackplusinc,dc=com"
ldap_secret = 0x884270e0 <Address 0x884270e0 out of bounds>
#11 0x082568b6 in smbldap_open (ldap_state=0x83d87a0) at lib/smbldap.c:836
rc = 0
#12 0x08256b59 in smbldap_retry_open (ldap_state=0x83d87a0, attempts=0xbfffe264) at
lib/smbldap.c:895
rc = 81
#13 0x08256ea2 in smbldap_search (ldap_state=0x83d87a0, base=0x83ec5b0
"dc=feedbackplusinc,dc=com", scope=2,
filter=0xbfffe3dc
"(&(sambaSID=S-1-5-21-663510196-2259326107-1491937660-501)(objectclass=sambaSamAccount))",
attrs=0x83ecb98, attrsonly=0, res=0xbfffe944) at lib/smbldap.c:950
rc = 81
attempts = 2
utf8_filter = 0x83fc6a0
"(&(sambaSID=S-1-5-21-663510196-2259326107-1491937660-501)(objectclass=sambaSamAccount))"
#14 0x08257747 in smbldap_search_suffix (ldap_state=0x83d87a0,
filter=0xbfffe3dc
"(&(sambaSID=S-1-5-21-663510196-2259326107-1491937660-501)(objectclass=sambaSamAccount))",
search_attr=0x83ecb98, result=0xbfffe944) at lib/smbldap.c:1106
scope = 2
rc = -1073749028
#15 0x081be3c3 in ldapsam_search_suffix_by_sid (ldap_state=0x83d8730, sid=0xbfffea00,
result=0xbfffe944,
attr=0x83ecb98) at passdb/pdb_ldap.c:245
filter =
"(&(sambaSID=S-1-5-21-663510196-2259326107-1491937660-501)(objectclass=sambaSamAccount))[EMAIL
PROTECTED] [EMAIL PROTECTED]", '\0' <repeats 40 times>, "\uffff\aA\b", '\uffff'
<repeats 12 times>,
"\020\uffff\uffff\uffff\0\0\0\0`\uffff,\b\002\0\0\0\003\0\0\0\230\uffff\uffff\uffff|\uffff\uffff\uffff'\0\0\0\uffff\uffff\uffff\uffff\0\0\0\0\001\0\0\0\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\0\0\0\0
\0\0\0\uffff\aA\b"...
rc = -235802127
sid_string = "S-1-5-21-663510196-2259326107-1491937660-501\0", '\uffff'
<repeats 211 times>#16 0x081c0b4c in ldapsam_get_ldap_user_by_sid
(ldap_state=0x83d8730, sid=0xbfffea00, result=0xbfffe944)
at passdb/pdb_ldap.c:1098
rc = -1
attr_list = (char **) 0x83ecb98
rid = 1074913750
#17 0x081c0c3c in ldapsam_getsampwsid (my_methods=0x83bd960, user=0x83ff8a8,
sid=0xbfffea00) at passdb/pdb_ldap.c:1134
ldap_state = (struct ldapsam_privates *) 0x83d8730
result = (LDAPMessage *) 0x0
entry = (LDAPMessage *) 0x0
count = -1073747620
rc = 1075600400
signature.asc
Description: This is a digitally signed message part
-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
