< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Assertion failure in ares_p rocess.c


Hi,

I'll look into this. Can you tell me more about your configuation? E.g., is it actually IPv4 or IPv6 that you are using? Do you have epoll enabled? What platform (Windows, etc) are you running on?

Thanks,
Kennard

2011/2/19 ximalaya <ims3g@xxxxxxx>
Hi,

 I encountered ares assertion failure today. Details please see below trace log.
The repro server was build with IPv6 enabled and resip-ares using latest svn codes.
INFO | 20110219-182105.421 | repro | REPRO:APP | 0x100b2ef8 | ResponseContext.cx
x:279 | Creating new client transaction c8612e4c96f38c1a -> sip:user@xxxxxx
assertion "family == AF_INET || family == AF_INET6" failed: file "../ares/ares_p
rocess.c", line 776, function: open_udp_socket

After checking the code, I find the failure is here, can someone check the address family field is initialized properly?

static int open_udp_socket(ares_channel channel, struct server_state *server) {

#ifdef USE_IPV6
  family = server->family;
  assert(family == AF_INET || family == AF_INET6); //line 776
#else
  family = AF_INET;
#endif

}


Thanks,
Xmly





_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel