[asterisk-bugs] [Asterisk 0011566]: chan_mobile.c has no mutexes for data accessed by different threads

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jan 15 14:34:54 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11566 
====================================================================== 
Reported By:                non-poster
Assigned To:                dbowerman
====================================================================== 
Project:                    Asterisk
Issue ID:                   11566
Category:                   Addons/chan_mobile
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-15-2007 23:21 CST
Last Modified:              01-15-2008 14:34 CST
====================================================================== 
Summary:                    chan_mobile.c has no mutexes for data accessed by
different threads
Description: 
There are no mutexes in chan_mobile.c!  Multiple threads access the same
data, eg the data in the mbl_pvt struct in the devices list.  (To compare,
almost all of the "standard" channel modules use mutexes.)
====================================================================== 

---------------------------------------------------------------------- 
 qwell - 01-15-08 14:34  
---------------------------------------------------------------------- 
I just uploaded a patch that I would like to have tested by somebody. 
While this isn't specifically what you were talking about, I think it may
be useful.

It adds rwlocking to the devices and adapters lists. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-15-08 14:34  qwell          Note Added: 0077047                          
======================================================================




More information about the asterisk-bugs mailing list