Подскажите пожалуйста. Иногда в логах триксбокса появляется вот такое:
[Oct 15 14:51:04] ERROR[20896] /usr/src/redhat/BUILD/asterisk16-1.6.0.26/include/asterisk/lock.h: chan_sip.c line 20825 (restart_monitor): Deadlock? waited 5 sec for mutex '&monlock'?
[Oct 15 14:51:04] ERROR[20896] /usr/src/redhat/BUILD/asterisk16-1.6.0.26/include/asterisk/lock.h: chan_sip.c line 20806 (do_monitor): '&monlock' was locked here.
[Oct 15 14:51:09] ERROR[20896] /usr/src/redhat/BUILD/asterisk16-1.6.0.26/include/asterisk/lock.h: chan_sip.c line 20825 (restart_monitor): Deadlock? waited 10 sec for mutex '&monlock'?
Если набрать команду:
/usr/sbin/asterisk -rx «core show locks»
То можно увидеть следующее:
=======================================================================
=== Currently Held Locks ======================= 1381832881.644731 ====
=======================================================================
===
=== <file> <line num> <function> <lock name> <lock addr>
=== <locked at>, <failed at>, <held for> (attempts, times locked)
===
=== Thread ID: 34868112 (do_monitor started at [20836] chan_sip.c restart_monitor())
=== ---> Lock #0 (chan_sip.c): MUTEX 20806 do_monitor &monlock 0x5defc20
=== 1381832782.15513, 1381832779.92700, 99.629218 (1, 52039)
=== -------------------------------------------------------------------
===
=== Thread ID: 36318096 (pbx_thread started at [4006] pbx.c ast_pbx_start())
=== ---> Waiting for Lock #0 (chan_sip.c): MUTEX 20825 restart_monitor &monlock 0x5defc20
=== 1381832786.889034, 1381832786.786326, 94.755697 (1, 4263)
=== --- ---> Locked Here: chan_sip.c line 20806 (do_monitor)
=== -------------------------------------------------------------------
===
=== Thread ID: 77179792 (pbx_thread started at [4006] pbx.c ast_pbx_start())
=== ---> Waiting for Lock #0 (chan_sip.c): MUTEX 20825 restart_monitor &monlock 0x5defc20
=== 1381832786.965409, 1381832786.964463, 94.679322 (1, 821)
=== --- ---> Locked Here: chan_sip.c line 20806 (do_monitor)
=== -------------------------------------------------------------------
===
=======================================================================
Все регистрации отваливаются и проблема решается только перезагрузкой сервера.
Как с этим бороться?