Hi Federico,
I did a fix for tsilo to avoid a dead lock at shutdown:
-
https://github.com/kamailio/kamailio/commit/81ec422227299b4cbd7aecbb58b862f…
Practically, when restarting kamailio it ended up in a deadlock as shown
by the next backtrace. The annoying result was that restarts takes long,
as there is a 10sec timeout for the cleanup, which was always happening
in this case.
Can you check and see if the commit looks good and doesn't introduce
other issues that you could eventually spot easier?
Cheers,
Daniel
(gdb) bt
#0 lock_entry (entry=0x1) at ts_hash.c:156
#1 0x00007f1ec20d78c2 in ts_onreply (t=0x1, type=1109756376, param=0x0)
at ts_handlers.c:87
#2 0x00007f1eca5f03e7 in run_trans_callbacks_internal
(cb_lst=<optimized out>, type=131072, trans=0x7f1e427a2c80,
params=params@entry=0x7ffe21bdbf20) at t_hooks.c:268
#3 0x00007f1eca5f069e in run_trans_callbacks (type=<optimized out>,
trans=<optimized out>, req=<optimized out>, rpl=<optimized out>,
code=<optimized out>) at t_hooks.c:295
#4 0x00007f1eca574f82 in free_cell_helper (dead_cell=0x7f1e427a2c80,
fname=0x7f1e4172d0a8 "", fline=1) at h_table.c:136
#5 0x00007f1eca577754 in free_hash_table () at h_table.c:440
#6 0x00007f1eca5e6e01 in tm_shutdown () at t_funcs.c:90
#7 0x0000000000509222 in destroy_modules () at sr_module.c:805
#8 0x00000000004ff5e9 in cleanup (show_status=1) at main.c:513
#9 0x0000000000500578 in shutdown_children (show_status=1,
sig=<optimized out>) at main.c:655
#10 0x0000000000500dea in handle_sigs () at main.c:685
#11 0x0000000000506b1e in main_loop () at main.c:1705
#12 0x000000000041cb9d in main (argc=0, argv=0x20) at main.c:2553
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, March 7-9, 2016 -
http://www.asipto.com