NMBD crashing in 2.2.7a (and 2.2.6, 2.2.5)

2003-03-28 Thread Edgar, Bob
Hi all,

I've been having a problem with nmbd crashing multiple times per day.
I suspect that the problem is caused by a shell script that tries to
lookup the name for ws to ws4000 to build a DNS reverse table.

It look something like this:

#!/bin/ksh
typeset -Z4 i=0
while (( $i  4000 )); do
host=ws$i
nmblookup $host | awk -v host=$host '
/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {
printf(%s  IN  A   %s\n, host, $1)
}
'
(( i = i + 1 ))
done

I have a level 10 debug log which I could send if it would be useful.

Let me know if there is any more information I can provide.

Bob



[EMAIL PROTECTED]:16]- uname -a
SunOS salt 5.7 Generic_106541-19 sun4u sparc SUNW,Ultra-60

[EMAIL PROTECTED]:02]- gdb /usr/local/samba/bin/nmbd   5051
GNU gdb 5.0
Copyright 2000 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 sparc-sun-solaris2.7...(no debugging symbols
found)...
/usr/proc/bin/5051: No such file or directory.
Attaching to program `/usr/local/samba/bin/nmbd', process 5051
Reading symbols from /usr/lib/libsec.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsec.so.1
Reading symbols from /usr/lib/libgen.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/dt/lib/libpam.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/dt/lib/libpam.so.1
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1...(no
debugging symbols found)...done.
Loaded symbols for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
Retry #1:
Retry #2:
Retry #3:
Retry #4:
[New LWP 1]
Symbols already loaded for /usr/lib/libsec.so.1
Symbols already loaded for /usr/lib/libgen.so.1
Symbols already loaded for /usr/lib/libsocket.so.1
Symbols already loaded for /usr/lib/libnsl.so.1
Symbols already loaded for /usr/lib/libdl.so.1
Symbols already loaded for /usr/dt/lib/libpam.so.1
Symbols already loaded for /usr/lib/libc.so.1
Symbols already loaded for /usr/lib/libmp.so.2
Symbols already loaded for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
0xff21a374 in _waitid () from /usr/lib/libc.so.1
(gdb) bt
#0  0xff21a374 in _waitid () from /usr/lib/libc.so.1
#1  0xff1d8374 in _waitpid () from /usr/lib/libc.so.1
#2  0xff20ffd0 in system () from /usr/lib/libc.so.1
#3  0x7d1d0 in smb_panic ()
#4  0x641ac in fault_report ()
#5  signal handler called
#6  0xff1506bc in memcpy () from
/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
#7  0x2bc10 in query_name_response ()
#8  0x30ac0 in process_nmb_response ()
#9  0x30b44 in run_packet_queue ()
#10 0x21b0c in process ()
#11 0x22c10 in main ()
(gdb) 


[EMAIL PROTECTED]:55]- ./pstack  5051  
5051:   /usr/local/sbin/nmbd -d 10 -D
 ff21a374 waitid   (0, 268, ffbeebc8, 103)
 ff1d836c _waitpid (268, ffbeecb0, 100, 0, c, 0) + 54
 ff20ffc8 system   (112690, da000, 70d98, 7, d3db0, d3dc4) + 230
 0007d1c8 smb_panic (d3e0c, d3db0, d3dc4, 29, 0, ee800) + 28
 000641a4 fault_report (b, 0, ffbeefa8, 0, 0, 0) + 164
 ff219650 sigacthandler (b, 0, ffbeefa8, 68, 0, ffbef2dc) + 28
 --- called from signal handler with signal 11 (SIGSEGV) ---
 ff1506bc memcpy   (1122f0, 33f8d8, 33d618, 89, 0, ee800) + 1c
 00030ab8 process_nmb_response (33d618, 33d618, 9fc00, 0, ffbef320,
ffbef328) + d0
 00030b3c run_packet_queue (0, 0, 0, 7, ff235e10, 69e24) + 74
 00021b04 process  (1, f, bb8dc, 370, 9fc00, ee800) + 54
 00022c08 main (4, d8c00, 9fc00, a6800, 0, 0) + 8e8
 00020920 _start   (0, 0, 0, 0, 0, 0) + 108



[EMAIL PROTECTED]:56]- ./pmap  5051  
5051:   /usr/local/sbin/nmbd -d 10 -D
0001512K read/exec /usr/local/samba/bin/nmbd
0009E000240K read/write/exec   /usr/local/samba/bin/nmbd
000DA000   2528K read/write/exec [ heap ]
FF14  8K read/write/shared dev:85,2 ino:115369
FF15 16K read/exec /usr/platform/sun4u/lib/libc_psr.so.1
FF16 16K read/exec /usr/lib/libmp.so.2
FF172000  8K read/write/exec   /usr/lib/libmp.so.2
FF18664K read/exec /usr/lib/libc.so.1
FF234000 40K read/write/exec   /usr/lib/libc.so.1
FF25 24K 

RE: NMBD crashing in 2.2.7a (and 2.2.6, 2.2.5)

2003-03-28 Thread Edgar, Bob

Sorry, I forgot to include smb.conf. I am building the 2.2.8 release now
and will install it in the next couple of hours (assuming all builds
cleanly)
so any testing can be done against that release.

The current (2.2.7a) release we built with the following:
CC=/opt/SUNWspro/bin/cc ../../configure \
--with-automount \
--with-msdfs \
--with-nisplus-home \
--with-readline \
--with-pam \
--with-syslog \
--with-utmp \
--with-tdbsam \
--with-libsmbclient \
--with-configdir=/etc/samba \
--with-privatedir=/etc/samba/private \
--with-codepagedir='${prefix}/codepages' \
--with-lockdir=/var/samba/locks \
--localstatedir=/var/samba \
--mandir=/usr/local/share/man



#
# Global parameters
#
[global]
comment = %h.fra.ib.commerzbank.com
server string = Spicenet administrative server
max log size = 51200
debug timestamp = Yes
debug uid = Yes
debuglevel = 1
panic action = /bin/sleep 9
# When nmbd dies you will find a sleep process left on the machine.
# Using ps, find the parent of this process (it will be an nmbd
process),
# then attach to it using gdb.
# Type 'bt' to get a backtrace of the problem and mail it to the list
# [EMAIL PROTECTED]


workgroup = FRAIB
security = DOMAIN
encrypt passwords = Yes
#
# password server= * works but broke when the network melted down.
#
password server = pdcfraib dfsfraib sms1fraib
name resolve order = host, wins
 
load printers = No
printcap name = /etc/printcap
character set = ISO8859-1
wins proxy = Yes
wins server = pdcfraib.fra.ib.commerzbank.com
valid chars = 159 176 177 178 179 180 185 186 187 188 191 192 193 194 \
195 196 197 200 201 202 203 204 205 206 217 218 219 220 223 242 254
remote announce = pdclonib
NIS homedir = Yes

print command = /usr/bin/lp -c -s -d %p -o nobanner %s; rm %s
lpq command = /usr/bin/lpstat -o %p
lprm command = /usr/bin/cancel %p-%j
lppause command = /usr/bin/lp -H hold %p-%j
lpresume command = /usr/bin/lp -H resume %p-%j
oplocks = No
kernel oplocks = No
level2 oplocks = No
case sensitive = No
preserve case = Yes
username map = /etc/samba/username.map

[homes]
admin users = edgarb
comment = Home Directory
path = %H
writeable = Yes
create mask = 0755
browseable = No

[Clearcase]
comment = Clearcase software
path = /export/share/clearcase/v4.1
force user = root
force group = root
writeable = Yes
create mask = 0755
directory mask = 0755

[Clearcase42]
comment = Clearcase software
path = /export/share/clearcase/v4.2
force user = root
force group = root
writeable = Yes
create mask = 0755
directory mask = 0755

[CCData]
comment = Clearcase Data Store
path = /export/var/clearcase
write list = @ccaccess
create mask = 0775
directory mask = 0775
read only = yes

-Original Message-
From: Edgar, Bob [mailto:[EMAIL PROTECTED]
Sent: Freitag, 28. März 2003 14:20
To: '[EMAIL PROTECTED]'
Subject: NMBD crashing in 2.2.7a (and 2.2.6, 2.2.5)


Hi all,

I've been having a problem with nmbd crashing multiple times per day.
I suspect that the problem is caused by a shell script that tries to
lookup the name for ws to ws4000 to build a DNS reverse table.

It look something like this:

#!/bin/ksh
typeset -Z4 i=0
while (( $i  4000 )); do
host=ws$i
nmblookup $host | awk -v host=$host '
/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {
printf(%s  IN  A   %s\n, host, $1)
}
'
(( i = i + 1 ))
done

I have a level 10 debug log which I could send if it would be useful.

Let me know if there is any more information I can provide.

Bob



[EMAIL PROTECTED]:16]- uname -a
SunOS salt 5.7 Generic_106541-19 sun4u sparc SUNW,Ultra-60

[EMAIL PROTECTED]:02]- gdb /usr/local/samba/bin/nmbd   5051
GNU gdb 5.0
Copyright 2000 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 sparc-sun-solaris2.7...(no debugging symbols
found)...
/usr/proc/bin/5051: No such file or directory.
Attaching to program `/usr/local/samba/bin/nmbd', process 5051
Reading symbols from /usr/lib/libsec.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsec.so.1
Reading symbols from /usr/lib/libgen.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libnsl.so.1

