[reSIProcate] Bug in ares

Johannes Dohmen johannes.dohmen at web.de
Fri Jan 11 06:04:34 CST 2008


Hi ims3g,

 >I wondered it was caused by alignment issue.

 >After change line
 >memset(newserv + (*nservers * sizeof(struct server_state)), '\0', 
 >sizeof(struct server_state));
 >to
 >memset(&newserv[*nservers], '\0', sizeof(struct server_state));

 >The coredump seemed gone.
Same here. I inspected the addresses of
newserv + (*nservers * sizeof(struct server_state))
and
newserv[*nservers]
while they are the same for the first nameserver they indeed differ for 
  the second. So I agree to your assumption that alignment causes the error.

Greetings
Johannes Dohmen



More information about the resiprocate-devel mailing list