1.9.17p4 - Hanging smbd on logout ?!

Hermann Lauer Hermann.Lauer at IWR.Uni-Heidelberg.De
Sat Nov 1 03:37:35 GMT 1997


Dear Samba Developers,

OS: Linux 2.0.31
Samba1.9.17p4

today I detected that smbstatus shows more users logged in as really using
the samba service.

It seems that at logoff sometimes the smbd won't die and won't free the
used tcp/ip socket:

Output from "netstat -a":

Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp      162      0 klimt.iwr.u:netbios_ssn bildpc2.iwr.uni-he:1037 CLOSE
tcp      101      0 klimt.iwr.u:netbios_ssn bildpc2.iwr.uni-he:1027 CLOSE
tcp       64      0 klimt.iwr.u:netbios_ssn bildpc2.iwr.uni-he:1029 CLOSE

A gdb smbd <pid> yields to:

Attaching to program `/usr/sbin/smbd', process 10522
Reading symbols from /lib/libdl.so.1.7.14...(no debugging symbols
found)...done.
Reading symbols from /lib/libpam.so.0.57...done.
Reading symbols from /lib/libc.so.5.3.12...done.
Reading symbols from /lib/ld-linux.so.1...done.
0x4002ad43 in waitpid ()
(gdb) where
#0  0x4002ad43 in waitpid ()
#1  0x400a9998 in __DTOR_END__ ()
#2  0x8078113 in sigprocmask ()
#3  0x806710a in sigprocmask ()
#4  0x8069418 in sigprocmask ()
#5  0x806d65f in sigprocmask ()
#6  0x806d773 in sigprocmask ()
#7  0x806dc31 in sigprocmask ()
#8  0x804fa86 in sigprocmask ()
#9  0x804fd89 in sigprocmask ()
#10 0x8050171 in sigprocmask ()
#11 0x8050a0d in sigprocmask ()
#12 0x804a14b in sigprocmask ()

This looks very strange to me. The log file (log level 2) shows nothing unusal.

I found more smbd processes in this state.

Any ideas ?

Thanks for your help.

Hermann


More information about the samba mailing list