Re: NMBD crashing in 2.2.7a (and 2.2.6, 2.2.5)

2003-03-28 Thread jra
On Fri, Mar 28, 2003 at 02:19:48PM +0100, Edgar, Bob wrote:
 Hi all,
 
 I've been having a problem with nmbd crashing multiple times per day.
 I suspect that the problem is caused by a shell script that tries to
 lookup the name for ws to ws4000 to build a DNS reverse table.
 
 It look something like this:
 
 #!/bin/ksh
 typeset -Z4 i=0
 while (( $i  4000 )); do
 host=ws$i
 nmblookup $host | awk -v host=$host '
   /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {
   printf(%s  IN  A   %s\n, host, $1)
   }
   '
 (( i = i + 1 ))
 done
 
 I have a level 10 debug log which I could send if it would be useful.
 
 Let me know if there is any more information I can provide.

I think this is a bug we fixed for 2.2.8. Can you please
try with the updated version.

Thanks,

Jeremy.


RE: NMBD crashing in 2.2.7a (and 2.2.6, 2.2.5)

2003-03-28 Thread Edgar, Bob
Thanks, I've built and installed the 2.2.8 version. I'll give feedback on
Monday.

bob

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Freitag, 28. März 2003 18:25
To: Edgar, Bob
Cc: '[EMAIL PROTECTED]'
Subject: Re: NMBD crashing in 2.2.7a (and 2.2.6, 2.2.5)


On Fri, Mar 28, 2003 at 02:19:48PM +0100, Edgar, Bob wrote:
 Hi all,
 
 I've been having a problem with nmbd crashing multiple times per day.
 I suspect that the problem is caused by a shell script that tries to
 lookup the name for ws to ws4000 to build a DNS reverse table.
 
 It look something like this:
 
 #!/bin/ksh
 typeset -Z4 i=0
 while (( $i  4000 )); do
 host=ws$i
 nmblookup $host | awk -v host=$host '
   /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ {
   printf(%s  IN  A   %s\n, host, $1)
   }
   '
 (( i = i + 1 ))
 done
 
 I have a level 10 debug log which I could send if it would be useful.
 
 Let me know if there is any more information I can provide.

I think this is a bug we fixed for 2.2.8. Can you please
try with the updated version.

Thanks,

Jeremy.