[asterisk-users] asterisk crash and core dump: format_mp3.so

Atis Lezdins atis at iq-labs.net
Thu Sep 20 04:44:54 CDT 2007


On Thursday 20 September 2007 11:34:44 Vieri wrote:
> My Asterisk server process irregularly segfaults, ie.
> it usually works fine (is stable) when there's low
> traffic but repeatedly crashes during morning hours
> when there are more calls.
>
> I gdb'ed the core dump files and found that the
> culprit may be format_mp3. So I disabled MOH today and
> will see if that's the cause.
> I know that mp3 files are known to cause * crashes but
> what I don't understand is why it doesn't *always*
> crash (ie. why doesn't it crash even when there's low
> traffic? I mean, if the offending code is in the mp3
> format then it should *always* crash, right?).

We also experienced this problem on 1.2, but i'm not sure that this is 
registered in bug database. You should check bugs.digium.com and if it's 
still valid for 1.4, you should post your backtraces there.

As solution - we refused from using format_mp3 at all - actually it has almost 
no benefits. If your MOH is in MP3s - you will get them decoded (and 
translated to necessary codec) on-the-fly for every call, so more 
performance. You can convert all your MOH to native channell formats of 
asterisk, and put all those files (one for each format/MOH combination) in 
MOH directory - asterisk will pick up one with less translation.

Regards,
Atis


-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835



More information about the asterisk-users mailing list