[asterisk-bugs] [Asterisk 0018240]: [patch] VoicemailMain Exits Without Warning

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Nov 12 14:51:18 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18240 
====================================================================== 
Reported By:                leobrown
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   18240
Category:                   Applications/app_voicemail
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                       SWP-2496 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-11-02 06:46 CDT
Last Modified:              2010-11-12 14:51 CST
====================================================================== 
Summary:                    [patch] VoicemailMain Exits Without Warning
Description: 
Hi

I've seen problems with VoicemailMain crashing in the past, from not being
able to lock paths, open audio files etc.

However, I have a VoiceMailMain which is opening a mailbox, but existing
after verifying a correct password.

The console trace is below, but because Asterisk is not crashing, I can
not provide a backtrace. Could you please give me some guidance on how to
further debug, as debug level 10 (shown below) only shows it
locking/unlocking paths and then exiting.

I have checked all permissions and even removed mailboxes and let Asterisk
create the paths itself. Voicemail() works fine, but VoicemailMain does
not. The relevant entry from voicemail.conf is also

Leo
====================================================================== 

---------------------------------------------------------------------- 
 (0128834) svnbot (reporter) - 2010-11-12 14:51
 https://issues.asterisk.org/view.php?id=18240#c128834 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 294904

_U  branches/1.6.2/
U   branches/1.6.2/apps/app_voicemail.c

------------------------------------------------------------------------
r294904 | jpeeler | 2010-11-12 14:51:16 -0600 (Fri, 12 Nov 2010) | 23
lines

Merged revisions 294903 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r294903 | jpeeler | 2010-11-12 14:49:09 -0600 (Fri, 12 Nov 2010) | 16
lines
  
  Fix regression causing abort in voicemail after opening a mailbox with
no mesgs.
  
  In order to be more safe, some error handling code was changed to
respect more
  error conditions including the potential memory allocation failure for
deleted
  and heard message tracking introduced in 293004. However,
last_message_index
  returns -1 for zero messages (perhaps as expected) and was triggering
the
  stricter error checking. Because last_message_index is only called
directly
  in one place, just return 0 from open_mailbox (for file based storage)
when no
  messages are detected unless a real error has occurred.
  
  (closes issue https://issues.asterisk.org/view.php?id=18240)
  Reported by: leobrown
  Patches: 
        bug18240.1-6-2.diff.txt uploaded by alecdavis (license 585)
  Tested by: pabelanger
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=294904 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-12 14:51 svnbot         Checkin                                      
2010-11-12 14:51 svnbot         Note Added: 0128834                          
======================================================================




More information about the asterisk-bugs mailing list