Bug 2578 - infinite loop in smbd on select
infinite loop in smbd on select
Status: RESOLVED INVALID
Product: Samba 3.0
Classification: Unclassified
Component: File Services
3.0.13
All Windows XP
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-06 00:38 UTC by Alex Deiter
Modified: 2005-09-29 05:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Deiter 2005-04-06 00:38:35 UTC
I found another infinite loop in smbd (like a Bug#:2563) ?

top report me:
  PID USERNAME       PRI NICE   SIZE    RES STATE    TIME   WCPU    CPU COMMAND
 9275 root           126    0 19224K  5736K RUN     20.7H 90.92% 90.92% smbd

smbstatus report me:
 9275   adn           users         p78msc1      (x.x.x.x)
data          9275   p78msc1       Tue Apr  5 13:30:13 2005
adn           9275   p78msc1       Tue Apr  5 13:27:37 2005
bss           9275   p78msc1       Tue Apr  5 13:27:31 2005
ipc$          9275   p78msc1       Tue Apr  5 14:23:00 2005
9275   DENY_NONE  0x2019f     RDWR       LEVEL_II        
/home/samba/bss/Статистика/BSS/BSS Север-нагрузка.xls   Tue Apr  5 13:27:37 2005

truss report me:
select(1024,{33},{},0x0,0x0)                     = 1 (0x1)
select(1024,{33},{},0x0,0x0)                     = 1 (0x1)
select(1024,{33},{},0x0,0x0)                     = 1 (0x1)
select(1024,{33},{},0x0,0x0)                     = 1 (0x1)
select(1024,{33},{},0x0,0x0)                     = 1 (0x1)
select(1024,{33},{},0x0,0x0)                     = 1 (0x1)
select(1024,{33},{},0x0,0x0)                     = 1 (0x1)

gdb report me:

(gdb) bt
#0  0x000000004104c768 in select () from /lib/libc.so.5
#1  0x00000000405ce384 in ldap_int_select () from /usr/local/lib/libldap-2.2.so.7
#2  0x00000000405b8670 in wait4msg () from /usr/local/lib/libldap-2.2.so.7
#3  0x00000000405b814c in ldap_result () from /usr/local/lib/libldap-2.2.so.7
#4  0x00000000405c0238 in ldap_sasl_bind_s () from /usr/local/lib/libldap-2.2.so.7
#5  0x00000000405c0ab8 in ldap_simple_bind_s () from /usr/local/lib/libldap-2.2.so.7
#6  0x00000000002f74e0 in smbldap_make_mod ()
#7  0x00000000002f78e0 in smbldap_make_mod ()
#8  0x00000000002f7b2c in smbldap_make_mod ()
#9  0x00000000002f7ddc in smbldap_search ()
#10 0x00000000002f828c in smbldap_search_suffix ()
#11 0x00000000002684c4 in ldapsam_search_suffix_by_name ()
#12 0x000000000026b5b0 in ldapsam_search_suffix_by_name ()
#13 0x0000000000262318 in smb_register_passdb ()
#14 0x00000000002645c8 in pdb_getsampwnam ()
#15 0x00000000001d92bc in _net_trust_dom_list ()
#16 0x00000000001d973c in _net_auth_2 ()
#17 0x00000000001d8198 in _wks_query_info ()
#18 0x0000000000216470 in api_rpcTNP ()
#19 0x00000000002160e0 in api_pipe_request ()
#20 0x0000000000210af8 in free_pipe_context ()
#21 0x0000000000210d4c in free_pipe_context ()
#22 0x00000000002110a8 in free_pipe_context ()
#23 0x0000000000211310 in write_to_pipe ()
#24 0x0000000000211268 in write_to_pipe ()
#25 0x000000000015dbc4 in reply_pipe_write_and_X ()
#26 0x0000000000164bb8 in reply_write_and_X ()
#27 0x00000000001933fc in respond_to_all_remaining_local_messages ()
#28 0x00000000001934a8 in respond_to_all_remaining_local_messages ()
#29 0x000000000019380c in process_smb ()
#30 0x00000000001944e8 in smbd_process ()
#31 0x00000000002faedc in main ()

Thanks a lot!
Comment 1 Tomaz 2005-09-28 05:04:41 UTC
Let me add a "me too" comment. I noticed this with Samba 3.0.14a first, but 3.0.
20 did not help either. Samba is using ldap to be synchronized with pther 
servers. System is FreeBSD 5.4/amd64. truss -p show this:

select(1024,{40},{},0x0,0x0)                     = 1 (0x1)
select(1024,{40},{},0x0,0x0)                     = 1 (0x1)
select(1024,{40},{},0x0,0x0)                     = 1 (0x1)
select(1024,{40},{},0x0,0x0)                     = 1 (0x1)
select(1024,{40},{},0x0,0x0)                     = 1 (0x1)
select(1024,{40},{},0x0,0x0)                     = 1 (0x1)
select(1024,{40},{},0x0,0x0)                     = 1 (0x1)
select(1024,{40},{},0x0,0x0)                     = 1 (0x1)

It appears to always happen with XP Pro-sp2 client storing his Thunderbird (1.0.
6) mail on samba (home) share:

20165  DENY_NONE  0x2019f     RDWR       EXCLUSIVE+BATCH  /home/user001/Posta/
user001/1ycduhi7.slt/Mail/mail.hidden.net/Sent.msf   Wed Sep 28 12:40:54 2005

kill -2 is sufficient to get rid of it so server become responsive again. This 
same user is complaining about frequent disconnections and slow responses 
(because ofhigh cpu, of course!).

Comment 2 Gerald (Jerry) Carter 2005-09-28 05:33:09 UTC
The original bug report is pretty clearly an issue in the 
OpenLDAP client libraries and not in Samba.

Tomaz, can get get a backtrace ?
Comment 3 Tomaz 2005-09-29 01:11:20 UTC
Here are 3 stack traces from smbds taking all CPU. In two cases it is obvious 
that LDAP is big part of the problem. Btw: samba is running in jail which is why 
gdb is complaining about missing libs which are in jails,but not in master. LDAP 
 server is located on the other side of sometimes overloaded link (with spikes 
only), but looks like it does not deal with spikes gradually.

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Attaching to program: /net/jails/samba/usr/local/sbin/smbd, process 33128
Error while mapping shared library sections:
/usr/local/lib/libcups.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgnutls.so.12: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgcrypt.so.13: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgpg-error.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libpopt.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/nss_ldap.so.1: No such file or directory.
Reading symbols from /usr/local/lib/libldap-2.2.so.7...done.
Loaded symbols for /usr/local/lib/libldap-2.2.so.7
Reading symbols from /usr/local/lib/liblber-2.2.so.7...done.
Loaded symbols for /usr/local/lib/liblber-2.2.so.7
Error while reading shared library symbols:
/usr/local/lib/libcups.so.2: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgnutls.so.12: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgcrypt.so.13: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgpg-error.so.1: No such file or directory.
Reading symbols from /lib/libz.so.2...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /lib/libcrypt.so.2...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /usr/lib/libpam.so.2...done.
Loaded symbols for /usr/lib/libpam.so.2
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Error while reading shared library symbols:
/usr/local/lib/libpopt.so.0: No such file or directory.
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /lib/libcrypto.so.3...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Error while reading shared library symbols:
/usr/local/lib/nss_ldap.so.1: No such file or directory.
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
0x0000000800a1cd70 in sb_stream_read (sbiod=0x8b54c0, buf=0x0, len=8)
    at sockbuf.c:498
498     sockbuf.c: No such file or directory.
        in sockbuf.c
(gdb) bt
#0  0x0000000800a1cd70 in sb_stream_read (sbiod=0x8b54c0, buf=0x0, len=8)
    at sockbuf.c:498
#1  0x0000000000000010 in ?? ()
#2  0x00000008018431e4 in _res () from /lib/libc.so.5
#3  0x00000000008de000 in ?? ()
#4  0x0000005500000026 in ?? ()
#5  0x0000000000000024 in ?? ()
#6  0x000000000011ffff in ?? ()
#7  0x0000000000000055 in ?? ()
#8  0x0000000000000000 in ?? ()
#9  0x0000000000000005 in ?? ()
#10 0x0000000000000000 in ?? ()
#11 0x00000000433b7d61 in ?? ()
#12 0x000000000000830d in ?? ()
#13 0x00000000433b7d5c in ?? ()
#14 0x000000000000830d in ?? ()
#15 0x9200a8c035000210 in ?? ()
#16 0x0000000000000000 in ?? ()
#17 0x0000000100000001 in ?? ()
#18 0x00007fffffffc1e0 in ?? ()
#19 0x00007fffffffa1f5 in ?? ()
#20 0x00000000008b5080 in ?? ()
#21 0x00007fffffffc930 in ?? ()
---Type <return> to continue, or q <return> to quit---
#22 0x00007fffffffa1e0 in ?? ()
#23 0x6e692e327061646c in ?? ()
#24 0x6f6b696c69732e74 in ?? ()
#25 0x61646c0074656e2e in ?? ()
#26 0x732e746e692e3270 in ?? ()
#27 0x656e2e6f6b696c69 in ?? ()
#28 0x00000008016f0074 in _fseeko () from /lib/libc.so.5
#29 0x0000000000000001 in ?? ()
#30 0x00007fffffffd650 in ?? ()
#31 0x00000008007bb76a in rlock_release () from /libexec/ld-elf.so.1
#32 0x00000008007b7f76 in _rtld_bind () from /libexec/ld-elf.so.1
#33 0x00000000005b8008 in strchr_m ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000000000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0x0000000000000000 in ?? ()
#44 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#45 0x0000000000000000 in ?? ()
#46 0x0000000000000000 in ?? ()
#47 0x0000000000000000 in ?? ()
#48 0x0000000000000000 in ?? ()
#49 0x0000000000000000 in ?? ()
#50 0x0000000000000000 in ?? ()
#51 0x0000000000000000 in ?? ()
#52 0x0000000000000000 in ?? ()
#53 0x0000000000000000 in ?? ()
#54 0x0000000000000000 in ?? ()
#55 0x0000000000000000 in ?? ()
#56 0x0000000000000000 in ?? ()
#57 0x0000000000000000 in ?? ()
#58 0x0000000000000000 in ?? ()
#59 0x0000000000000000 in ?? ()
#60 0x0000000000000000 in ?? ()
#61 0x0000000000000000 in ?? ()
#62 0x0000000000000000 in ?? ()
#63 0x0000000000000000 in ?? ()
#64 0x0000000000000000 in ?? ()
#65 0x0000000000000000 in ?? ()
#66 0x0000000000000004 in ?? ()
#67 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#68 0x0000000000000000 in ?? ()
#69 0x0000000000000000 in ?? ()
#70 0x0000000000000000 in ?? ()
#71 0x0000000000000000 in ?? ()
#72 0x0000000000000000 in ?? ()
#73 0x0000000000000000 in ?? ()
#74 0x0000000000000000 in ?? ()
#75 0x0000000000000000 in ?? ()
#76 0x0000000000000000 in ?? ()
#77 0x0000000000000000 in ?? ()
#78 0x0000000000000000 in ?? ()
#79 0x0000000000000000 in ?? ()
#80 0x0000000000000000 in ?? ()
#81 0x0000000000815080 in ?? ()
#82 0x0000000000865800 in ?? ()
#83 0x0000000000815100 in ?? ()
#84 0x000000000085dd00 in ?? ()
#85 0x0000000000000000 in ?? ()
#86 0x00000008008f9f21 in ldap_mark_select_write (ld=0x8b5400, sb=0x800b1f140)
    at os-ip.c:628
#87 0x00000008008f7828 in ldap_int_flush_request (ld=0x0, lr=0x815200)
    at request.c:171
#88 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#89 0x000000000085dd00 in ?? ()
#90 0x0000000000000000 in ?? ()
#91 0x000000000085dd00 in ?? ()
#92 0x00000000fffffffe in ?? ()
#93 0x0000000000000000 in ?? ()
#94 0x00000008008e7c12 in wait4msg (ld=0x865800, msgid=8334392, all=1,
    timeout=0x815100, result=0x7fffffffa610) at result.c:314
