[asterisk-users] AMR - Segmentation Fault

Giacomo Vacca giacomo.vacca at gmail.com
Thu Jul 12 07:13:53 CDT 2012


Hi Chandrakant,
for what I can see the patch you're trying to use (
http://sourceforge.net/projects/aterisk-amr/files/) is going to work with
1.8.13 as well, however the issue behind the crash is not in Asterisk's
code but in 3GPP's original AMR implementation when running on 64-bit hosts.
I've found that applying the patch suggested here:
http://lists.digium.com/pipermail/asterisk-video/2008-October/002229.html to
codecs/amr/typedef.h fixed the crash.

I hope this helps and I'd be interested to know if this solves your issue.

Regards,
Giacomo



Hi All,
> OS : Cent OS 5 64Bit
> Asterisk : 1.8.0-rc2
> AMR Source Link : http://sourceforge.net/projects/aterisk-amr/files/
> When I tried to call or start asterisk, I found "Segmentation Fault". Below
> I paste same for AMR
>
> Loaded symbols for /usr/lib/asterisk/modules/app_db.so
> Core was generated by `asterisk -qg'.
> Program terminated with signal 11, Segmentation fault.
> #0  D_plsf_3 (st=<value optimized out>, mode=<value optimized out>,
> bfi=<value optimized out>, indice=<value optimized out>,
> lsp1_q=0x7fff11d05df0)
>     at sp_dec.c:567
> 567           tmp = ( ( cos_table[ind+1]-cos_table[ind] )*offset ) << 1;
> (gdb) br
> Breakpoint 1 at 0x2aaab57093f1: file sp_dec.c, line 567.
> (gdb) bt
> #0  D_plsf_3 (st=<value optimized out>, mode=<value optimized out>,
> bfi=<value optimized out>, indice=<value optimized out>,
> lsp1_q=0x7fff11d05df0)
>     at sp_dec.c:567
> #1  0x00002aaab570df95 in Decoder_amr (st=0x2aaad6147d00, mode=MR515,
> parm=0x7fff11d06a40, frame_type=<value optimized out>,
> synth=0x7fff11d060a0,
>     A_t=0x7fff11d06730) at sp_dec.c:4717
> #2  0x00002aaab5712e6a in Speech_Decode_Frame (st=0x2aaad613e200, mode=80,
> parm=0x2aaab5725400, frame_type=4294949091, synth=0x2aaad6142ba0)
>     at sp_dec.c:5676
> #3  0x00002aaab56efb25 in Decoder_Interface_Decode (st=0x2aaad613e1e0,
> bits=<value optimized out>, synth=0x2aaad6142ba0, bfi=<value optimized
> out>)
>     at interf_dec.c:816
> #4  0x00002aaab56ee6f9 in amrtolin_framein (pvt=0x2aaad613e5c0, f=<value
> optimized out>) at codec_amr.c:263
> #5  0x0000000000528244 in framein (pvt=0x2aaad613e5c0, f=0x2aaab5942e40) at
> translate.c:178
> #6  0x0000000000529538 in calc_cost (t=0x2aaab593ff40, seconds=1) at
> translate.c:397
> #7  0x000000000052a00c in __ast_register_translator (t=0x2aaab593ff40,
> mod=<value optimized out>) at translate.c:835
> #8  0x00002aaab56ee37b in load_module () at codec_amr.c:490
> #9  0x00000000004c29e3 in start_resource (mod=0xdf) at loader.c:785
> #10 0x00000000004c3308 in load_resource_list (load_order=0x7fff11d07000,
> global_symbols=0, mod_count=0x7fff11d0701c) at loader.c:973
> #11 0x00000000004c3727 in load_modules (preload_only=0) at loader.c:1126
> #12 0x000000000043c2c4 in main (argc=<value optimized out>,
> argv=0x7fff11d095e8) at asterisk.c:3794
> (gdb) quit
>
> --
> Regards,
> Chandrakant Solanki


-- 
Giacomo Vacca
+44 7408866340
+39 3928454855
giacomo.vacca at gmail.com
skype: giacomo.vacca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120712/77c4018c/attachment.htm>


More information about the asterisk-users mailing list