[asterisk-bugs] [Asterisk 0017670]: ConfBridge crashes Asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 15 19:10:39 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17670 
====================================================================== 
Reported By:                mutex
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17670
Category:                   Applications/app_confbridge
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.2.9 
JIRA:                       SWP-2138 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-07-19 06:52 CDT
Last Modified:              2010-09-15 19:10 CDT
====================================================================== 
Summary:                    ConfBridge crashes Asterisk
Description: 
I have an asterisk installation used mainly for ConfBridge use.

Operating system:

Linux atlas 2.6.18-194.3.1.el5.centos.plusPAE
https://issues.asterisk.org/view.php?id=1 SMP Wed May 19 10:00:02
EDT 2010 i686 i686 i386 GNU/Linux

Usage:

ConfBridge is hosting a small number of conferences with variable number
of atendees.
Typically its 1-2 speaker pr conf room and n number of muted listeners.
Conferences are typically 1-2 hours long.

Description of behaviour:

It seems that the crash occours typically when alot of callers is hanging
up, or something like this. Since the crash typically is after 1-2 hour
(near end or at end of conference). Looks like its happening while users
are leaving conference. But not sure! Ending in total crash of asterisk.


Confbridge configuration:

ConfBridge is used with "cM(something)" for speakers or "mM(something)1"
for listeners.

Codecs / Media:

All codecs are same. aLaw between single endpoint Sonus NBS/GSX gateway.

System hardware:

Dell 2850 4 cpu Intel Xeon with 8GB ram.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017915 Segmentation Fault:  bridge_softmix.c  ...
related to          0017943 ConfBridge crashes when leave simultane...
====================================================================== 

---------------------------------------------------------------------- 
 (0127019) mutex (reporter) - 2010-09-15 19:10
 https://issues.asterisk.org/view.php?id=17670#c127019 
---------------------------------------------------------------------- 
=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock
name> <l                                                                   
                                                           ock addr> (times
locked)
===
=== Thread ID: -1213207664 (do_monitor           started at [24340]
chan_sip.c r                                                               
                                                              
estart_monitor())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_sip.c): MUTEX 9089
add_header_max_forwards dialog
0x98f54                                                                    
                                                          78 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x811ccec]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xaa) [0x81165f9]
        /usr/sbin/asterisk(__ao2_lock+0x4a) [0x8085ccc]
        /usr/lib/asterisk/modules/chan_sip.so [0xad80d1]
        /usr/lib/asterisk/modules/chan_sip.so [0xad9dd8]
        /usr/lib/asterisk/modules/chan_sip.so [0xadf8ca]
        /usr/lib/asterisk/modules/chan_sip.so [0xb25760]
        /usr/sbin/asterisk(ast_sched_runq+0x188) [0x81786fd]
        /usr/lib/asterisk/modules/chan_sip.so [0xb24c72]
        /usr/sbin/asterisk [0x81935d6]
        /lib/libpthread.so.0 [0x165832]
        /lib/libc.so.6(clone+0x5e) [0x499e0e]
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_sip.c): MUTEX
24312 do_monitor &monlock 0xb66c80
(1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x811ccec]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xaa) [0x81165f9]
        /usr/lib/asterisk/modules/chan_sip.so [0xb24c62]
        /usr/sbin/asterisk [0x81935d6]
        /lib/libpthread.so.0 [0x165832]
        /lib/libc.so.6(clone+0x5e) [0x499e0e]
=== ---> Tried and failed to get Lock https://issues.asterisk.org/view.php?id=2
(chan_sip.c): MUTEX 3403
retrans_pkt pk                                                             
                                                                
t->owner->owner 0x9908c28 (0)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x811ccec]
        /usr/sbin/asterisk(__ast_pthread_mutex_trylock+0xaa) [0x8116956]
        /usr/sbin/asterisk(__ao2_trylock+0x4a) [0x8085e1e]
        /usr/lib/asterisk/modules/chan_sip.so [0xabbf2b]
        /usr/sbin/asterisk(ast_sched_runq+0x188) [0x81786fd]
        /usr/lib/asterisk/modules/chan_sip.so [0xb24c72]
        /usr/sbin/asterisk [0x81935d6]
        /lib/libpthread.so.0 [0x165832]
        /lib/libc.so.6(clone+0x5e) [0x499e0e]
=== -------------------------------------------------------------------
===
=== Thread ID: -1215546480 (multiplexed_thread_function started at [  274]
bridg                                                                      
                                                        e_multiplexed.c
multiplexed_add_or_remove())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (bridge_multiplexed.c):
MUTEX 221
multiplexed_thread_function m                                              
                                                                           
    ultiplexed_thread 0x986ac50 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x811ccec]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xaa) [0x81165f9]
        /usr/sbin/asterisk(__ao2_lock+0x4a) [0x8085ccc]
        /usr/lib/asterisk/modules/bridge_multiplexed.so [0x204578]
        /usr/sbin/asterisk [0x81935d6]
        /lib/libpthread.so.0 [0x165832]
        /lib/libc.so.6(clone+0x5e) [0x499e0e]
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (channel.c): MUTEX 4550
ast_write chan 0x9908c28 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x811ccec]
        /usr/sbin/asterisk(__ast_pthread_mutex_trylock+0xaa) [0x8116956]
        /usr/sbin/asterisk(__ao2_trylock+0x4a) [0x8085e1e]
        /usr/sbin/asterisk(ast_write+0xe7) [0x80b32a4]
        /usr/lib/asterisk/modules/bridge_multiplexed.so [0x204e6f]
        /usr/sbin/asterisk(ast_bridge_handle_trip+0x19f) [0x808c5fe]
        /usr/lib/asterisk/modules/bridge_multiplexed.so [0x204644]
        /usr/sbin/asterisk [0x81935d6]
        /lib/libpthread.so.0 [0x165832]
        /lib/libc.so.6(clone+0x5e) [0x499e0e]
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2
(chan_sip.c): MUTEX 6017 sip_write p
0x98f5478 (1)
        /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x811ccec]
        /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xaa) [0x81165f9]
        /usr/sbin/asterisk(__ao2_lock+0x4a) [0x8085ccc]
        /usr/lib/asterisk/modules/chan_sip.so [0xabbee1]
        /usr/sbin/asterisk(ast_sched_runq+0x188) [0x81786fd]
        /usr/lib/asterisk/modules/chan_sip.so [0xb24c72]
        /usr/sbin/asterisk [0x81935d6]
        /lib/libpthread.so.0 [0x165832]
        /lib/libc.so.6(clone+0x5e) [0x499e0e]
=== --- ---> Locked Here: chan_sip.c line 9089 (add_header_max_forwards)
=== -------------------------------------------------------------------
===
======================================================================= 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-15 19:10 mutex          Note Added: 0127019                          
======================================================================




More information about the asterisk-bugs mailing list