[asterisk-dev] [Code Review] chan_sip directed pickup deadlock

Alec Davis reviewboard at asterisk.org
Sun Apr 17 06:36:51 CDT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/1175/#review3386
-----------------------------------------------------------



/team/bbryant/sip-call-pickup/channels/chan_sip.c
<https://reviewboard.asterisk.org/r/1175/#comment6989>

    ast_pickup_call releases the 'cur' lock too early. Found this from all the other pickup methods in app_directed_pickup.
    
    see bug 18654.diff2.txt


- Alec


On 2011-04-13 12:35:33, Brett Bryant wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1175/
> -----------------------------------------------------------
> 
> (Updated 2011-04-13 12:35:33)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> This patch fixes a deadlock which would cause ast_do_masquerade to request a channel lock while already holding a sip_pvt structure, violating locking order and causing deadlocks each time a directed pickup was finished locking up asterisk entirely holding the channels lock.
> 
> 
> Diffs
> -----
> 
>   /team/bbryant/sip-call-pickup/channels/chan_sip.c 313524 
> 
> Diff: https://reviewboard.asterisk.org/r/1175/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Brett
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110417/99521c71/attachment.htm>


More information about the asterisk-dev mailing list