[OpenSIPS-Devel] Debugging lock problem
Daniel Zanutti
daniel.zanutti at gmail.com
Wed Aug 2 17:24:40 EDT 2017
I'm having lock problem.
How can I diagnose exactly where the lock problem occurred?
I got this using gdb on one process, but there are too many to look at each
when server is not handling calls.
Is there any way to force generate a coredump to take a look later on every
thread?
Thanks
----------------
#0 0x00007fed882d4907 in sched_yield () from
/lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007fed8648d525 in get_lock (lock=0x7fecc7de6590) at
../../evi/../fastlock.h:182
i = 0
#2 _lock (s=0x7fecc7de6590) at lock.h:102
No locals.
#3 t_cancel_trans (t=0x7fecc7de4bb8, extra_hdrs=0x0) at tm.c:1267
cancel_bitmap = 0
#4 0x00007fed85158fa5 in dlg_end_dlg (dlg=dlg at entry=0x7fecc7a807c0,
extra_hdrs=extra_hdrs at entry=0x0) at dlg_req_within.c:408
str_hdr = {s = 0x0, len = 0}
t = 0x7fecc7de4bb8
i = <optimized out>
res = 0
callee = <optimized out>
__FUNCTION__ = "dlg_end_dlg"
#5 0x00007fed85159e0e in mi_terminate_dlg (cmd_tree=<optimized out>,
param=<optimized out>) at dlg_req_within.c:513
node = <optimized out>
h_entry = <optimized out>
h_id = <optimized out>
d_id = <optimized out>
dlg = 0x7fecc7a807c0
mi_extra_hdrs = 0x0
msg = <optimized out>
end = 0x7fed8812ec59 "\n1583318186\n\n"
bkp = <optimized out>
__FUNCTION__ = "mi_terminate_dlg"
#6 0x00007fed835ec031 in run_mi_cmd (param=0x7fff13310780, f=<optimized
out>, t=0x7fed8813ec18, cmd=<optimized out>) at ../../mi/mi.h:109
ret = <optimized out>
#7 mi_datagram_server (rx_sock=8, tx_sock=9) at datagram_fnc.c:520
mi_cmd = <optimized out>
mi_rpl = 0x7fed8813f058
hdl = 0x0
f = 0x7fed88114e08
dtgram = {start = 0x7fed8812ec48 ":dlg_end_dlg", current =
0x7fed8812ec65 "\n", len = 1}
ret = <optimized out>
len = <optimized out>
__FUNCTION__ = "mi_datagram_server"
#8 0x00007fed835ed2cd in datagram_process (rank=<optimized out>) at
mi_datagram.c:311
__FUNCTION__ = "datagram_process"
#9 0x00000000004cb5cd in start_module_procs () at sr_module.c:586
m = 0x7fed88027fd0
n = <optimized out>
l = <optimized out>
x = <optimized out>
__FUNCTION__ = "start_module_procs"
#10 0x0000000000417106 in main_loop () at main.c:852
i = <optimized out>
pid = <optimized out>
si = <optimized out>
startup_done = 0x0
chd_rank = 0
rc = <optimized out>
load_p = 0x0
#11 main (argc=<optimized out>, argv=<optimized out>) at main.c:1613
cfg_log_stderr = <optimized out>
cfg_stream = <optimized out>
c = <optimized out>
r = <optimized out>
tmp = 0x7fff13310ebd ""
tmp_len = <optimized out>
port = <optimized out>
proto = <optimized out>
---Type <return> to continue, or q <return> to quit---quit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20170802/48404374/attachment.html>
More information about the Devel
mailing list