[asterisk-bugs] [Asterisk 0012775]: Manager lock (?)

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jun 16 11:00:18 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12775 
====================================================================== 
Reported By:                apsaras
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12775
Category:                   Core/ManagerInterface
Reproducibility:            unable to reproduce
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.19-rc2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-02-2008 17:39 CDT
Last Modified:              06-16-2008 11:00 CDT
====================================================================== 
Summary:                    Manager lock (?)
Description: 
Our app recently experienced a strange problem while communicating with an
Asterisk 1.4.19.2 (via a manager session). Apparently there was a long
pause (106”) in the manager session. After we issued a redirect action, a
response event was sent back. After exhaustive debugging (using detailed
log information produced by our app and a memory dump) we figured out that
the first line of the response (Response: Success) came in instantly, but
the event text was completed after 106sec (when reception is complete we
set a timestamp in the receiving structure). This is the actual response
event text:

Response: Success
ActionID: 18af6ce4-e873-4923-9602-c149ef9f08b8
Message: Redirect successful

The redirect command was executed asynchronously (hence the actionid).
Network is not an issue here (we received a lot of FastAGI sessions from
the same asterisk server in the meantime). The manager connection was not
dropped. In fact, after the response event was completed, all subsequent
events were received immediately, and the session resumed flawlessly
afterwards. 

Our conclusion is that the delay occurred while reading the lines of the
response event. We suspect that there was a lock in astman_append
(manager.c) causing the delay. Since the problem is not reproducible, we do
not have a way to provide more info (to our knowledge, the error has
occurred only once among many installations of the same environment). Also,
since the manager connection is not responding while the problem occurs, it
is not possible to automatically execute a core show locks command.
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 06-16-08 11:00  
---------------------------------------------------------------------- 
If this occurs again, you could create a separate AMI connection and run
'core show locks' over that particular connection. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-16-08 11:00  Corydon76      Note Added: 0088758                          
======================================================================




More information about the asterisk-bugs mailing list