Having the same issue, Kamailio is crashing randomly when is setting a dlg variable:

(gdb) bt
#0  0x00007f29e36314e5 in print_lists (dlg=0x7f29ee8d8830) at dlg_var.c:277
#1  0x00007f29e3633637 in pv_set_dlg_variable (msg=0x7f2a2a477ad8, param=0x7f2a2a3ef530, op=254, val=0x7ffe0d36a030)
    at dlg_var.c:443
#2  0x00000000004b44db in lval_pvar_assign (h=0x7ffe0d36b4f0, msg=0x7f2a2a477ad8, lv=0x7f2a2a3ef5f8, rv=0x7f2a2a3f0028)
    at core/lvalue.c:352
#3  0x00000000004b4fd9 in lval_assign (h=0x7ffe0d36b4f0, msg=0x7f2a2a477ad8, lv=0x7f2a2a3ef5f8, rve=0x7f2a2a3f0020)
    at core/lvalue.c:400
#4  0x0000000000480500 in do_action (h=0x7ffe0d36b4f0, a=0x7f2a2a3ef940, msg=0x7f2a2a477ad8) at core/action.c:1458
#5  0x000000000048223c in run_actions (h=0x7ffe0d36b4f0, a=0x7f2a2a3ef940, msg=0x7f2a2a477ad8) at core/action.c:1584
#6  0x00000000004715d9 in do_action (h=0x7ffe0d36b4f0, a=0x7f2a2a3824c8, msg=0x7f2a2a477ad8) at core/action.c:703
#7  0x000000000048223c in run_actions (h=0x7ffe0d36b4f0, a=0x7f2a2a3824c8, msg=0x7f2a2a477ad8) at core/action.c:1584
#8  0x0000000000482980 in run_top_route (a=0x7f2a2a3824c8, msg=0x7f2a2a477ad8, c=0x7ffe0d36b4f0) at core/action.c:1669
#9  0x00000000005e68fd in receive_msg (
    buf=0xad3c40 <buf.7141> "SIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 192.168.1.2;branch=z9hG4bKfacc.56b09f180a8f8bc7bfa1a859c6f1661e.0;i=9a3cc1;received=192.168.1.2;rport=5060\r\nVia: SIP/2.0/TCP 192.168.1.1;branch=z9hG4bKfacc.05601fa50c"..., len=1017,
    rcv_info=0x7ffe0d36b990) at core/receive.c:493
#10 0x00000000004dc6b5 in udp_rcv_loop () at core/udp_server.c:543
#11 0x0000000000429f6b in main_loop () at main.c:1711
#12 0x000000000043424e in main (argc=13, argv=0x7ffe0d36c228) at main.c:2942
(gdb) info locals
varlist = 0x7574617473706973
__FUNCTION__ = "print_lists"
(gdb) list
272                     while (varlist) {
273                             LM_DBG("%.*s=%.*s (flags %i)\n",
274                                     varlist->key.len, varlist->key.s,
275                                     varlist->value.len, varlist->value.s,
276                                     varlist->vflags);
277                             varlist = varlist->next;
278                     }
279             }
280     }
281
(gdb) bt 1
#0  0x00007f29e36314e5 in print_lists (dlg=0x7f29ee8d8830) at dlg_var.c:277
(More stack frames follow...)
(gdb) bt 2
#0  0x00007f29e36314e5 in print_lists (dlg=0x7f29ee8d8830) at dlg_var.c:277
#1  0x00007f29e3633637 in pv_set_dlg_variable (msg=0x7f2a2a477ad8, param=0x7f2a2a3ef530, op=254, val=0x7ffe0d36a030)
    at dlg_var.c:443
(More stack frames follow...)

version: kamailio 5.4.8 (x86_64/linux) 053b3d
OS: CentOS 7 3.10.0-1160.45.1.el7.x86_64


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/2828/1104952582@github.com>