Summary:ASTERISK-10569: Asterisk segfaults on Playback of mp3
Reporter:Russell Brown (ruffle)Labels:
Date Opened:2007-10-18 11:20:33Date Closed:2007-10-18 13:49:09
Versions:Frequency of
Environment:Attachments:( 0) output.txt
Description:The following causes Asterisk to segfault if /tmp/weasels-eaten-phonesys.mp3 is present. If /tmp/weasels-eaten-phonesys.wav exists and the mp3 doesn't then
all is well.

exten => *134,1,Answer
exten => *134,n,Wait(1)
exten => *134,n,Playback("/tmp/weasels-eaten-phonesys")
exten => *134,n,Hangup

The mp3 was generated by "lame --prefix phone /tmp/weasels-eaten-phonesys.wav /tmp/weasels-eaten-phonesys.mp3" but other known mp3s cause the same problem.

I get an entry in syslog:

Oct 18 17:20:03 asterisk kernel: [3618672.768496] asterisk[17515]: segfault at 0000000000000060 rip 00002aad053ab3f0 rsp 00000000408674f8 error 6

The bit of Asterisk debug leading up to the segfault is:

[Oct 18 17:20:03] DEBUG[17515] channel.c: Set channel SIP/112-007177e0 to write format alaw
[Oct 18 17:20:03] DEBUG[17515] pbx.c: Launching 'Playback'
[Oct 18 17:20:03] DEBUG[17515] channel.c: Set channel SIP/112-007177e0 to write format slin

ControlPlayback also causes a segfault but I guess that's no surprise :-)

Mp3Player doesn't cause a segfault but there's no audio output and when used with a larger file (3 minutes long) the MP3Player finishes within about 4 seconds.

I'm running this on an Ubuntu based machine running 64bit on
an Intel(R) Core(TM)2 CPU 6600  @ 2.40GHz.

What other tests/debug would the developers like me to do?
Comments:By: Russell Brown (ruffle) 2007-10-18 11:59:27

Argh!  I'm a muppet :-(   Just noticed asterisk-addons-1.4.4, got it, installed it and Voila!  mp3 playback works.

So it looks like there's an issue with addons-1.4.3 and asterisk-1.4.13 but it's fixed now.

By: Mark Michelson (mmichelson) 2007-10-18 13:49:09

Closing since it has been fixed.