nmbd dying...

Michael H. Warfield mhw at wittsend.com
Tue Sep 29 14:29:56 GMT 1998


Hey gang...

	I've been noticing for some time that I've been having a problem
with nmbd and the latest snapshots.  In particular, I've noticed that
after a while, nmbd disappears.  More specifically, on the system I have
running as a WINS server, the parent nmbd disappears.  On the systems
that are NOT the WINS server, the only nmbd process disappears.  One
system is a RedHat 5.1 system running Linux 2.1.123 and another is a
RedHat 4.2 system running Linux 2.0.35.  Both exhibit the same problem
and the problem was still there with todays snapshot.

	I think I saw a couple of other messages (now deleted) regarding
something that might have been similar on this list a few days ago...  I
think one was from Luke and I'm going to check with him when I get into
the office...

	I decided to take a closer peek when I noticed the nmbd processes
on two systems disappeared simultaneously just a few minutes ago.

	I restarted the samba subsystems and then ran gdb on the nmbd binary.
I then attached to the main nmbd process and started to play around expecting
it to eventually DO SOMETHING.  Well, it did, and not at all what I expected.
As soon as I hit "Ctrl-Alt-Delete" on my Windows NT box, nmbd segfaulted.

	I can reproduce it every time.  Get nmbd up and running and then
go to log into the workstation and the nmbd processes are toast.  I've
gotten two gdb traces, both the same.

	The workstation is running Windows NT 4.0 SP3 and the last login was
to the WittsEnd domain for which Samba on alcove.wittsend.com is the PDC.

	The gdb trace is from Alcove...

	Here is the trace from gdb:

(gdb) attach 7419
Attaching to program `/mnt2/src/samba/source/bin/nmbd', process 7419
Reading symbols from /usr/lib/libreadline.so.3...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/libtermcap.so.2...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.1...done.
Reading symbols from /lib/libnss_nis.so.1...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libnss_dns.so.1...done.
Reading symbols from /lib/libresolv.so.2...done.
0x400da83e in __select ()
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
process_logon_packet (p=0x80abf88, buf=0x80ac0dc "\022", len=104, 
    mailslot=0x807e868 "\\MAILSLOT\\NET\\NTLOGON")
    at nmbd/nmbd_processlogon.c:174
174           ntversion = IVAL(q, 0); q += 4;
(gdb) where
#0  process_logon_packet (p=0x80abf88, buf=0x80ac0dc "\022", len=104, 
    mailslot=0x807e868 "\\MAILSLOT\\NET\\NTLOGON")
    at nmbd/nmbd_processlogon.c:174
#1  0x805485c in process_dgram (p=0x80abf88) at nmbd/nmbd_packets.c:1277
#2  0x8054f9a in run_packet_queue () at nmbd/nmbd_packets.c:1588
#3  0x804acbc in process () at nmbd/nmbd.c:264
#4  0x804b868 in main (argc=2, argv=0xbffff914) at nmbd/nmbd.c:763
(gdb) 

	Anything else I can get'cha?

	Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw at WittsEnd.com
  (The Mad Wizard)      |  (770) 925-8248   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!


More information about the samba-technical mailing list