[asterisk-bugs] [JIRA] (ASTERISK-25435) Asterisk periodically hangs. UDP Recv-Q greatly exceeds zero.
Mark Michelson (JIRA)
noreply at issues.asterisk.org
Thu Oct 1 15:44:33 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227751#comment-227751 ]
Mark Michelson commented on ASTERISK-25435:
-------------------------------------------
It looks like the problem is that the send_request_wrapper structure in res_pjsip.c has its mutex created using pj_mutex_create_simple(). The lock is then attempted to be locked recursively (see thread 14 of 2015_09_29__21_43_01.backtrace-threads.txt), which results in the thread blocking forever. There are two potential solutions here:
1) Declare the lock using pj_mutex_create_recursive() so that this will not cause a deadlock
2) Use an ast_mutex_t, which is always created recursive. This also would allow for the lock to show up in 'core show locks' output.
> Asterisk periodically hangs. UDP Recv-Q greatly exceeds zero.
> -------------------------------------------------------------
>
> Key: ASTERISK-25435
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25435
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 13.5.0
> Reporter: Dmitriy Serov
> Assignee: Mark Michelson
> Attachments: 2015_09_29__21_42_01.full.tail.txt, 2015_09_29__21_42_01.netstat.txt, 2015_09_29__21_43_01.backtrace-threads.txt, 2015_09_29__21_43_01.full.tail.txt, 2015_09_29__21_43_01.locks.txt, 2015_09_29__21_43_01.netstat.txt, 2015_09_29__21_44_07.backtrace-threads.txt, 2015_09_29__21_44_07.full.tail.txt
>
>
> Asterisk periodic hangs.
> UDP Recv-Q greatly exceeds zero.
> No errors in log (like DNS error, function getaddr).
> The system behavior is very similar to ASTERISK-25421.
> STUN is Off
> Backtraces attached.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list