No subject


Thu Jul 12 09:23:04 CDT 2007


does not deadlock during the night, so at least it happens when there are
open sip channels going on.

Other than that I cannot say.

Luckily I was able to "core show locks" quite a number of times during
deadlocks, as it happens quite often during the day (sometimes more than
once a day).

Something interesting happened on the last deadlock, which happened today.
When I ran "core show locks", it crashed the machine. I will provide here
bt and bt full too so you can figure out what went wrong this time around.
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 01-09-08 10:29  
---------------------------------------------------------------------- 
The core show locks output you have provided is essentially the same as the
previous one provided, and points to the same problem I pointed out before.
I discussed this with you on IRC some recently, and one of the
possibilities we discussed was that there was some broken communication
over the TCP socket between Asterisk and the IMAP server.

Based on the report from issue http://bugs.digium.com/view.php?id=11665, it
appears that setting timeouts
for the TCP transactions can be helpful in relieving hangs when using IMAP.
To close that issue, I added the ability to set timeouts in voicemail.conf,
but only in trunk. For this particular issue, I would be willing to bet
that setting timeouts would fix this as well.

Unfortunately, like I said, I only made the change to trunk, so you have a
few ways of handling this:

1. Upgrade to trunk.
2. Backport the fix for 11665 into your 1.4 installation. Fortunately this
would not be a difficult backport. See trunk revision 96934 to see what
changes were made.
3. Directly modify the timeout values in tcp_unix.c in the IMAP c-client
source.

Since I am pretty much convinced that these lack of timeouts are what is
causing this issue, I am going to close this. Once again, feel free to
reopen in the case that instituting the timeouts does not fix the problem. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-09-08 10:29  putnopvut      Note Added: 0076559                          
======================================================================




More information about the asterisk-bugs mailing list