[asterisk-bugs] [Asterisk 0010019]: Asterisk hang/stop working on console suspend

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Apr 21 08:57:29 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10019 
====================================================================== 
Reported By:                darren1713
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10019
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.4 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             06-20-2007 10:25 CDT
Last Modified:              04-21-2008 08:57 CDT
====================================================================== 
Summary:                    Asterisk hang/stop working on console suspend
Description: 
Reproduce problem:
1) Start screen "screen"
2) Start asterisk "asterisk -ggvvvvvvc"
3) Press Ctrl-A then Escape to suspend console

This doesn't sound like a big problem, but it is because this same
situation happens when you ssh into a box, loose the connection because of
internet failure, or whatever other reason.

After 5-10 minutes of asterisk trying to write to the suspended console,
everything hangs, nothing crashes, but asterisk stops making calls,
accepting calls, or doing any sort of processing.

My first evaluation of this is that there are blocking writes to the
console, and there are no checks to see if the file descriptor can write or
not.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0010010 Asterisk eating 100% CPU
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 04-21-08 08:57  
---------------------------------------------------------------------- 
If there's no "core show locks" command in your current 1.4 version, then
that means you either 

1) are using a very old version of 1.4 and need to upgrade or
2) have not compiled Asterisk with DEBUG_THREADS selected in Menuselect.

If 2) is the case, then recompile with DONT_OPTIMIZE and DEBUG_THREADS
enabled in Menuselect. Then reproduce the bug if possible and upload the
backtrace as you did before as well as the output from "core show locks" if
possible. The backtrace you provided was created from an optimized build
and therefore leaves out a lot of useful information.

If 1) is the case, then upgrade to the latest 1.4 version and then do
everything specified above for the 2) case.

Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-21-08 08:57  putnopvut      Note Added: 0085742                          
======================================================================




More information about the asterisk-bugs mailing list