[asterisk-bugs] [Asterisk 0014496]: [patch] IMAP crash multiple callers / callers hangup at beep

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 24 17:30:27 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14496 
====================================================================== 
Reported By:                vbcrlfuser
Assigned To:                mmichelson
====================================================================== 
Project:                    Asterisk
Issue ID:                   14496
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-02-17 22:10 CST
Last Modified:              2009-06-24 17:30 CDT
====================================================================== 
Summary:                    [patch] IMAP crash multiple callers / callers hangup
at beep
Description: 
A multiple CPU machine + asterisk-1.4.22 + imap2004g, with more than one
user in voicemail (not the same mailbox) disconnecting right after or close
to beep + 3 seconds timeout for abandon causes, is a bad combination.  

In same cases IMAP warnings about parsing response and in most cases a
segfault. I'd like to know what the root cause is and what fixes it? I can
produce any backtraces / scenarios anyone needs to lend a hand here.


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

---------------------------------------------------------------------- 
 (0106949) mmichelson (administrator) - 2009-06-24 17:30
 https://issues.asterisk.org/view.php?id=14496#c106949 
---------------------------------------------------------------------- 
I'm not sure if dbrooks' crash is related to this problem or not. The crash
is happening in the c-client, not Asterisk. The valgrind output is only
showing potential memory leaks, no bad accesses of memory (at least none
besides the ones that always show up at startup in libraries used by
Asterisk).

However, the string "Unlocked when not locked" in frame 1 of the backtrace
makes me suspect that this might be related to the crash initially
reported. The fix using the AST_MUTEX_STATIC that initially was
reported...I never saw a patch posted. The thread-safety of the c-client
really needs to be examined more to see what is up with it. I would hate to
have to limit Asterisk to only one connection at a time to an IMAP server
just because the IMAP client in use can't handle more. But imho, crappy
performance is better than crashing. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-24 17:30 mmichelson     Note Added: 0106949                          
======================================================================




More information about the asterisk-bugs mailing list