We update backtrack again :
GNU gdb (CentOS Stream) 14.2-3.el9
Copyright (C) 2023 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/sbin/kamailio...
warning: Can't open file /dev/zero (deleted) during file-backed mapping note
processing
[New LWP 309540]
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.centos.org/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
--Type <RET> for more, q to quit, c to continue without paging--c
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/sbin/kamailio -DD -P /run/kamailio/kamailio.pid -f
/usr/local/etc/ka'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007efc5d38902c in __delete_call (call=0x7efc5e2cd710, credit_data=0x7efc5e2cd4a0)
at cnxcc_mod.c:879
879 clist_rm(call, next, prev);
(gdb) bt
#0 0x00007efc5d38902c in __delete_call (call=0x7efc5e2cd710, credit_data=0x7efc5e2cd4a0)
at cnxcc_mod.c:879
#1 0x00007efc5d383f27 in __stop_billing (callid=0x7efc5e2cfe38) at cnxcc_mod.c:643
#2 0x00007efc5d381928 in __dialog_terminated_callback (cell=0x7efc5e2cfdc0, type=64,
_params=0x7efc5d7a8800 <params>) at cnxcc_mod.c:479
#3 0x00007efc5d6f7490 in run_dlg_callbacks (type=64, dlg=0x7efc5e2cfdc0,
req=0x7efc7eee50f0, rpl=0x0, dir=2, dlg_data=0x0) at dlg_cb.c:269
#4 0x00007efc5d725c84 in dlg_terminated (req=0x7efc7eee50f0, dlg=0x7efc5e2cfdc0, dir=2)
at dlg_handlers.c:404
#5 0x00007efc5d735844 in dlg_onroute (req=0x7efc7eee50f0, route_params=0x7ffced179310,
param=0x0) at dlg_handlers.c:1502
#6 0x00007efc5dae7e88 in run_rr_callbacks (req=0x7efc7eee50f0, rr_param=0x7ffced1793d0)
at rr_cb.c:96
#7 0x00007efc5dad6e59 in after_loose (_m=0x7efc7eee50f0, preloaded=0) at loose.c:1021
#8 0x00007efc5dad75e5 in loose_route_mode (_m=0x7efc7eee50f0, _mode=0) at loose.c:1056
#9 0x00007efc5dae9cfb in w_loose_route (msg=0x7efc7eee50f0, p1=0x0, p2=0x0) at
rr_mod.c:273
#10 0x0000000000443202 in do_action (h=0x7ffced179f80, a=0x7efc7eea8380,
msg=0x7efc7eee50f0) at core/action.c:1121
#11 0x0000000000450a6d in run_actions (h=0x7ffced179f80, a=0x7efc7eea8380,
msg=0x7efc7eee50f0) at core/action.c:1618
#12 0x000000000045110f in run_actions_safe (h=0x7ffced17b410, a=0x7efc7eea8380,
msg=0x7efc7eee50f0) at core/action.c:1681
#13 0x00000000005f3e0c in rval_get_long (h=0x7ffced17b410, msg=0x7efc7eee50f0,
i=0x7ffced17a800, rv=0x7efc7eea84e8, cache=0x0)
at core/rvalue.c:973
#14 0x00000000005f8c20 in rval_expr_eval_long (h=0x7ffced17b410, msg=0x7efc7eee50f0,
res=0x7ffced17a800, rve=0x7efc7eea84e0)
at core/rvalue.c:1854
#15 0x0000000000442c83 in do_action (h=0x7ffced17b410, a=0x7efc7eeabec0,
msg=0x7efc7eee50f0) at core/action.c:1097
#16 0x0000000000450a6d in run_actions (h=0x7ffced17b410, a=0x7efc7eea8130,
msg=0x7efc7eee50f0) at core/action.c:1618
#17 0x000000000043f70a in do_action (h=0x7ffced17b410, a=0x7efc7ee74730,
msg=0x7efc7eee50f0) at core/action.c:709
#18 0x0000000000450a6d in run_actions (h=0x7ffced17b410, a=0x7efc7ee6ee50,
msg=0x7efc7eee50f0) at core/action.c:1618
#19 0x00000000004511d7 in run_top_route (a=0x7efc7ee6ee50, msg=0x7efc7eee50f0, c=0x0) at
core/action.c:1701
#20 0x00000000005ab16e in receive_msg (
buf=0x9f47e0 <buf> "BYE
sip:gw+internal_sip_gw03@172.16.172.242:65000;transport=udp;gw=internal_sip_gw03
SIP/2.0\r\nVia: SIP/2.0/UDP
172.16.172.230:5080;TH=dcv;rport;branch=z9hG4bKUygrHZ097B80N\r\nMax-Forwards: 69\r\nFrom:
<si"..., len=823, rcv_info=0x7ffced17baa0)
at core/receive.c:518
#21 0x00000000006f9272 in udp_rcv_loop () at core/udp_server.c:751
#22 0x000000000042dcb6 in main_loop () at main.c:1815
#23 0x0000000000439e7d in main (argc=10, argv=0x7ffced17c338) at main.c:3256
(gdb) info locals
__func__ = "__delete_call"
(gdb) list
874 LM_BUG("number of calls dropped to negative value:
%d\n",
875 credit_data->number_of_calls);
876 }
877
878 // Remove (and free) the call from the list of calls of the current
credit_data
879 clist_rm(call, next, prev);
880 __free_call(call);
881 }
882
883 // must be called with lock held on credit_data
(gdb) Quit
(gdb) p *call
$1 = {prev = 0x0, next = 0x0, lock = {lock = {val = 0}, locker_pid = {val = 0},
rec_lock_level = 0}, confirmed = 1 '\001',
max_amount = 10396.000093000001, money_based = {connect_cost = 1, cost_per_second =
15.217000000000001, initial_pulse = 6,
final_pulse = 1}, start_timestamp = 1730481102, consumed_amount = 91.302000000000007,
connect_amount = 1, dlg_h_entry = 1117,
dlg_h_id = 7339, client_id = {s = 0x7efc5e2cd690 "53", len = 2}, sip_data =
{callid = {s = 0x0, len = 0}, from_uri = {s = 0x0, len = 0},
from_tag = {s = 0x0, len = 0}, to_uri = {s = 0x0, len = 0}, to_tag = {s = 0x0, len =
0}}}
(gdb)
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4009#issuecomment-2448762008
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4009/2448762008(a)github.com>