[OpenAFS-devel] pr_Initialize falis when called within a simple application

John Hayes jhh@envirobat.org
Tue, 17 Aug 2004 14:32:05 -0400 (EDT)


The portion of the strace for klog that appears relevant is:
sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(7004),
sin_addr=inet_addr("35.9.7.10")}, msg_iov(2)=[{"A\"F\344\4\
240\235\364\0\0\0\1\0\0\0\1\0\0\0\1\1\5\0\0"..., 28},
{"\0\0\0\26\0\0\0\3jhh\0\0\0\0\0A\"F\344AI\323\344\0\0\0"..., 44}], msg_


While the similar portion of strace for afstest is:
sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42166),
sin_addr=inet_addr("164.182.7.8")}, msg_iov(2)=[{"A\"G*\4\
242p\324\0\0\0\1\0\0\0\1\0\0\0\1\1\5\0\0\0\0\0"..., 28},
{"\0\0\0\26\0\0\0\3jhh\0\0\0\0\0A\"G*AI\324*\0\0\0\10\333"..., 44}],
m

What is boils down to at  this point is that the afstest application is
going to the wrong server.

To me this doesn't make any sense as they both were opening the same
config files.

Of course I noticed that they were making the new connection call from
different places.


>> My test program reports a connection error and then calls for a new
>> connection twice before failing wile the klog call displays no such
>> performance.
>
> strace both, and grep for calls to open. Do they both open the same files?