Files
asterisk/main
Frederic LE FOLL dc307af7f2 Core/PBX: Deadlock between dialplan execution and application unregistration.
Not easy to reproduce, but we have noticed deadlocks when unloading a module
while dialplan is handling a request.

The deadlock is between :
1) Dialplan execution: pbx_extension_helper() first taking conlock,
then pbx_findapp() [when called] asking for lock on apps list.
2) Application unregistration: ast_unregister_application() first taking lock
on apps list, then unreference_cached_app() [when called] asking for conlock.

As a protection, I suggest to modify ast_unregister_application(), so that it
anticipates the need of conlock, before taking the lock on apps list.
The side effect is a longer unavailability of conlock when unregistering an
application.

ASTERISK-27041

Change-Id: I0db0f1eb320da6a5758cce3a47d765be1face8e2
2017-06-14 18:29:40 +02:00
..
2015-03-25 18:37:04 +00:00
2016-08-24 11:02:47 -05:00
2013-07-04 13:06:15 +00:00
2016-07-14 15:54:21 -05:00
2017-05-30 15:08:05 -05:00
2016-08-24 11:02:47 -05:00
2016-08-24 11:02:47 -05:00
2016-11-01 12:37:58 -05:00
2015-01-26 14:49:32 +00:00