nmblookup problems

Ron Alexander rcalex at home.com
Wed May 10 16:06:05 GMT 2000


Sorry, I do not have those tools (it's VOS not UNIX)

I will get it in the debugger again and save some appropriate snapshots.

I have been in the debugger before, but I am so fried at the moment I don't
trust myself anymore.

I am going to take a break for lunch, then re-run the debugger.

Thanks,
Ron

-----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