[Samba] 2.2.4 and "veto files" -> cpu maxed out

Giulio Orsero giulioo at pobox.com
Thu May 16 11:57:36 GMT 2002


On Thu, 16 May 2002 10:47:42 -0700, jra at samba.org (Jeremy Allison) wrote:

>> veto files = /.*/
>> whenever you connect to it the client process hangs, the smbd starts
>> consuming cpu time and cannot be killed but with "kill -9".

>Can you attach to the process compiled with -g (debug symbols)
>and get a stack backtrace please ?

Note that I don't understand anything of the following, just read man page
in order to try the command most similar to what you requested :-)

# gdb /usr/sbin/smbd 814
GNU gdb 4.18
Copyright 1998 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 "i386-redhat-linux"...
 
/tmp/814: No such file or directory.
Attaching to program: /usr/sbin/smbd, Pid 814
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /usr/lib/libpopt.so.0...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /lib/libnss_nisplus.so.2...done.
Reading symbols from /lib/libnss_nis.so.2...done.
strncpy (s1=0xbfffe518 ".", s2=0x8150480 ".", n=1023)
    at ../sysdeps/generic/strncpy.c:83
83      ../sysdeps/generic/strncpy.c: No such file or directory.
(gdb) bt
#0  strncpy (s1=0xbfffe518 ".", s2=0x8150480 ".", n=1023)
    at ../sysdeps/generic/strncpy.c:83
#1  0x81359ff in is_in_path ()
#2  0x806f59b in OpenDir ()
#3  0x806e920 in start_dir ()
#4  0x806e9fd in dptr_create ()
#5  0x808cb53 in call_trans2findfirst ()
#6  0x80920a6 in reply_trans2 ()
#7  0x809f41d in switch_message ()
#8  0x809f4ba in construct_reply ()
#9  0x809f6e4 in process_smb ()
#10 0x809ff4f in smbd_process ()
#11 0x806a2c9 in main ()
#12 0x400551eb in __libc_start_main (main=0x8069c20 <main>, argc=2,
    argv=0xbffff7e4, init=0x8068108 <_init>, fini=0x814e36c <_fini>,
    rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffff7dc)
    at ../sysdeps/generic/libc-start.c:90
(gdb)

-- 
giulioo at pobox.com




More information about the samba mailing list