[Home]

Summary:ASTERISK-14378: /include/asterisk/lock.h:531 __ast_pthread_mutex_unlock: app_mixmonitor.c line 277 (mixmonitor_thread): Error releasing mutex: O
Reporter:David Brillert (aragon)Labels:
Date Opened:2009-06-25 09:27:03Date Closed:2009-07-02 14:16:05
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_mixmonitor
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 06252009mixmon_cli.txt
( 1) 06252009mixmon_gdb.txt
( 2) 06252009mixmonvalgrind.txt
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
Comments:By: David Brillert (aragon) 2009-06-25 09:32:39

no output in core show locks
uploading gdb and cli info

By: Digium Subversion (svnbot) 2009-06-29 10:04:18

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 ASTERISK-14378)
Reported by: aragon


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

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

By: Digium Subversion (svnbot) 2009-06-29 10:04:40

Repository: asterisk
Revision: 204013

_U  trunk/

------------------------------------------------------------------------
r204013 | mmichelson | 2009-06-29 10:04:39 -0500 (Mon, 29 Jun 2009) | 11 lines

Blocked revisions 204012 via svnmerge

........
 r204012 | mmichelson | 2009-06-29 10:04:17 -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 ASTERISK-14378)
 Reported by: aragon
........

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

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

By: Digium Subversion (svnbot) 2009-06-29 10:06:38

Repository: asterisk
Revision: 204015

_U  branches/1.6.0/

------------------------------------------------------------------------
r204015 | mmichelson | 2009-06-29 10:06:38 -0500 (Mon, 29 Jun 2009) | 17 lines

Blocked revisions 204013 via svnmerge

................
 r204013 | mmichelson | 2009-06-29 10:04:39 -0500 (Mon, 29 Jun 2009) | 11 lines
 
 Blocked revisions 204012 via svnmerge
 
 ........
   r204012 | mmichelson | 2009-06-29 10:04:17 -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 ASTERISK-14378)
   Reported by: aragon
 ........
................

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

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

By: Digium Subversion (svnbot) 2009-06-29 10:07:04

Repository: asterisk
Revision: 204016

_U  branches/1.6.1/

------------------------------------------------------------------------
r204016 | mmichelson | 2009-06-29 10:07:04 -0500 (Mon, 29 Jun 2009) | 17 lines

Blocked revisions 204013 via svnmerge

................
 r204013 | mmichelson | 2009-06-29 10:04:39 -0500 (Mon, 29 Jun 2009) | 11 lines
 
 Blocked revisions 204012 via svnmerge
 
 ........
   r204012 | mmichelson | 2009-06-29 10:04:17 -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 ASTERISK-14378)
   Reported by: aragon
 ........
................

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

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

By: Digium Subversion (svnbot) 2009-06-29 10:07:15

Repository: asterisk
Revision: 204017

_U  branches/1.6.2/

------------------------------------------------------------------------
r204017 | mmichelson | 2009-06-29 10:07:15 -0500 (Mon, 29 Jun 2009) | 17 lines

Blocked revisions 204013 via svnmerge

................
 r204013 | mmichelson | 2009-06-29 10:04:39 -0500 (Mon, 29 Jun 2009) | 11 lines
 
 Blocked revisions 204012 via svnmerge
 
 ........
   r204012 | mmichelson | 2009-06-29 10:04:17 -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 ASTERISK-14378)
   Reported by: aragon
 ........
................

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

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