[asterisk-bugs] [Asterisk 0016169]: full system crash every other day

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 17 07:38:01 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16169 
====================================================================== 
Reported By:                moshe
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16169
Category:                   Channels/chan_local
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.26.1 
JIRA:                       SWP-330 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-03 00:19 CST
Last Modified:              2009-11-17 07:38 CST
====================================================================== 
Summary:                    full system crash every other day
Description: 
we have a server running as MTE with 52 tenants and over 200 extensions
recently asterisk is crashing every other day, Obviously we have no way of
knowing how to recreate the problem. Its possible that whatever causes the
crash can be repeated with 100% crash-success, but we still cant figure out
what specifically is causing it. 

following is the last CLI before the crash. 

[Nov  2 15:15:42] ERROR[1928]:
/usr/src/asterisk/1.4.26/asterisk-1.4.26.1/include/asterisk/lock.h431
__ast_pthread_mutex_lock: chan_local.c line 542 (local_hangup): Error
obtaining mutex: Invalid argument
[Nov  2 15:15:42] ERROR[1928]:
/usr/src/asterisk/1.4.26/asterisk-1.4.26.1/include/asterisk/lock.h514
__ast_pthread_mutex_unlock: chan_local.c line 597 (local_hangup): mutex
'&p->lock' freed more times than we've locked!
[Nov  2 15:15:42] ERROR[1928]:
/usr/src/asterisk/1.4.26/asterisk-1.4.26.1/include/asterisk/lock.h531
__ast_pthread_mutex_unlock: chan_local.c line 597 (local_hangup): Error
releasing mutex: Invalid argument
[Nov  2 15:15:42] ERROR[1928]:
/usr/src/asterisk/1.4.26/asterisk-1.4.26.1/include/asterisk/lock.h319
__ast_pthread_mutex_destroy: chan_local.c line 158 (local_pvt_destroy):
Error: attempt to destroy invalid mutex '&pvt->lock'.

i could supply with backtrace 
====================================================================== 

---------------------------------------------------------------------- 
 (0113899) eeman (reporter) - 2009-11-17 07:38
 https://issues.asterisk.org/view.php?id=16169#c113899 
---------------------------------------------------------------------- 
well what I did was I backported the patch in 16027 

+  if (c) {
	ast_channel_unlock(c);
+ }

and recompiled. I have found that sometimes upgrading causes one to buy a
new problem in the trade-off. We havent had a crash since but its only been
4 production days. However, it used to crash every 2 - 3 production days.
If there is no crash by friday, november 20th; I will assume it resolved
the problem. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-17 07:38 eeman          Note Added: 0113899                          
======================================================================




More information about the asterisk-bugs mailing list