[asterisk-bugs] [Asterisk 0015411]: 1.4.24.1 deadlock in devicestate.c ast_device_state_engine_init

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Jun 27 08:03:10 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15411 
====================================================================== 
Reported By:                aragon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15411
Category:                   Channels/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.21.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-27 08:03 CDT
Last Modified:              2009-06-27 08:03 CDT
====================================================================== 
Summary:                    1.4.24.1 deadlock in devicestate.c
ast_device_state_engine_init
Description: 
Asterisk locked and I had to restart asterisk to recover

=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <file> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 3085810592 (do_devstate_changes  started at [  363]
devicestate.c ast_device_state_engine_init())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (pbx.c): RDLOCK 6151
ast_rdlock_contexts &conlock
0x8167a40 (2)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (pbx.c): MUTEX 2034
ast_hint_state_changed
&(&hints)->lock 0x8167c48 (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=2 (chan_sip.c): MUTEX 8843
cb_extensionstate &p->lock
0x8817610 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 9567136 (pri_dchannel         started at [10024]
chan_dahdi.c start_pri())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_dahdi.c): MUTEX
9009 pri_dchannel &pri->lock
0x80ab3c (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_dahdi.c): MUTEX
9244 pri_dchannel
&pri->pvts[chanpos]->lock 0xb7da7888 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 12938144 (pri_dchannel         started at [10024]
chan_dahdi.c start_pri())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_dahdi.c): MUTEX
9009 pri_dchannel &pri->lock
0x80b874 (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_dahdi.c): MUTEX
9244 pri_dchannel
&pri->pvts[chanpos]->lock 0xb7dbffa8 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 14908320 (pri_dchannel         started at [10024]
chan_dahdi.c start_pri())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_dahdi.c): MUTEX
9009 pri_dchannel &pri->lock
0x80c5ac (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_dahdi.c): MUTEX
9244 pri_dchannel
&pri->pvts[chanpos]->lock 0xb7dcb9e8 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 15199136 (pri_dchannel         started at [10024]
chan_dahdi.c start_pri())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_dahdi.c): MUTEX
9009 pri_dchannel &pri->lock
0x80d2e4 (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_dahdi.c): MUTEX
9244 pri_dchannel
&pri->pvts[chanpos]->lock 0xb7de6648 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 15494048 (pri_dchannel         started at [10024]
chan_dahdi.c start_pri())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_dahdi.c): MUTEX
9009 pri_dchannel &pri->lock
0x80e01c (1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_dahdi.c): MUTEX
9244 pri_dchannel
&pri->pvts[chanpos]->lock 0xb7b025c0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 119389088 (do_monitor           started at [16693]
chan_sip.c restart_monitor())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_sip.c): MUTEX
16362 sipsock_read &netlock 0x77eb3c0
(1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_sip.c): MUTEX 4726
find_call &p->lock 0x8866bc0
(1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 73694112 (pbx_thread           started at [ 2663] pbx.c
ast_pbx_start())
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=0 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 75180960 (pbx_thread           started at [ 2663] pbx.c
ast_pbx_start())
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=0 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 116620192 (pbx_thread           started at [ 2663] pbx.c
ast_pbx_start())
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=0 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 31775648 (pbx_thread           started at [ 2663] pbx.c
ast_pbx_start())
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=0 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 30546848 (pbx_thread           started at [ 2663] pbx.c
ast_pbx_start())
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=0 (pbx.c):
WRLOCK 6146 ast_lock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 87223200 (session_do           started at [ 2475] manager.c
accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2235
process_message &actionlock
0x8165760 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (pbx.c):
RDLOCK 6151 ast_rdlock_contexts
&conlock 0x8167a40 (1)
=== -------------------------------------------------------------------

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-27 08:03 aragon         New Issue                                    
2009-06-27 08:03 aragon         Asterisk Version          => 1.4.21.1        
2009-06-27 08:03 aragon         Regression                => No              
2009-06-27 08:03 aragon         SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list