[asterisk-bugs] [Asterisk 0011034]: Segfault in app_voicemail, inside c-client

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 6 12:07:50 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-06-2007 12:07 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-06-07 12:07  
---------------------------------------------------------------------- 
I apparently already had compiled Asterisk without optimization: my
debian/rules build script has 'BUILDFLAGS += MAKECMDGOALS=dont-optimize'
(from debian unstable).

I've added an ugly test to check to see if the value of mailstream is
0x101, and to set it to NIL before calling init_mailstream, which may have
to be my fix for a while until I can figure out what's going on.

I'll report again in a few days if this is actually working in preventing
the segfault.

I'd appreciate any ideas you may have on what may be going on here. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-06-07 12:07  dwhite         Note Added: 0073206                          
======================================================================




More information about the asterisk-bugs mailing list