[asterisk-bugs] [Asterisk 0013653]: [patch] Shared IMAP mailboxes can cause the server to crash

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 2 17:37:38 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13653 
====================================================================== 
Reported By:                howardwilkinson
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13653
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-09 09:02 CDT
Last Modified:              2008-12-02 17:37 CST
====================================================================== 
Summary:                    [patch] Shared IMAP mailboxes can cause the server
to crash
Description: 
If the IMAP mailbox used to hold the voice messages is shared amongst a
number of users then the server can crash with problems inside the UW-IMAP
C-Client code. This is caused by multiple threads trying to use the shared
structure that the c-client code produces for the mailbox stream.

The particular installation is using Cyrus Imap server, with
authuser/authpassword set and multiple users having the same imapuser
setting.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013671 asterisk random crashes: IMAP toolkit c...
parent of           0013673 [patch] Addition of a Mailbox id facili...
related to          0013214 Asterisk crashes or locks up when leavi...
====================================================================== 

---------------------------------------------------------------------- 
 (0095698) jpeeler (administrator) - 2008-12-02 17:37
 http://bugs.digium.com/view.php?id=13653#c95698 
---------------------------------------------------------------------- 
I've reproduced this problem and added 13214 as being related. The patch
here did seem to prevent any crashing. It would be sad to add so much
locking though, but may be necessary:

http://mailman2.u.washington.edu/pipermail/imap-uw/2008-March/001925.html

I noticed on at least one occasion a thread got stuck in select called
from the c-client code. About a minute later Asterisk crashed.

I'm going to try the latest c-client code now since my first attempt was
using what shipped with my distro. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-02 17:37 jpeeler        Note Added: 0095698                          
======================================================================




More information about the asterisk-bugs mailing list