nmbd always locks up

David Collier-Brown David.Collier-Brown at canada.sun.com
Thu Aug 31 14:47:38 GMT 2000


Markus Wenzel wrote:
> 
> Thanks for your tips!
> 
> truss only gives one single line:
> 
> sendto(6, "83\f8580\0\0\001\0\0\0\0".., 62, 0, 0xFFBEEFB0, 16) (sleeping...)
> 
> pstack says:
> /usr/proc/bin/pstack 20402           [/opt/brokat/twister-4.0]
> 20402:  /usr/local/samba/bin/nmbd -D -d 1
>  ff214ab8 sendto   (6, ffbef038, 3e, 0, ffbeefb0, 10)
>  000421c8 ???????? (6, ffbef038, 3e, ac1106e0, 89, ffbef438)
>  00042720 send_packet (ffbef758, ffbefb1e, 0, 4, 69, ffbef518) + 80
>  0002797c reply_netbios_packet (bbeb8, 0, 0, 0, 3f480, ffbefb18) + 30c
>  00022da4 process_name_query_request (9a248, bbeb8, bbed8, 6, ff233968,
> 4b97c) + 4f0
>  00028b6c ???????? (bbeb8, 84800, 9, 4, 0, ffbefb80)
>  00028d74 run_packet_queue (0, 0, 0, ffffeff0, ff233968, 4b97c) + 6c
>  0001c0d8 ???????? (1, 11, 7f, 2f5, ff236508, ff236844)
>  0001ce38 main     (1, ffbefd54, ffbefd68, 94b80, 0, 0) + 77c
>  0001b030 _start   (0, 0, 0, 0, 0, 0) + 5c
> 
> It seems like it hangs while sending a packet???

	Exactly!

	Team guys, does this look to you like nmbd
	never gets past trying to send the reply to a netbios 
	name query?

	send_packet(struct packet_struct *p) 
		calls
	send_udp(int fd,char *buf,int len,struct in_addr ip,int port)
		which calls
	sendto(fd,buf,len,0,(struct sockaddr *)&sock_out,              	
					sizeof(sock_out)) 

Markus Wenzel wrote:
> > > I have a serious problem with nmbd. We have to Sun E 450
> > machines running
> > > Samba 2.0.7, one shares /export/home, the other shares
> > developer tools. Both
> > > are configured identically (smb.conf) and use an NT PDC for user
> > > authentication with a usermap file.
> > > On the one with the tools (hostname sun-qa-04) nmbd locks up after about
> > > 10-20 minutes, on the other it is working perfectly all the
> > time. When nmbd
> > > is locked, no more debug messages are written into the log.nmb
> > and you need
> > > a kill -9 to get rid of the process.

-- 
David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com




More information about the samba-technical mailing list