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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 17 23:43:19 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-17 23:43 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...

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

---------------------------------------------------------------------- 
 (0093931) Perry The Cynic (reporter) - 2008-10-17 23:43
 http://bugs.digium.com/view.php?id=13671#c93931 
---------------------------------------------------------------------- 
It turns out that the IMAP c-client kit calls abort(), which does not seem
to leave a core dump, even with -g and all the trimmings. Bummer. So I
ended up hand-running asterisk, attaching a gdb to it from the side,
setting a breakpoint on abort(), and leaving myself lots of messages. It
didn't really take all that long (three tries).

I'm trying to attach the asterisk and gdb logs, but this webpage is giving
me error messages ("unable to find tag"), so I'm not sure if this is
working. I'll include the salient bits below.
Possibly interesting points:
-) There are lots of unexpected-this-and-that warnings coming out of
c-client even before things go noticeably bad.
-) The IMAP server (a Cyrus under Mac OS X Server 10.5.5) does not exhibit
any notable problems.
-) During the test run (but minutes before the crash), at least one of the
messages was deleted from the IMAP store using a mail client.



More information about the asterisk-bugs mailing list