]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revision 222981 from
authorRichard Mudgett <rmudgett@digium.com>
Thu, 12 May 2011 21:04:30 +0000 (21:04 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 12 May 2011 21:04:30 +0000 (21:04 +0000)
commitd12154f76738e11e0d0a742cf4d41fae251a24e7
tree659a92982699af06780e9f620325f45605f834e7
parentfe41f00a4748e286e0abb46c703bd888d72af161
Merged revision 222981 from
https://origsvn.digium.com/svn/asterisk/branches/1.8

Similar deadlock possible when running the Pickup application internally.

------------------------------------------------------------------------
r222981 | dvossel | 2009-10-08 17:04:41 -0500 (Thu, 08 Oct 2009) | 13 lines

Deadlock between ast_cel_report_event and ast_do_masquerade

chan_sip calls pbx_exec on a pvt's owner channel while only the
pvt lock is held.  Since pbx_exec calls ast_cel_report_event which
attempts to lock the channel, invalid locking order occurs.  Channels
should be locked before pvt's.

(closes issue #15512)
Reported by: lmsteffan
Patches:
      ast_cel_deadlock_15512.diff uploaded by dvossel (license 671)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@318636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c