[Home]

Summary:ASTERISK-18495: module unload chan_iax2.so cause mutex errors
Reporter:Marcello Ceschia (marcelloceschia)Labels:
Date Opened:2011-09-09 13:03:11Date Closed:2017-12-12 17:25:24.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:1.8.6.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:svn branch 1.8Attachments:
Description:*CLI> module unload chan_iax2.so
Unloaded chan_iax2.so
 == Unregistered custom function IAXPEER
 == Unregistered custom function IAXVAR
 == Manager unregistered action IAXpeers
 == Manager unregistered action IAXpeerlist
 == Manager unregistered action IAXnetstats
 == Manager unregistered action IAXregistry
 == Unregistered application 'IAX2Provision'
 == Unregistered channel type 'IAX2'
[2011-09-09 19:57:27] ERROR[30636]: lock.c:280 __ast_pthread_mutex_lock: chan_iax2.c line 2403 (peercnt_remove): Error obtaining mutex: Invalid argument
[2011-09-09 19:57:27] ERROR[30636]: lock.c:407 __ast_pthread_mutex_unlock: chan_iax2.c line 2410 (peercnt_remove): mutex 'peercnts' freed more times than we've locked!
[2011-09-09 19:57:27] ERROR[30636]: lock.c:438 __ast_pthread_mutex_unlock: chan_iax2.c line 2410 (peercnt_remove): Error releasing mutex: Invalid argument
[2011-09-09 19:57:29] ERROR[30636]: lock.c:280 __ast_pthread_mutex_lock: chan_iax2.c line 2403 (peercnt_remove): Error obtaining mutex: Invalid argument
[2011-09-09 19:57:29] ERROR[30636]: lock.c:407 __ast_pthread_mutex_unlock: chan_iax2.c line 2410 (peercnt_remove): mutex 'peercnts' freed more times than we've locked!
[2011-09-09 19:57:29] ERROR[30636]: lock.c:438 __ast_pthread_mutex_unlock: chan_iax2.c line 2410 (peercnt_remove): Error releasing mutex: Invalid argument
[2011-09-09 19:57:31] DEBUG[4174]: taskprocessor.c:354 tps_taskprocessor_destroy: destroying taskprocessor 'iax2_transmit'
Comments:By: Corey Farrell (coreyfarrell) 2017-12-12 17:25:24.894-0600

About 20% of chan_iax2 source has changed since 1.8.6.0, including peercnt_remove so it's possible this issue has been resolved.

----

Per the Asterisk versions page \[1\], the maintenance (bug fix) support for the Asterisk branch you are using has ended. For continued maintenance support please move to a supported branch of Asterisk. After testing with a supported branch, if you find this problem has not been resolved, please open a new issue against the latest version of that Asterisk branch.

Thanks!

\[1\] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions