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

[reSIProcate] Assertion failure in ares_p rocess.c


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