[asterisk-bugs] [Asterisk 0013671]: asterisk random crashes: IMAP toolkit crash: Unlock when not locked

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 20 22:49:00 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13671 
====================================================================== 
Reported By:                Perry The Cynic
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13671
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.22 
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-10 18:33 CDT
Last Modified:              2008-10-20 22:48 CDT
====================================================================== 
Summary:                    asterisk random crashes: IMAP toolkit crash: Unlock
when not locked
Description: 
Asterisk crashes randomly. The system log always contains this message:

Oct 10 13:23:47 hermod asterisk: IMAP toolkit crash: Unlock when not
locked

Needless to say, this makes my wife very unhappy. :)

Asterisk-1.4.22 with zaptel-1.4.12.1. No local hacks.
Debian GNU/Linux 4.0 (fully updated); Linux kernel 2.6.21.5 (custom); on a
custom VIA Esther-based mini-box.
IMAP server is Mac OS X Server 10.5.5 (Cyrus IMAP).

Please let me know what else I should be providing. This IMAP library
error supposedly indicates a re-entry of threading bug in the caller, which
in this case would be asterisk...

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013653 [patch] Shared IMAP mailboxes can cause...
====================================================================== 

---------------------------------------------------------------------- 
 (0094013) Perry The Cynic (reporter) - 2008-10-20 22:48
 http://bugs.digium.com/view.php?id=13671#c94013 
---------------------------------------------------------------------- 
Okay, I grabbed  asterisk-1.4.21.2-appvoicemail-sharedimap-lock.patch,
patched it into the 1.4.21.2 I used before switching to 1.4.22, and tried
that. The IMAP hangs and crashes SEEM TO BE GONE with that code; I can
leave 4:00 messages without trouble. I'll leave that version installed and
run with it for a day or two to see if our luck is holding up.
I agree that re-entering the c-client code ought to get us "lock when
already locked" rather than "unlock when not locked" errors. I have no
explanation of why we're getting the latter. I have *never* seem "lock when
already locked" errors, ever.

Note that the various dangerous-looking c-client warning messages also
seem to have disappeared. I'm still seeing
      WARNING[12838]: app_voicemail.c:8765 mm_log: IMAP Warning: Unknown
message data: 5 FETCH
whenever a message is marked for deletion, and
      WARNING[12838]: app_voicemail.c:8765 mm_log: IMAP Warning: Unknown
message data: 1 EXPUNGE
whenever I expunge a deleted message. I don't know whether these are
worrisome or expected; they don't seem to bother asterisk's operation.

Thanks, and tentative cheers
  -- perry 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-20 22:48 Perry The CynicNote Added: 0094013                          
======================================================================




More information about the asterisk-bugs mailing list