#95 0x00000008008e7757 in ldap_result (ld=0x85dd00, msgid=1, all=1,
    timeout=0x0, result=0x7fffffffb218) at result.c:112
#96 0x00000008008ed6c9 in ldap_sasl_bind_s (ld=0x85dd00,
    dn=0x8606e0 "cn=Manager,dc=someorg,dc=net", mechanism=0x0,
    cred=0x7fffffffb270, sctrls=0x0, cctrls=0x0, servercredp=0x0) at sasl.c:187
#97 0x00000008008edfbe in ldap_simple_bind_s (ld=0x85dd00,
    dn=0x8606e0 "cn=Manager,dc=someorg,dc=net",
    passwd=0x81ea80 "somesecretcode") at sbind.c:115
#98 0x0000000000632d84 in smbldap_connect_system ()
#99 0x00000000006331ae in smbldap_open ()
#100 0x0000000000633400 in another_ldap_try ()
#101 0x00000000006337de in smbldap_search_ext ()
#102 0x000000000063386c in smbldap_search ()
#103 0x0000000000634279 in smbldap_search_suffix ()
#104 0x000000000058e75c in ldapsam_search_suffix_by_name ()
#105 0x000000000059152d in ldapsam_getsampwnam ()
---Type <return> to continue, or q <return> to quit---
#106 0x000000000058791c in context_getsampwnam ()
#107 0x0000000000589914 in pdb_getsampwnam ()
#108 0x0000000000582b6d in local_lookup_name ()
#109 0x00000000005218fe in _samr_lookup_names ()
#110 0x000000000051c180 in api_samr_lookup_names ()
#111 0x0000000000531fd3 in api_rpcTNP ()
#112 0x0000000000531cea in api_pipe_request ()
#113 0x000000000052cb38 in process_request_pdu ()
#114 0x000000000052cd5b in process_complete_pdu ()
#115 0x000000000052d034 in process_incoming_data ()
#116 0x000000000052d26e in write_to_internal_pipe ()
#117 0x000000000052d1d2 in write_to_pipe ()
#118 0x0000000000452232 in api_fd_reply ()
#119 0x000000000045250e in named_pipe ()
#120 0x00000000004530a7 in reply_trans ()
#121 0x00000000004a1336 in switch_message ()
#122 0x00000000004a140f in construct_reply ()
#123 0x00000000004a17c4 in process_smb ()
#124 0x00000000004a2632 in smbd_process ()
#125 0x0000000000637374 in main ()
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
slk64-somesite# gdb /net/jails/samba/usr/local/sbin/smbd 3312ESC[ESC[ESC[ESC[K24
11^M
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Attaching to program: /net/jails/samba/usr/local/sbin/smbd, process 32411
Error while mapping shared library sections:
/usr/local/lib/libcups.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgnutls.so.12: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgcrypt.so.13: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgpg-error.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libpopt.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/nss_ldap.so.1: No such file or directory.
Reading symbols from /usr/local/lib/libldap-2.2.so.7...done.
Loaded symbols for /usr/local/lib/libldap-2.2.so.7
Reading symbols from /usr/local/lib/liblber-2.2.so.7...done.
Loaded symbols for /usr/local/lib/liblber-2.2.so.7
Error while reading shared library symbols:
/usr/local/lib/libcups.so.2: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgnutls.so.12: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgcrypt.so.13: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgpg-error.so.1: No such file or directory.
Reading symbols from /lib/libz.so.2...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /lib/libcrypt.so.2...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /usr/lib/libpam.so.2...done.
Loaded symbols for /usr/lib/libpam.so.2
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Error while reading shared library symbols:
/usr/local/lib/libpopt.so.0: No such file or directory.
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /lib/libcrypto.so.3...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Error while reading shared library symbols:
/usr/local/lib/nss_ldap.so.1: No such file or directory.
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
0x000000080169a1f8 in select () from /lib/libc.so.5
(gdb) bt
#0  0x000000080169a1f8 in select () from /lib/libc.so.5
#1  0x00000008008fa330 in ldap_int_select (ld=0x85d400, timeout=0x0)
    at os-ip.c:748
