[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: bug in address family checking?



On Tue, Dec 23, 2008 at 6:16 AM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
> ... everything
> that calls connection_init() passes it a chunk of RAM that it got from
> tor_malloc_zero, which should also zero out connection->addr, which
> should result in it having addr_family 0, not addr_family 20 (which is
> what the user was seeing on IRC).  Right?

correct.  (there were some other high values set that appeared to be
uninitialized or corrupted a few times as well)


> If this is happening on a edge_connection after it finds a cached dns
> answer, then the addr field has already been changed from its original
> value. Check out the code in dns.c around line 688.

i see that now.  thanks!


> To debug this thing, the easiest solution  is probably to use gdb to
> a stack trace for when the warning message is triggered, to sew where
> exactly it's happening in the code.

sounds good.  that would also allow inspection of values to see if
there is corruption going on or some other issue.

best regards,