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

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Apr 23 10:20:37 CDT 2008


The following issue has been RESOLVED. 
====================================================================== 
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:                     resolved
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             04-17-2008 11:02 CDT
Last Modified:              04-23-2008 10:20 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.



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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-23-08 10:20  russell        Status                   feedback => resolved
04-23-08 10:20  russell        Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list