nmblookup problems
Ron Alexander
rcalex at home.com
Wed May 10 16:46:52 GMT 2000
Here is what I see in my debugger.
1: # 10: read_udp_socket (line 179 in module util_sock)
1: # 9: read_packet (line 693 in module nmblib)
1: # 8: receive_packet (line 947 in module nmblib)
1: # 6: name_query (line 277 in module namequery)
1: # 5: query_one (line 100 in module nmblookup)
1: # 3: main (line 271 in module nmblookup)
It seems simple, the select has indicated that a socket is ready for reading
and when we go to read it we hang.
Any ideas?
-----Original Message-----
From: davecb at scot.Canada.Sun.COM [mailto:davecb at scot.Canada.Sun.COM]On
Behalf Of David Collier-Brown
Sent: May 10, 2000 11:55 AM
To: rcalex at home.com
Cc: Multiple recipients of list SAMBA-TECHNICAL
Subject: Re: nmblookup problems
Ron Alexander wrote:
>
> Can anyone tell me what is happening here?
>
> ready 11:28:41
> nmblookup -B 255.255.255.255 -d 2 '*'
> added interface ip=134.111.220.160 bcast=134.111.220.255
nmask=255.255.255.0
> added interface ip=127.0.0.1 bcast=127.0.0.255 nmask=255.255.255.0
> gethostname got swslem12
> socket 7 bound to addr:port 0.0.0.0:0
> Socket 7 opened for port 0.
> querying * on 255.255.255.255
> FD 7 is set before select
> Num FDS ready=1, errno=0 ()
> FD 7 is set after select
> Got a positive name query response from 134.111.57.12 ( 134.111.220.160 )
> FD 7 is set before select
> Num FDS ready=0, errno=1081 (Timeout period has expired.)
> FD 7 is set after select
>
> At this point it waits forever!
Off the top of my pointy head, sounds like
a problem in the select/socket code...
Do you have a call-tracer like truss or strace? It should
give you something like
$ truss -d nmblookup -B 255.255.255.255 -d 2 '*'
Base time stamp: 957973997.9864 [ Wed May 10 11:53:17 EDT 2000 ]
0.0000 execve("/export/local/samba/bin/nmblookup", 0xFFBEF3AC,
0xFFBEF3C8) argc = 6
0.0555 stat("/export/local/samba/bin/nmblookup", 0xFFBEF0F8) = 0
0.0617 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
0.0621 open("/usr/lib/libsec.so.1", O_RDONLY) = 3
0.0623 fstat(3, 0xFFBEEED4) = 0
...
If so we can compare mine with yours.
--dave
--
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