[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
Tue May 19 15:17:11 CDT 2009
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=14889
======================================================================
Reported By: jaroth
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 14889
Category: Applications/app_voicemail/IMAP
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 188038
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-04-13 15:16 CDT
Last Modified: 2009-05-19 15:17 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).
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0014253 [patch] app_voicemail leaves sockets in...
has duplicate 0014492 Asterisk Crashes when making calls to a...
======================================================================
----------------------------------------------------------------------
(0105045) svnbot (reporter) - 2009-05-19 15:17
https://issues.asterisk.org/view.php?id=14889#c105045
----------------------------------------------------------------------
Repository: asterisk
Revision: 195522
_U branches/1.6.0/
U branches/1.6.0/apps/app_voicemail.c
------------------------------------------------------------------------
r195522 | tilghman | 2009-05-19 15:17:11 -0500 (Tue, 19 May 2009) | 21
lines
Merged revisions 195521 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r195521 | tilghman | 2009-05-19 15:16:01 -0500 (Tue, 19 May 2009) | 14
lines
Merged revisions 195520 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r195520 | tilghman | 2009-05-19 15:12:20 -0500 (Tue, 19 May 2009) | 7
lines
Ensure thread keys are initialized before attempting to access them.
(closes issue https://issues.asterisk.org/view.php?id=14889)
Reported by: jaroth
Patches:
app_voicemail.c.patch uploaded by msirota (license 758)
Tested by: msirota, BlargMaN
........
................
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=195522
Issue History
Date Modified Username Field Change
======================================================================
2009-05-19 15:17 svnbot Checkin
2009-05-19 15:17 svnbot Note Added: 0105045
======================================================================
More information about the asterisk-bugs
mailing list