thanks for your commit,i try it.it's work.however, when set _siprepo_table,it't
crash,this is gdb debug.
```
/corefile>gdb /home/ucp/ka/sbin/kamailio core-kamailio-100062-1681861889
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-120.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/ucp/ka/sbin/kamailio...done.
[New LWP 100062]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./kamailio -P /home/ucp/ka/kamailio.pid -f
/home/ucp/ka/etc/kamailio//kamailio.'.
Program terminated with signal 11, Segmentation fault.
#0 0x00002b69dddb61a7 in siprepo_msg_set (msg=0x2b69da63d000, msgid=0x7fff491e8f70,
rmode=1) at siprepo_data.c:245
245 _siprepo_table[slotid].plist->prev = it;
Missing separate debuginfos, use: debuginfo-install glibc-2.17-325.el7_9.x86_64
(gdb)
(gdb)
(gdb)
(gdb) bt
#0 0x00002b69dddb61a7 in siprepo_msg_set (msg=0x2b69da63d000, msgid=0x7fff491e8f70,
rmode=1) at siprepo_data.c:245
#1 0x00002b69dddbb182 in ki_sr_msg_push (msg=0x2b69da63d000, msgid=0x7fff491e8f70,
rmode=1) at siprepo_mod.c:156
#2 0x00002b69dddbb8b6 in w_sr_msg_push (msg=0x2b69da63d000, pmsgid=0x2b69da6080d0
"X\200`\332i+",
prmode=0x2b69da608268 "\370\201`\332i+") at siprepo_mod.c:181
#3 0x0000000000466069 in do_action (h=0x7fff491e9860, a=0x2b69da60cc38,
msg=0x2b69da63d000) at core/action.c:1093
#4 0x0000000000473234 in run_actions (h=0x7fff491e9860, a=0x2b69da60cc38,
msg=0x2b69da63d000) at core/action.c:1587
#5 0x00000000004738b0 in run_actions_safe (h=0x7fff491eb5d0, a=0x2b69da60cc38,
msg=0x2b69da63d000) at core/action.c:1651
#6 0x00000000006ccf5f in rval_get_long (h=0x7fff491eb5d0, msg=0x2b69da63d000,
i=0x7fff491ea188, rv=0x2b69da60dd50, cache=0x0)
at core/rvalue.c:955
#7 0x00000000006d1b2d in rval_expr_eval_long (h=0x7fff491eb5d0, msg=0x2b69da63d000,
res=0x7fff491ea188, rve=0x2b69da60dd48)
at core/rvalue.c:1855
#8 0x0000000000465a36 in do_action (h=0x7fff491eb5d0, a=0x2b69da60ea88,
msg=0x2b69da63d000) at core/action.c:1057
#9 0x0000000000473234 in run_actions (h=0x7fff491eb5d0, a=0x2b69da60ca00,
msg=0x2b69da63d000) at core/action.c:1587
#10 0x0000000000465edd in do_action (h=0x7fff491eb5d0, a=0x2b69da613308,
msg=0x2b69da63d000) at core/action.c:1072
#11 0x0000000000473234 in run_actions (h=0x7fff491eb5d0, a=0x2b69da60ab30,
msg=0x2b69da63d000) at core/action.c:1587
#12 0x00000000004626eb in do_action (h=0x7fff491eb5d0, a=0x2b69da5ea678,
msg=0x2b69da63d000) at core/action.c:705
#13 0x0000000000473234 in run_actions (h=0x7fff491eb5d0, a=0x2b69da5e14d0,
msg=0x2b69da63d000) at core/action.c:1587
#14 0x0000000000473978 in run_top_route (a=0x2b69da5e14d0, msg=0x2b69da63d000, c=0x0) at
core/action.c:1672
#15 0x00000000005d1e0a in receive_msg (
buf=0xb070e0 <buf.7262> "INVITE sip:1005@192.168.10.60:50666
SIP/2.0\r\nVia: SIP/2.0/UDP
192.168.10.77:5080;rport;branch=z9hG4bK7a25vaHj62v1B\r\nMax-Forwards: 69\r\nFrom:
\"\" <sip:0000000000@192.168.10.77>;tag=pe7re1ppQ3t3Q\r\nTo:
<si"..., len=1532,
rcv_info=0x7fff491ebce0) at core/receive.c:515
#16 0x00000000004ad697 in udp_rcv_loop () at core/udp_server.c:587
#17 0x000000000042a4ee in main_loop () at main.c:1510
#18 0x0000000000437c75 in main (argc=5, argv=0x7fff491ec5b8) at main.c:3086
(gdb) f 0
#0 0x00002b69dddb61a7 in siprepo_msg_set (msg=0x2b69da63d000, msgid=0x7fff491e8f70,
rmode=1) at siprepo_data.c:245
245 _siprepo_table[slotid].plist->prev = it;
(gdb) info local
hid = 1910957457
slotid = 145
dsize = 1928
vbr = 0x2b69da620738
scallid = {
s = 0xb071ce <buf.7262+238> "5131603a-5924-123c-f09f-b827ebf8b6d3\r\nCSeq:
66390367 INVITE\r\nContact: <sip:mod_sofia@192.168.10.77:5080>\r\nUser-Agent:
FreeSWITCH-mod_sofia/1.10.1-dev-25-a4c5802372~32bit\r\nAllow: INVITE, ACK, BYE,
CANC"..., len = 36}
it = 0x2b69de2697d0
__FUNCTION__ = "siprepo_msg_set"
(gdb) p slotid
$1 = 145
(gdb) p _siprepo_table[145]
$2 = {plist = 0x0, lock = {val = 1}}
(gdb)
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3418#issuecomment-1514243225
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3418/1514243225(a)github.com>