[Pkg-samba-maint] Bug#563844: samba restart fails with large smbd

Ross Boylan RossBoylan at stanfordalumni.org
Tue Jan 5 19:20:11 UTC 2010


Package: samba
Version: 2:3.4.3-1
Severity: normal

invoke-rc.d samba restart
results in no running smbd process.

This arises when I have an smbd process that has grown outlandishly
(to 1G in the most recent case).  After I execute the restart command
the terminal shows the usual stop and start messages for smbd and
nmbd.  However, ps still shows the old process running.  After awhile,
that process dies, leaving me with no running smbd.

The "real" problem is the huge footprint of smbd, reported in Debian
bug 558453 (my report is message 24 and subsequent) and upstream at
https://bugzilla.samba.org/show_bug.cgi?id=7020.  However, this seems
to indicate the restart logic isn't quite right, probably assuming
that after n seconds the stop has killed all the processes.

Terminal capture:
corn:/usr/local/src/tools# date; ps -lC smbd
Tue Jan  5 10:52:00 PST 2010
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
5 S     0 22402     1  0  80   0 -  3904 -      ?        00:00:00 smbd
5 S     0 22403 22402  0  80   0 -  3984 -      ?        00:00:00 smbd
5 S 65534 22646 22402  5  80   0 - 235916 -     ?        00:04:41 smbd
corn:/usr/local/src/tools# # sz is in block, so that's probably 1.2G (bigger than ksysguard shows, which is 973M
corn:/usr/local/src/tools# invoke-rc.d samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
corn:/usr/local/src/tools# date; ps -lC smbd
Tue Jan  5 10:55:20 PST 2010
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
5 D     0 22646     1  5  80   0 - 243957 -     ?        00:04:51 smbd
# old process still running after stop and start
# but it eventually shuts down, leaving nothing
corn:/usr/local/src/tools# date; ps -lC smbd
Tue Jan  5 11:02:36 PST 2010
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD

Note that I built samba from sid source on a lenny system, bring in
other sid packages as needed for compile and installation (e.g.,
libpam0g and other pam packages).
-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable'), (50, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba depends on:
ii  adduser         3.110                    add and remove users and groups
ii  debconf [debcon 1.5.24                   Debian configuration management sy
ii  libacl1         2.2.47-2                 Access control list shared library
ii  libattr1        1:2.4.43-2               Extended attribute shared library
ii  libc6           2.7-18                   GNU C Library: Shared libraries
ii  libcap2         2.11-2                   support for getting/setting POSIX.
ii  libcomerr2      1.41.3-1                 common error description library
ii  libcups2        1.3.8-1+lenny7           Common UNIX Printing System(tm) - 
ii  libgnutls26     2.4.2-6+lenny2           the GNU TLS library - runtime libr
ii  libkrb53        1.6.dfsg.4~beta1-5lenny1 MIT Kerberos runtime libraries
ii  libldap-2.4-2   2.4.11-1+lenny1          OpenLDAP libraries
ii  libpam-modules  1.1.0-4                  Pluggable Authentication Modules f
ii  libpam-runtime  1.1.0-4                  Runtime support for the PAM librar
ii  libpam0g        1.1.0-4                  Pluggable Authentication Modules l
ii  libpopt0        1.15-1                   lib for parsing cmdline parameters
ii  libwbclient0    2:3.4.3-1                Samba winbind client library
ii  lsb-base        3.2-20                   Linux Standard Base 3.2 init scrip
ii  procps          1:3.2.7-11               /proc file system utilities
ii  samba-common    2:3.4.3-1                common files used by both the Samb
ii  update-inetd    4.31                     inetd configuration file updater
ii  zlib1g          1:1.2.3.3.dfsg-12        compression library - runtime

Versions of packages samba recommends:
ii  logrotate                     3.7.1-5    Log rotation utility

Versions of packages samba suggests:
ii  ctdb                        1.0.108-2    clustered database to store tempor
pn  ldb-tools                   <none>       (no description available)
ii  openbsd-inetd [inet-superse 0.20080125-2 The OpenBSD Internet Superserver
pn  smbldap-tools               <none>       (no description available)

-- debconf information:
  samba/tdbsam: false
  samba/generate_smbpasswd: true
  samba/run_mode: daemons





More information about the Pkg-samba-maint mailing list