[sr-dev] set_ruri_host crash
Juha Heinanen
jh at tutpro.com
Fri Apr 7 14:20:37 CEST 2017
k 5.1 crashes when executing this:
$var(test_uri) = "tel:+358447058060";
xlog("L_INFO", "****** extracting domain from <$var(test_uri)>\n");
$rd = $(var(test_uri){uri.host});
xlog("L_INFO", "****** request uri is <$ru>\n");
Apr 7 15:15:17 lohi /usr/bin/sip-proxy[14477]: INFO: ****** extracting domain from <tel:+358447058060>
Apr 7 15:15:17 lohi kernel: [63113.914477] sip-proxy[14477]: segfault at 7c0410 ip 00007f9d268703e0 sp 00007ffe1d5bcd20 error 7 in pv.so[7f9d2680a000+9e000]
Apr 7 15:15:17 lohi /usr/bin/sip-proxy[14503]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 38
bt is below.
-- juha
-----------------------------------------------------------------
(gdb) bt
#0 0x00007f9d268703e0 in pv_set_ruri_host (msg=0x7f9d33607090,
param=0x7f9d32ca42c0, op=254, val=0x7ffe1d5bcfc0) at pv_core.c:2243
#1 0x00000000005964dc in lval_pvar_assign (h=0x7ffe1d5bd770,
msg=0x7f9d33607090, lv=0x7f9d32ca4240, rv=0x7f9d32ca4918)
at core/lvalue.c:351
#2 0x0000000000596eed in lval_assign (h=0x7ffe1d5bd770, msg=0x7f9d33607090,
lv=0x7f9d32ca4240, rve=0x7f9d32ca4910) at core/lvalue.c:399
#3 0x00000000004807c4 in do_action (h=0x7ffe1d5bd770, a=0x7f9d32ca44e0,
msg=0x7f9d33607090) at core/action.c:1430
#4 0x000000000048224e in run_actions (h=0x7ffe1d5bd770, a=0x7f9d32ca3170,
msg=0x7f9d33607090) at core/action.c:1552
#5 0x0000000000482a11 in run_top_route (a=0x7f9d32ca3170, msg=0x7f9d33607090,
c=0x0) at core/action.c:1641
#6 0x000000000059a3e0 in receive_msg (
buf=0x1242930 "SUBSCRIBE sip:127.0.0.1:5080;transport=tcp SIP/2.0\r\nVia: SIP/2.0/TCP 192.168.43.192:35987;branch=z9hG4bK60fe34942bb48c45;rport\r\nContact: <sip:test at test.tutpro.com;gr=urn:uuid:47759291-c9db-4eb3-a540-5"..., len=945,
rcv_info=0x7f9d28a2b5d8) at core/receive.c:263
#7 0x0000000000624f83 in receive_tcp_msg (
tcpbuf=0x7f9d28a2b8b0 "SUBSCRIBE sip:127.0.0.1:5080;transport=tcp SIP/2.0\r\nVia: SIP/2.0/TCP 192.168.43.192:35987;branch=z9hG4bK60fe34942bb48c45;rport\r\nContact: <sip:test at test.tutpro.com;gr=urn:uuid:47759291-c9db-4eb3-a540-5"...,
len=945, rcv_info=0x7f9d28a2b5d8, con=0x7f9d28a2b5c0)
at core/tcp_read.c:1277
#8 0x0000000000626fa3 in tcp_read_req (con=0x7f9d28a2b5c0,
bytes_read=0x7ffe1d5bdc68, read_flags=0x7ffe1d5bdc6c)
at core/tcp_read.c:1445
#9 0x0000000000629c26 in handle_io (fm=0x7f9d3366cb38, events=1, idx=-1)
at core/tcp_read.c:1619
#10 0x000000000061bcce in io_wait_loop_epoll (h=0xa9a900 <io_w>, t=2, repeat=0)
at core/io_wait.h:1065
#11 0x000000000062baad in tcp_receive_loop (unix_sock=41)
at core/tcp_read.c:1789
#12 0x0000000000502498 in tcp_init_children () at core/tcp_main.c:4816
#13 0x0000000000424b9f in main_loop () at main.c:1708
#14 0x000000000042b2e9 in main (argc=17, argv=0x7ffe1d5be308) at main.c:2639
(gdb)
More information about the sr-dev
mailing list