[asterisk-bugs] [Asterisk 0011034]: Segfault in app_voicemail, inside c-client
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Nov 5 11:09:29 CST 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11034
======================================================================
Reported By: dwhite
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 11034
Category: Applications/app_voicemail
Reproducibility: sometimes
Severity: crash
Priority: normal
Status: feedback
Asterisk Version: 1.4.13
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 10-18-2007 22:25 CDT
Last Modified: 11-05-2007 11:09 CST
======================================================================
Summary: Segfault in app_voicemail, inside c-client
Description:
I'm encountering some segfaults while running Asterisk, about 2 times a day
on a fairly low use server. It has been statically compiled with c-client.
I'm using the following versions:
Asterisk 1.4.11 (which IMAP_STORE enabled for app_voicemail)
c-client from version imap-2006k.DEV.SNAP-0709111641
I'm connecting to cyrus-imap version 2.3.8 on the same server
I should note that I've modified the app_voicemail.c file slightly, which
was necessary for use with cyrus.
After each crash, Asterisk restarts automatically (using asterisk_safe),
so the problem doesn't hold over through the restart.
I submitted this report on the imap-uw list, which contained the following
discussion, which includes output from a core dump:
http://mailman1.u.washington.edu/pipermail/imap-uw/2007-October/001705.html
I believe there's a missing initialization of vms.mailstream
A small patch is attached.
======================================================================
----------------------------------------------------------------------
dwhite - 11-05-07 11:09
----------------------------------------------------------------------
Concerning the modifications I've made to work with cyrus... this comment
applies to 1.4.11. I'd have to take a closer look to see if it still
applied to 1.4.13.
There are a couple of calls to c-client which pass a string that Cyrus
does not recognize as a valid mailbox. The quotaroot command, and I believe
the section which saves a message into another IMAP mailbox (such as
Work).
Here are some telemetry logs from Cyrus:
---------- 9183641498 Thu Sep 20 07:08:29 2007
<1190290109<00000003 SELECT INBOX
>1190290109>* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
* OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
* 1 EXISTS
* 0 RECENT
* OK [UNSEEN 1]
* OK [UIDVALIDITY 1160847137]
* OK [UIDNEXT 199]
* OK [NOMODSEQ] Sorry, modsequences have not been enabled on this mailbox
* OK [URLMECH INTERNAL]
00000003 OK [READ-WRITE] Completed
<1190290109<00000004 GETQUOTAROOT
"{127.0.0.1:143/imap/authuser=umsmaster/novalidate-cert/user=9183641498}INBOX"
>1190290109>00000004 NO Mailbox does not exist
<1190290109<00000005 SEARCH UNDELETED SEEN HEADER X-Asterisk-VM-Extension
""
>1190290109>* SEARCH
00000005 OK Completed (0 msgs in 0.000 secs)
----------------
Asterisk is sending
"{127.0.0.1:143/imap/authuser=umsmaster/novalidate-cert/user=9183641498}INBOX"
when it should be just sending "INBOX".
Also, in the case where I attempt to save a message in my INBOX into
another folder:
...
00000015 OK Completed (0.000 sec)
<1190291630<00000016 COPY 1
"{127.0.0.1:143/imap/authuser=umsmaster/novalidate-cert/user=9183641498}Work"
>1190291630>00000016 NO Mailbox does not exist
>1190293430>* BYE idle for too long
I would offer a patch, but of course I've only tried this with my Cyrus
server and I'm afraid of breaking things for others IMAP servers.
Issue History
Date Modified Username Field Change
======================================================================
11-05-07 11:09 dwhite Note Added: 0073113
======================================================================
More information about the asterisk-bugs
mailing list