[asterisk-bugs] [Asterisk 0019091]: [patch] Deadlock in ast_remove_hint Race with ao2_callback

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Apr 13 09:34:43 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19091 
====================================================================== 
Reported By:                irroot
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19091
Category:                   Channels/General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.8.4-rc2 
JIRA:                       SWP-3318 
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/1166 
SVN Branch (only for SVN checkouts, not tarball releases): 1.8 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-04-11 01:34 CDT
Last Modified:              2011-04-13 09:34 CDT
====================================================================== 
Summary:                    [patch] Deadlock in ast_remove_hint Race with
ao2_callback
Description: 
Abridged Core Show Locks
=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock
name> <lock addr> (times locked)
===
=== Thread ID: 0xb3c41b70 (tps_processing_function started at [  451]
taskprocessor.c ast_taskprocessor_get())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (pbx.c): MUTEX 4269
handle_statechange hints 0x97a4b48
(1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (pbx.c):
MUTEX 4270 handle_statechange hint
0xb04cf7c0 (1)
=== --- ---> Locked Here: pbx.c line 4523 (ast_remove_hint)
=== -------------------------------------------------------------------
===
=== Thread ID: 0xb09f6b70 (do_monitor           started at [24621]
chan_sip.c restart_monitor())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_sip.c): MUTEX
24119 handle_request_do &netlock
0xb309fdc0 (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_sip.c): MUTEX 7593
find_call p 0xffb8d48 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (astobj2.c):
MUTEX 657 internal_ao2_callback
c 0x97a4b48 (1)
=== --- ---> Locked Here: pbx.c line 4269 (handle_statechange)
=== -------------------------------------------------------------------
===
=== Thread ID: 0xb05c3b70 (netconsole           started at [ 1344]
asterisk.c listener())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (loader.c): MUTEX 673
ast_module_reload &reloadlock
0x81f5280 (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (loader.c): MUTEX 711
ast_module_reload
&(&module_list)->lock 0x81f5208 (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=2 (pbx.c): MUTEX 4523
ast_remove_hint hint 0xb04cf7c0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=3 (astobj2.c):
MUTEX 657 internal_ao2_callback
c 0x97a4b48 (1)
=== --- ---> Locked Here: pbx.c line 4269 (handle_statechange)
=== -------------------------------------------------------------------
===
=======================================================================
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0019092 Calls getting stuck when dialing *8
====================================================================== 

---------------------------------------------------------------------- 
 (0133710) irroot (reporter) - 2011-04-13 09:34
 https://issues.asterisk.org/view.php?id=19091#c133710 
---------------------------------------------------------------------- 
More appropriate patch 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-13 09:34 irroot         Note Added: 0133710                          
======================================================================




More information about the asterisk-bugs mailing list