[asterisk-bugs] [JIRA] (ASTERISK-23580) [patch]deadlock on forced disconnect of DAHDI PRI span
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Wed Apr 2 18:43:21 CDT 2014
Rusty Newton created ASTERISK-23580:
---------------------------------------
Summary: [patch]deadlock on forced disconnect of DAHDI PRI span
Key: ASTERISK-23580
URL: https://issues.asterisk.org/jira/browse/ASTERISK-23580
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Channels/chan_dahdi
Affects Versions: SVN, 12.1.1
Reporter: Tzafrir Cohen
There is a deadlock on the locks of iflock (the chan_dahdi lock of the interfaces list) and pri->lock of the specific span.
Path 1:
DAHDI_EVENT_REMOVED received on a B channel. Later on:
do_monitor
dahdi_destroy_channel_range (takes iflock)
destroy_dahdi_pvt
dahdi_unlink_pri_pvt (tries to take pri->lock)
Path 2:
pri_dchannel (takes pri->lock)
sig_pri_handle_dchan_exception
my_handle_dchan_exception (handling DAHDI_EVENT_REMOVED)
pri_destroy_span
dahdi_destroy_channel_range (tries to take iflock)
It seems that this is esy to reproduce as DAHDI will emit a DAHDI_EVENT_REMOVED in response to any ioctl on a channel in a device that has been removed.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list