[asterisk-bugs] [Asterisk 0014889]: Thread-specific vm_state tracking issue if a voicemail is left immediately after a restart.

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 13 15:16:40 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14889 
====================================================================== 
Reported By:                jaroth
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14889
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 188038 
Request Review:              
====================================================================== 
Date Submitted:             2009-04-13 15:16 CDT
Last Modified:              2009-04-13 15:16 CDT
====================================================================== 
Summary:                    Thread-specific vm_state tracking issue if a
voicemail is left immediately after a restart.
Description: 

When calling vmexec to leave a voicemail, pthread_getspecific() is called
before pthread_setspecific() is called, thereby returning an undefined
vm_state structure.  The following functions (get_vm_state_by_imapuser,
get_vm_state_by_mailbox, create_vm_state_from_user) could call
pthread_getspecific during vmexec.

The specific behavior is that if you leave a message for a mailbox that
has not been accessed since a restart, pthread_getspecific will not return
a valid vm_state and therefor message counts will be incorrect (all zeros).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-13 15:16 jaroth         New Issue                                    
2009-04-13 15:16 jaroth         Asterisk Version          => SVN             
2009-04-13 15:16 jaroth         Regression                => No              
2009-04-13 15:16 jaroth         SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2009-04-13 15:16 jaroth         SVN Revision (number only!) => 188038          
======================================================================




More information about the asterisk-bugs mailing list