[asterisk-bugs] [Asterisk 0015109]: Abort by memory allocator, possibly in moh_files_generator

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 15 09:26:44 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15109 
====================================================================== 
Reported By:                jvandal
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15109
Category:                   Resources/res_musiconhold
Reproducibility:            random
Severity:                   block
Priority:                   normal
Status:                     acknowledged
Target Version:             1.4.27
Asterisk Version:           1.4.24 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-14 10:49 CDT
Last Modified:              2009-07-15 09:26 CDT
====================================================================== 
Summary:                    Abort by memory allocator, possibly in
moh_files_generator
Description: 
I have a server running with Asterisk 1.4.24.1 where it randomly segfault
for "unknown" reason.

I'm not sure if this is related to moh_files_generator function or with
filestream_descructor.

Let me know what needed in order to fix this crash, if GDB traces aren't
enough. 

Asterisk is compiled with DONT_OPTIMIZE and others flag needed for "gdb".

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0014958 Segfault Asterisk 1.4.24.1
related to          0015123 out of bounds crash and core dump
has duplicate       0015195 double free or corruption (!prev) in mo...
====================================================================== 

---------------------------------------------------------------------- 
 (0107780) aragon (reporter) - 2009-07-15 09:26
 https://issues.asterisk.org/view.php?id=15109#c107780 
---------------------------------------------------------------------- 
While waiting for crash in Valgring I noticed some channels were hung for a
very long time.  Then it became apparent that Asterisk wasn't processing
calls any more.

7 days of Valgrind tests down the drain..

Should I open another ticket for the locks or will someone post a patch
here so I can continue debugging 15109 ?
I'll post the full valgrind text to this ticket for now to maybe get the
locks sorted out.

core show locks

=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <file> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 109050768 (do_monitor           started at [16810]
chan_sip.c restart_monitor())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_sip.c): MUTEX
16479 sipsock_read &netlock 0x67c0d40
(1)
=== ---> Lock https://issues.asterisk.org/view.php?id=1 (chan_sip.c): MUTEX 4757
find_call &p->lock 0x7d9f4d0
(1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=2 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 118102928 (pri_dchannel         started at [10045]
chan_dahdi.c start_pri())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (chan_dahdi.c): MUTEX
9022 pri_dchannel &pri->lock
0x68a9de4 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 144808848 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 155130768 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 167926672 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 170630032 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 155376528 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 157834128 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 147266448 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 154639248 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 153656208 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 169155472 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 154393488 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 170384272 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 159800208 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 156359568 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 156113808 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 159554448 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 168909712 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 149478288 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 160537488 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 157588368 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 166697872 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 157096848 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 166943632 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 169892752 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 161766288 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 145300368 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 159062928 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 158571408 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 158325648 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 156851088 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== -------------------------------------------------------------------
===
=== Thread ID: 161274768 (session_do           started at [ 2522]
manager.c accept_thread())
=== ---> Lock https://issues.asterisk.org/view.php?id=0 (manager.c): RDLOCK 2281
process_message &actionlock
0x81855e0 (1)
=== ---> Waiting for Lock https://issues.asterisk.org/view.php?id=1 (db.c):
MUTEX 151 ast_db_put &dblock
0x817b3a0 (1)
=== --- ---> Locked Here: db.c line 151 (ast_db_put)
=== ------------------------------------------------------------------- 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-15 09:26 aragon         Note Added: 0107780                          
======================================================================




More information about the asterisk-bugs mailing list