Yellow Pages on Pyramid 98X

ian at rlvd.UUCP ian at rlvd.UUCP
Thu Feb 12 09:57:23 AEST 1987


   We have a Pyramid 98x running OSx 3.1 on an ethernet with a dozen or so
diskless Sun 3's served by diskfull Sun 3 file-servers. All these machines
are NFS'ed together. The NFS setup seems to work o.k. apart from one bug.
This bug causes corruption of a large file copied using nfs when the file-
server is heavily loaded. Anyway, that is not what I want to discuss. The
problem is that the Yellow Pages just will not work on our Pyramid.

   The Yellow Pages makes ok, but when ypcat is run, it crashes after it has
output 1200 bytes or so (in the same place every time). I tried debugging it,
but have so far not got very far. I think the problem lies in the Pyramid
RPC code. Specifically, clnt_udp.c contains a routine called clntudp_create
which creates a buffer for the transmission. I think this is interfacing
incorrectly with the sun rpc code which instead uses two routines,
clntudp_bufcreate and clntudp_create; the buffer size gets set incorrectly,
and when the buffer is full, an invalid address is generated, so causing the
" bus error, core dumped" message which has become my bug-bear.

  In Sun RPC clntudp_create takes 5 arguments and calls clntudp_bufcreate with
7 arguments, the 2 extra arguments being sendsz and recvsz. In Pyramid RPC
clntudp_create takes 5 arguments only, and clntudp_bufcreate does not exist.
I think it is this discrepancy which is at the root of the problem. I have
tried making Pyramids RPC with Sun's clnt_udp.c and several other permutations,
but these have proved to be no better.

   If anyone has come across this problem or can advise me, or point me to a
solution, I would be most grateful.

Ian Gunn.
-- 

Ian Gunn                               UK JANET : ian at uk.ac.rl.vd
Informatics Division                       ARPA : @ucl-cs.arpa:ian at vd.rl.ac.uk
Rutherford Appleton Laboratory             UUCP : ..!mcvax!ukc!rlvd!ian 
Chilton, Didcot,
Oxfordshire OX11 0QX
England.	                         'phone : (0235) 21900 ext: 5707

Four wheels good, two wheels better, four wheels good, two wheels better,
Four wheels good, two wheels better, four wheels good, two wheels better, .....



More information about the Comp.unix.wizards mailing list