#2  0x00000008008e7c36 in wait4msg (ld=0x85d400, msgid=1, all=1, timeout=0x0,
    result=0x7fffffffdb98) at result.c:323
#3  0x00000008008e7757 in ldap_result (ld=0x85d400, msgid=1, all=1,
    timeout=0x0, result=0x7fffffffdb98) at result.c:112
#4  0x00000008008ed6c9 in ldap_sasl_bind_s (ld=0x85d400,
    dn=0x8607c0 "cn=Manager,dc=someorg,dc=net", mechanism=0x0,
    cred=0x7fffffffdbf0, sctrls=0x0, cctrls=0x0, servercredp=0x0) at sasl.c:187
#5  0x00000008008edfbe in ldap_simple_bind_s (ld=0x85d400,
    dn=0x8607c0 "cn=Manager,dc=someorg,dc=net",
    passwd=0x81eab0 "somesecretcode") at sbind.c:115
#6  0x0000000000632d84 in smbldap_connect_system ()
#7  0x00000000006331ae in smbldap_open ()
#8  0x0000000000633400 in another_ldap_try ()
#9  0x00000000006337de in smbldap_search_ext ()
#10 0x000000000063386c in smbldap_search ()
#11 0x0000000000634279 in smbldap_search_suffix ()
#12 0x000000000058e75c in ldapsam_search_suffix_by_name ()
#13 0x000000000059152d in ldapsam_getsampwnam ()
#14 0x000000000058791c in context_getsampwnam ()
#15 0x0000000000589914 in pdb_getsampwnam ()
---Type <return> to continue, or q <return> to quit---
#16 0x00000000004f504b in get_md4pw ()
#17 0x00000000004f54a0 in _net_auth_2 ()
#18 0x00000000004f3fb0 in api_net_auth_2 ()
#19 0x0000000000531fd3 in api_rpcTNP ()
#20 0x0000000000531cea in api_pipe_request ()
#21 0x000000000052cb38 in process_request_pdu ()
#22 0x000000000052cd5b in process_complete_pdu ()
#23 0x000000000052d034 in process_incoming_data ()
#24 0x000000000052d26e in write_to_internal_pipe ()
#25 0x000000000052d1d2 in write_to_pipe ()
#26 0x0000000000465bb4 in reply_pipe_write_and_X ()
#27 0x000000000046d7ae in reply_write_and_X ()
#28 0x00000000004a1336 in switch_message ()
#29 0x00000000004a140f in construct_reply ()
#30 0x00000000004a17c4 in process_smb ()
#31 0x00000000004a2632 in smbd_process ()
#32 0x0000000000637374 in main ()
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /net/jails/samba/usr/local/sbin/smbd, process 32411
slk64-somesite# gdb /net/jails/samba/usr/local/sbin/smbd 3241ESC[ESC[ESC[ESC[K38
52^M
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Attaching to program: /net/jails/samba/usr/local/sbin/smbd, process 33852
Error while mapping shared library sections:
/usr/local/lib/libcups.so.2: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgnutls.so.12: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgcrypt.so.13: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libgpg-error.so.1: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/libpopt.so.0: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/nss_ldap.so.1: No such file or directory.
Reading symbols from /usr/local/lib/libldap-2.2.so.7...done.
Loaded symbols for /usr/local/lib/libldap-2.2.so.7
Reading symbols from /usr/local/lib/liblber-2.2.so.7...done.
Loaded symbols for /usr/local/lib/liblber-2.2.so.7
Error while reading shared library symbols:
/usr/local/lib/libcups.so.2: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgnutls.so.12: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgcrypt.so.13: No such file or directory.
Error while reading shared library symbols:
/usr/local/lib/libgpg-error.so.1: No such file or directory.
Reading symbols from /lib/libz.so.2...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /lib/libcrypt.so.2...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /usr/lib/libpam.so.2...done.
Loaded symbols for /usr/lib/libpam.so.2
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Error while reading shared library symbols:
/usr/local/lib/libpopt.so.0: No such file or directory.
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /lib/libcrypto.so.3...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Error while reading shared library symbols:
/usr/local/lib/nss_ldap.so.1: No such file or directory.
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
0x000000080169a1f8 in select () from /lib/libc.so.5
(gdb) bt
#0  0x000000080169a1f8 in select () from /lib/libc.so.5
#1  0x00000008008fa330 in ldap_int_select (ld=0x8b2100, timeout=0x0)
    at os-ip.c:748
