[OpenAFS-devel] Tracing NameToId
Barry Fawthrop
barry@isscp.com
Mon, 06 Apr 2009 11:41:30 -0400
I would expect a reply from my server and the IP Address it reads from ThisCellServDB file
How host is set to this value 3065188196 I don't understand ??
following the rxi_ListenerProc procedure I don't see where host is set to anything
The rxi_ReadPacket line is the first time host is used after it was defined as afs_uint32
Also how does it jump from xdr_idlist to savecontext.
xdr_idlist does not call call savecontext so how does the program step through and jump from
xdr_idlist to savecontext and rxi_ListenerProc.
Thanks again
Derrick Brashear wrote:
> On Mon, Apr 6, 2009 at 10:31 AM, Barry Fawthrop <barry@isscp.com> wrote:
>
>> I'm trying to trace why NameToId sends the request to the server
>> but fails to receive the reply back from the server
>>
>> pr_SNameToId (in ptuser) calls ubik_PR_NameToID
>> ubik_PR_NameToID (in ptint) calls PR_NameToID
>> PR_NameToID (in ptint) calls xdr_namelist
>> PR_NameToID then calls xdr_idlist
>>
>> This suddenly jumps to savecontext
>>
>> How does this then jump to
>> savecontext
>> called by LWP_QWait
>> called by IOMGR_Select
>> called by rxi_ListenerProc
>> called by rx_ListenerProc
>>
>> At this point the variables of savecontext are:
>> ep 0xaaf7a
>> savearea 0xb6b52f74
>> topstack 0xb6b60e0c
>> setjmp_buffer [18]
>> sp 0x0
>> *sp
>>
>> code 2
>>
>>
>> This continues through rxi_ListenerProc until
>> rxi_readPacket which calls rxi_Recvmsg
>> and then bombs out with
>> Previous frame inner to this frame (gdb could not unwind past this frame)
>> and __dyld_misaligned_stack_error
>> 0x8f318c02 <+0000> movdqa %xmm0,0x10(%esp)
>> 0x8f318c08 <+0006> movdqa %xmm1,0x20(%esp)
>> 0x8f318c0e <+0012> movdqa %xmm2,0x30(%esp)
>> 0x8f318c14 <+0018> movdqa %xmm3,0x40(%esp)
>>
>> host somehow has the value 3065188196 which I think translates to
>> IP 182.179.15.100 How I still don't know
>>
>>
> what server do you expect a reply from? and what do you mean "how"?
>