[Home]

Summary:ASTERISK-04748: format_mp3 Music on hold causes segfault
Reporter:jmls (jmls)Labels:
Date Opened:2005-08-01 11:40:44Date Closed:2011-06-07 14:10:38
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) btfull.txt
( 1) piazzolla__verano_porteno.mp3
Description:If you are using native music on hold (addons/format_mp3) and have two files with different bit rates in the same folder, * segfaults.

****** ADDITIONAL INFORMATION ******

these are the files that cause the segfault. fpm-calm-river.mp3 has a bit rate of 128, and piazzolla__verano_porteno.mp3 has a rate of 8.

-rw-------  1 root root 12591104 Aug  1 17:08 core.14460
-rw-r--r--  1 root root  1939812 Aug  1 14:39 fpm-calm-river.mp3
-rw-r--r--  1 root root   402264 Aug  1 14:24 piazzolla__verano_porteno.mp3

the gdb from the core is

(gdb) bt
#0  0x00533dfd in set_pointer () from /usr/lib/asterisk/modules/format_mp3.so
#1  0x0806a691 in ast_readframe (s=0x40) at file.c:554
#2  0x00871bb8 in moh_files_generator (chan=0x87e3ec8, data=0x886b2c0, len=160, samples=160) at res_musiconhold.c:229
#3  0x080639ca in ast_read (chan=0x87e3ec8) at channel.c:1659
#4  0x08065425 in ast_safe_sleep (chan=0x87e3ec8, ms=6175) at channel.c:764
ASTERISK-1  0x008729d1 in moh0_exec (chan=0x87e3ec8, data=0x2710) at res_musiconhold.c:530
ASTERISK-2  0x0808cd98 in pbx_extension_helper (c=0x87e3ec8, con=0x0, context=0x87e4018 "from-sip", exten=0x87e410c "705", priority=2,
   label=0x0, callerid=0xb7b8f080 "classical", action=0) at pbx.c:553
ASTERISK-3  0x0808e086 in __ast_pbx_run (c=0x87e3ec8) at pbx.c:2149
ASTERISK-4  0x0808fc7e in pbx_thread (data=0x87e3ec8) at pbx.c:2436
ASTERISK-5  0x0065c341 in __pthread_initialize_minimal () from /lib/tls/libpthread.so.0
ASTERISK-6 0x00c84fee in clone () from /lib/tls/libc.so.6
Comments:By: Michael Jerris (mikej) 2005-08-01 12:08:54

can you attatch a bt full as an attached file please.

By: jmls (jmls) 2005-08-01 12:24:08

file uploaded as requested.

By: Clod Patry (junky) 2005-08-22 21:53:48

Just as curiosity, do you mind attach "piazzolla__verano_porteno.mp3" ?



By: jmls (jmls) 2005-08-23 04:18:24

file uploaded as requested.

By: Michael Jerris (mikej) 2005-08-24 01:11:53

junky- are you working on reproducing this one?

By: Kevin P. Fleming (kpfleming) 2005-08-26 17:04:52

I've reclassified this bug, since format_mp3 is _NOT_ part of Asterisk proper, and as such does not qualify as a 'crash' bug against Asterisk. If someone can provide a patch to solve the problem we'll review it, but otherwise this will be a low-priority issue.

By: Clod Patry (junky) 2005-08-26 17:42:58

i'll during week-end.

By: Kevin P. Fleming (kpfleming) 2005-09-15 17:52:02

Closing due to lack of patch availability. Please re-open if you have a patch to solve the problem.

By: Michael Jerris (mikej) 2005-09-15 19:27:18

I have been told that there is a known issue in the mp3 lib that this is using that certain kinds of mp3 compression will cause it to segfault.  Try using sox to decode to slin and re-encode into mp3 and it should resolve this issue.  Also, if you are using the mp3 for MOH, it will be much more efficient to just leave it in raw slin.