#2  0x00000008008e7c36 in wait4msg (ld=0x8b2100, msgid=1, all=1, timeout=0x0,
    result=0x7fffffffb218) at result.c:323
#3  0x00000008008e7757 in ldap_result (ld=0x8b2100, msgid=1, all=1,
    timeout=0x0, result=0x7fffffffb218) at result.c:112
#4  0x00000008008ed6c9 in ldap_sasl_bind_s (ld=0x8b2100,
    dn=0x860860 "cn=Manager,dc=someorg,dc=net", mechanism=0x0,
    cred=0x7fffffffb270, sctrls=0x0, cctrls=0x0, servercredp=0x0) at sasl.c:187
#5  0x00000008008edfbe in ldap_simple_bind_s (ld=0x8b2100,
    dn=0x860860 "cn=Manager,dc=someorg,dc=net",
    passwd=0x81e9d0 "somesecretcode") at sbind.c:115
#6  0x0000000000632d84 in smbldap_connect_system ()
#7  0x00000000006331ae in smbldap_open ()
#8  0x0000000000633400 in another_ldap_try ()
#9  0x00000000006337de in smbldap_search_ext ()
#10 0x000000000063386c in smbldap_search ()
#11 0x0000000000634279 in smbldap_search_suffix ()
#12 0x000000000058e75c in ldapsam_search_suffix_by_name ()
#13 0x000000000059152d in ldapsam_getsampwnam ()
#14 0x000000000058791c in context_getsampwnam ()
#15 0x0000000000589914 in pdb_getsampwnam ()
---Type <return> to continue, or q <return> to quit---
#16 0x0000000000582b6d in local_lookup_name ()
#17 0x00000000005218fe in _samr_lookup_names ()
#18 0x000000000051c180 in api_samr_lookup_names ()
#19 0x0000000000531fd3 in api_rpcTNP ()
#20 0x0000000000531cea in api_pipe_request ()
#21 0x000000000052cb38 in process_request_pdu ()
#22 0x000000000052cd5b in process_complete_pdu ()
#23 0x000000000052d034 in process_incoming_data ()
#24 0x000000000052d26e in write_to_internal_pipe ()
#25 0x000000000052d1d2 in write_to_pipe ()
#26 0x0000000000452232 in api_fd_reply ()
#27 0x000000000045250e in named_pipe ()
#28 0x00000000004530a7 in reply_trans ()
#29 0x00000000004a1336 in switch_message ()
#30 0x00000000004a140f in construct_reply ()
#31 0x00000000004a17c4 in process_smb ()
#32 0x00000000004a2632 in smbd_process ()
#33 0x0000000000637374 in main ()
(gdb) quit











Comment 4 Gerald (Jerry) Carter 2005-09-29 05:00:12 UTC
Yup.   This is an OpenLDAP bug.  Not ours.
Thanks for the backtraces.