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.


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

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.