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

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Jun 21 15:38:55 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-06-21 15:38 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...
====================================================================== 

---------------------------------------------------------------------- 
 (0106764) aragon (reporter) - 2009-06-21 15:38
 https://issues.asterisk.org/view.php?id=15109#c106764 
---------------------------------------------------------------------- 
Patched version crashed on 2009-06-20T09:42:59-0400 in files mode moh.

musiconhold.conf
[default]
mode = files
directory = /var/lib/asterisk/moh/
random = yes

I'll try to post some valgrind data on Monday if I can produce any data
under Valgrind... 
Here is the full backtrace (not under valgrind)


(gdb) bt
https://issues.asterisk.org/view.php?id=0  0x006d9402 in __kernel_vsyscall ()
https://issues.asterisk.org/view.php?id=1  0x00760d80 in raise () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=2  0x00762691 in abort () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=3  0x0079924b in __libc_message () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=4  0x007a4ceb in free () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=5  0x0041642a in ExitMP3 () from
/usr/lib/asterisk/modules/format_mp3.so
https://issues.asterisk.org/view.php?id=6  0x0040ef53 in __i686.get_pc_thunk.bx
()
   from /usr/lib/asterisk/modules/format_mp3.so
https://issues.asterisk.org/view.php?id=7  0xb26418a8 in ?? ()
https://issues.asterisk.org/view.php?id=8  0x00228974 in ?? () from
/usr/lib/asterisk/modules/res_musiconhold.so
https://issues.asterisk.org/view.php?id=9  0xb67d0008 in ?? ()
https://issues.asterisk.org/view.php?id=10 0x080b04b2 in filestream_destructor
()
Backtrace stopped: frame did not save the PC
(gdb) bt full
https://issues.asterisk.org/view.php?id=0  0x006d9402 in __kernel_vsyscall ()
No symbol table info available.
https://issues.asterisk.org/view.php?id=1  0x00760d80 in raise () from
/lib/libc.so.6
No symbol table info available.
https://issues.asterisk.org/view.php?id=2  0x00762691 in abort () from
/lib/libc.so.6
No symbol table info available.
https://issues.asterisk.org/view.php?id=3  0x0079924b in __libc_message () from
/lib/libc.so.6
No symbol table info available.
https://issues.asterisk.org/view.php?id=4  0x007a4ceb in free () from
/lib/libc.so.6
No symbol table info available.
https://issues.asterisk.org/view.php?id=5  0x0041642a in ExitMP3 () from
/usr/lib/asterisk/modules/format_mp3.so
No symbol table info available.
https://issues.asterisk.org/view.php?id=6  0x0040ef53 in __i686.get_pc_thunk.bx
()
   from /usr/lib/asterisk/modules/format_mp3.so
No symbol table info available.
https://issues.asterisk.org/view.php?id=7  0xb26418a8 in ?? ()
No symbol table info available.
https://issues.asterisk.org/view.php?id=8  0x00228974 in ?? () from
/usr/lib/asterisk/modules/res_musiconhold.so
No symbol table info available.
https://issues.asterisk.org/view.php?id=9  0xb67d0008 in ?? ()
No symbol table info available.
https://issues.asterisk.org/view.php?id=10 0x080b04b2 in filestream_destructor
()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
Backtrace stopped: frame did not save the PC
(gdb) thread apply all bt

Thread 1 (process 4093):
https://issues.asterisk.org/view.php?id=0  0x006d9402 in __kernel_vsyscall ()
https://issues.asterisk.org/view.php?id=1  0x00760d80 in raise () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=2  0x00762691 in abort () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=3  0x0079924b in __libc_message () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=4  0x007a4ceb in free () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=5  0x0041642a in ExitMP3 () from
/usr/lib/asterisk/modules/format_mp3.so
https://issues.asterisk.org/view.php?id=6  0x0040ef53 in __i686.get_pc_thunk.bx
()
   from /usr/lib/asterisk/modules/format_mp3.so
https://issues.asterisk.org/view.php?id=7  0xb26418a8 in ?? ()
https://issues.asterisk.org/view.php?id=8  0x00228974 in ?? () from
/usr/lib/asterisk/modules/res_musiconhold.so
https://issues.asterisk.org/view.php?id=9  0xb67d0008 in ?? ()
https://issues.asterisk.org/view.php?id=10 0x080b04b2 in filestream_destructor
() 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-21 15:38 aragon         Note Added: 0106764                          
======================================================================




More information about the asterisk-bugs mailing list