[asterisk-bugs] [Asterisk 0012805]: Deadlock in cahn_sip when using IMAP voicemail

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jul 21 09:14:53 CDT 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12805 
====================================================================== 
Reported By:                rossnick
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   12805
Category:                   Channels/chan_sip/Interoperability
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.4.20 
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:             06-06-2008 12:27 CDT
Last Modified:              07-21-2008 09:14 CDT
====================================================================== 
Summary:                    Deadlock in cahn_sip when using IMAP voicemail
Description: 
I have setup asterisk to use imap as voicemail storage. Sometimes (2 times
since the last hours), chan_sip sould be in a deadlock situation requiring
a restart of asterisk.

When it happens, no communication can be done in SIP, thus no phone can be
reached, and no calls can be placed.

Attach a "core show locks" (core_locks.txt) from the 2 lockup this
morning. Also attach is 2 "thread apply all bt" (gdb_thread_20080603.txt
and gdb_thread_20080605.txt)that I catched while asterisk was running in
the debuger while investigating another issue.
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 07-21-08 09:14  
---------------------------------------------------------------------- 
The problem of select() calls in the IMAP c-client blocking forever is
something that has been a problem for a while. I added the option of
setting timeouts for the IMAP connections in trunk a while back, and I have
now backported the changes to 1.4 as well.

If you check out a subversion revision later than 129208, then the
appropriate TCP timeout options will be present. A default timeout of 60
seconds was chosen, but timeouts may be adjusted to your liking. See
doc/imapstorage.txt to see what timeout options are available. The changes
in question will also be available in the upcoming 1.4.22 version of
Asterisk.

Once the timeout period has elapsed, the SIP thread will be unblocked and
may continue processing calls. I am closing this issue since the timeouts
should prevent the problem mentioned in the report. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-21-08 09:14  putnopvut      Note Added: 0090518                          
======================================================================




More information about the asterisk-bugs mailing list