[asterisk-dev] Lock inversion deadlock in asterisk-11.21.0-rc1 and probably 12.x and 13.x

Steve Davies davies147 at gmail.com
Wed Dec 23 10:08:32 CST 2015


Not sure how/where else to report this...

commit 5e6b1476a087407a052f007d326c504cfeefebe7
ASTERISK-25614

2 code paths which approximate the following will cause a lock-inversion
deadlock:

approximate call orders are:

a)
pj_timer_heap_poll (PJ_LOCK)
ast_rtp_on_ice_complete
ast_rtp_instance_set_remote_address
remote_address_set
ast_rtp_remote_address_set
(DTLS_LOCK)
...

b)
ast_pbx...
app_dial
bridge...
read
rtp_read
...
__rtp_recvfrom
(DTLS_LOCK)
dtls_srtp_check_pending
__rtp_sendto
pj_ice_sess_send_data
(PJ_LOCK)
...

I believe this only happens on a DTLS to DTLS call bridge, but is trivial
to cause in the lab here.

Regards,
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20151223/684061fc/attachment.html>


More information about the asterisk-dev mailing list