[asterisk-bugs] [Asterisk 0015400]: /include/asterisk/lock.h:531 __ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread): Error releasing mutex: O

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jun 29 10:04:18 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15400 
====================================================================== 
Reported By:                aragon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15400
Category:                   Applications/app_mixmonitor
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 202945 
Request Review:              
====================================================================== 
Date Submitted:             2009-06-25 09:27 CDT
Last Modified:              2009-06-29 10:04 CDT
====================================================================== 
Summary:                    /include/asterisk/lock.h:531
__ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread): Error
releasing mutex: O
Description: 
When recording any incoming call with mixmonitor these messages slam the
CLI
The call is recorded properly for playback but this looks like bad
locking...

Jun 22 13:10:03] ERROR[31668]:
/dar/build/asterisk-1.4.26/include/asterisk/lock.h:514
__ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread):
mutex '&mixmonitor->mixmonitor_ds->lock' freed more times than we've
locked!
[Jun 22 13:10:03] ERROR[31668]:
/dar/build/asterisk-1.4.26/include/asterisk/lock.h:531
__ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread):
Error releasing mutex: Operation not permitted
[Jun 22 13:10:03] ERROR[31668]:
/dar/build/asterisk-1.4.26/include/asterisk/lock.h:514
__ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread):
mutex '&mixmonitor->mixmonitor_ds->lock' freed more times than we've
locked!
[Jun 22 13:10:03] ERROR[31668]:
/dar/build/asterisk-1.4.26/include/asterisk/lock.h:531
__ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread):
Error releasing mutex: Operation not permitted
[Jun 22 13:10:03] ERROR[31668]:
/dar/build/asterisk-1.4.26/include/asterisk/lock.h:514
__ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread):
mutex '&mixmonitor->mixmonitor_ds->lock' freed more times than we've
locked!
[Jun 22 13:10:03] ERROR[31668]:
/dar/build/asterisk-1.4.26/include/asterisk/lock.h:531
__ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread):
Error releasing mutex: Operation not permitted
====================================================================== 

---------------------------------------------------------------------- 
 (0107119) svnbot (reporter) - 2009-06-29 10:04
 https://issues.asterisk.org/view.php?id=15400#c107119 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 204012

U   branches/1.4/apps/app_mixmonitor.c

------------------------------------------------------------------------
r204012 | mmichelson | 2009-06-29 10:04:18 -0500 (Mon, 29 Jun 2009) | 6
lines

Place unlock of mutex in an else block so that it does not get unlocked
twice.

(closes issue https://issues.asterisk.org/view.php?id=15400)
Reported by: aragon


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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-29 10:04 svnbot         Checkin                                      
2009-06-29 10:04 svnbot         Note Added: 0107119                          
======================================================================




More information about the asterisk-bugs mailing list