We're using Carrier route with about 53,000 routes stored in a mysql databse. We're getting this crash in production that we never had in the lab.
The bt is below. Does anyone have any suggestions?
nline static void free_to_params(struct to_body* tb) { struct to_param *tp=tb->param_lst; struct to_param *foo; while (tp){ foo = tp->next; <-- **** Line 75 ***** pkg_free(tp); tp=foo; } }
-Jonathan
#0 free_to (tb=0x817cf10) at parser/parse_to.c:75 #1 0x080daf70 in clean_hdr_field (hf=0x8a8ee18) at parser/hf.c:182 #2 0x080db05b in free_hdr_field_lst (hf=0x8a905b8) at parser/hf.c:209 #3 0x080db12d in free_sip_msg (msg=0x8193030) at parser/msg_parser.c:660 #4 0x08094695 in receive_msg ( buf=0x8168220 "SIP/2.0 183 Session Progress\r\nf: "16512552900"sip:16512552900@206.80.65.90;tag=as781b438d\r\nt: sip:+16513401989@lefty.netlogic.net;tag=c7ad5f5020080822192510\r\ni: 396fb801653abd6f605a12153e0e3e72@20"..., len=1271, rcv_info=0xbf82f844) at receive.c:206 #5 0x080d3e0d in udp_rcv_loop () at udp_server.c:438 #6 0x0806c8f5 in main (argc=3, argv=0xbf82fa34) at main.c:834 (gdb) backtrace full #0 free_to (tb=0x817cf10) at parser/parse_to.c:75 No locals. #1 0x080daf70 in clean_hdr_field (hf=0x8a8ee18) at parser/hf.c:182 __FUNCTION__ = "clean_hdr_field" #2 0x080db05b in free_hdr_field_lst (hf=0x8a905b8) at parser/hf.c:209 No locals. #3 0x080db12d in free_sip_msg (msg=0x8193030) at parser/msg_parser.c:660 No locals. #4 0x08094695 in receive_msg ( buf=0x8168220 "SIP/2.0 183 Session Progress\r\nf: "16512552900"sip:16512552900@206.80.65.90;tag=as781b438d\r\nt: sip:+16513401989@lefty.netlogic.net;tag=c7ad5f5020080822192510\r\ni: 396fb801653abd6f605a12153e0e3e72@20"..., len=1271, rcv_info=0xbf82f844) at receive.c:206 msg = (struct sip_msg *) 0x8193030 __FUNCTION__ = "receive_msg" #5 0x080d3e0d in udp_rcv_loop () at udp_server.c:438 len = 1271 buf = "SIP/2.0 183 Session Progress\r\nf: "16512552900"sip:16512552900@206.80.65.90;tag=as781b438d\r\nt: sip:+16513401989@lefty.netlogic.net;tag=c7ad5f5020080822192510\r\ni: 396fb801653abd6f605a12153e0e3e72@20"... tmp = <value optimized out> from = (union sockaddr_union *) 0x8a91318 fromlen = 16 ri = {src_ip = {af = 2, len = 4, u = {addrl = {2850040017, 135426432, 3213031528, 3085483479}, addr32 = {2850040017, 135426432, 3213031528, 3085483479}, addr16 = {10449, 43488, 29056, 2066, 63592, 49026, 48599, 47080}, addr = "Ñ(à©\200q\022\bhø\202¿×½è·"}}, dst_ip = {af = 2, len = 4, u = {addrl = {509300942, 0, 0, 0}, addr32 = {509300942, 0, 0, 0}, addr16 = {20686, 7771, 0, 0, 0, 0, 0, 0}, addr = "ÎP[\036", '\0' <repeats 11 times>}}, src_port = 5060, dst_port = 5060, proto = 1, proto_reserved1 = 0, proto_reserved2 = 0, src_su = {s = {sa_family = 2, sa_data = "\023ÄÑ(à©\000\000\000\000\000\000\000"}, sin = {sin_family = 2, sin_port = 50195, sin_addr = {s_addr = 2850040017}, sin_zero = "\000\000\000\000\000\000\000"}, sin6 = {sin6_family = 2, sin6_port = 50195, sin6_flowinfo = 2850040017, sin6_addr = {in6_u = {u6_addr8 = '\0' <repeats 15 times>, u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, u6_addr32 = {0, 0, 0, 0}}}, sin6_scope_id = 0}}, bind_address = 0x818dd90} __FUNCTION__ = "udp_rcv_loop" #6 0x0806c8f5 in main (argc=3, argv=0xbf82fa34) at main.c:834 cfg_log_stderr = 0 cfg_stream = (FILE *) 0xa179008 c = <value optimized out> r = <value optimized out> tmp = 0x8148b9c "ÿÿÿÿ" tmp_len = <value optimized out> port = <value optimized out> proto = <value optimized out> ret = <value optimized out> seed = 639236262 rfd = 4 __FUNCTION__ = "main"