[asterisk-bugs] [Asterisk 0013214]: Asterisk crashes or locks up when leaving imap messages

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 1 13:21:57 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13214 
====================================================================== 
Reported By:                moliveras
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13214
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 134976 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-07-31 18:12 CDT
Last Modified:              2008-08-01 13:21 CDT
====================================================================== 
Summary:                    Asterisk crashes or locks up when leaving imap
messages
Description: 
While leaving voicemail messages over imap, i would occasionally see cases
where all asterisk would stop responding to sip signaling and a "sip show
peers" shows no entries.  I am able to reproduce this problem 100% of the
time by using a simulator (sipp) to send calls with media to an extension. 
I am allowing 2 simultaneous calls at a time, and the message duration of
the voicemail is approx 30 secs.  Using this method, the problem always
occurs within the 1st minute or so.  I see errors in the asterisk console
before the problem occurs.

I am using the Maildir format on my imap server, so each message is left
in a separate file.  My imap server is dovecot-1.0.7-2.el5 running on
rhel5.1.

My sipp options are:
sipp -sf uac_with_media_30secs.xml -s 650xxxxxxx 192.168.196.40 -l 2 -m
1000

I was initially using asterisk 1.4.21.2 built from a tarball.  I also
tried building from an svn checkout of the 1.4 branch
(SVN-branch-1.4-r134976) and saw the same problem.

Most times asterisk locks up, however in one instance asterisk seemed to
crash.
I will attach the errors I saw in the asterisk console to this ticket.

I can reproduce this problem very easily, so just let me know what you
need from me and I can get it to you.

Best Regards,

Mike Oliveras

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

---------------------------------------------------------------------- 
 (0090991) putnopvut (administrator) - 2008-08-01 13:21
 http://bugs.digium.com/view.php?id=13214#c90991 
---------------------------------------------------------------------- 
If Asterisk ever crashes, it would be helpful to see a backtrace so we can
determine exactly where the crash occurred. As far as Asterisk getting
hung, I see in the messages that there was a one minute period where
nothing occurred and then the connection was broken. This happened due to
the default timeout of 60 seconds for IMAP operations. Some of these hangs
you are experiencing may be due to TCP problems occurring within the
c-client.

Another possibility, though very unlikely when using IMAP, is that there
could be a deadlock. When Asterisk appears hung, issue the command "core
show locks" on the CLI and see what is returned. Also, when Asterisk is
hung, if you can get a backtrace of all the threads during the hang, that
could be helpful too.

For instructions on how to get a backtrace, see doc/backtrace.txt in the
Asterisk source directory. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-01 13:21 putnopvut      Note Added: 0090991                          
======================================================================




More information about the asterisk-bugs mailing list