[asterisk-bugs] [Asterisk 0012470]: Channel deadlock in ast_autoservice_stop / pbx_find_extension

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Apr 17 17:19:22 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12470 
====================================================================== 
Reported By:                atis
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12470
Category:                   Channels/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-17-2008 11:02 CDT
Last Modified:              04-17-2008 17:19 CDT
====================================================================== 
Summary:                    Channel deadlock in ast_autoservice_stop /
pbx_find_extension
Description: 
Yesterday I noticed 4 locked channels that didn't went away. One of them is
local, 3 SIP. They all seems to be locked in ast_autoservice_stop which is
called from pbx_find_extension 

In SIP calls deadlock position is obvious - nothing more occurs in that
thread and log ends, but in Local channel it's after this line:

[Apr 16 07:19:23] DEBUG[22435] res_config_mysql.c: MySQL RealTime:
Retrieve SQL: SELECT * FROM extensions_table WHERE exten = '28901' AND
context = 'db_queue_na' AND priority = '7'

Database contents in this row are GoTo(hangup_ok|s|1) - nothing that
should have caused lock, and normally it works good.

I tried terminating all those channels with "soft hangup" but that didn't
helped. So i waited for night time and grabbed a core dump (and also lot's
of different debug - everything i could think of)

It seems that this started after upgrade from 1.4.14 to 1.4.19, previously
we didn't had that much locked channels, but now there are some once every
few days.



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

---------------------------------------------------------------------- 
 russell - 04-17-08 17:19  
---------------------------------------------------------------------- 
Give it a try with that change ... 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-17-08 17:19  russell        Note Added: 0085668                          
======================================================================




More information about the asterisk-bugs mailing list