[asterisk-dev] Need assistance: ast_frfree(f) causes asterisk to crash
Artem Makhutov
artem at makhutov.org
Wed Mar 3 13:35:22 CST 2010
Am 03.03.2010 00:54, schrieb Mark Michelson:
> Artem Makhutov wrote:
>> Hello,
>>
>> I need some assistance for chan_datacard.
>>
>> There is a problem that plaing back .wav audio files with Playback()
>> will crash asterisk. This problem does not exist in usual voice calls or
>> playpack of .gsm files.
>>
>> I have hunted the problem and figure out that the crash is caused by
>> ast_frfree(f):
>>
>> http://pastebin.com/xjUbWUdx
>>
>> Can some body explain me, what is going wrong here? And why does this
>> only happen when using Playback() with a .wav file?
>
> It's hard to tell from what you have provided what is going wrong. It would be a
> good idea to provide a backtrace from a crash that you experience. Also, I would
> recommend running your test under valgrind since it can likely more clearly
> point out what the problem is. It would also be worthwhile to playback a gsm
> file with valgrind running just to be absolutely sure the same problem isn't
> happening with it.
>
> Also, if you do provide backtraces and valgrind traces, it would be a good idea
> to specify what version of Asterisk you're developing against as well.
I am developing agains asterisk 1.6.2.5.
I have removed the ast_frfree(f) from the function and could not see any
complains of valgrind about it. Is it safe to asume that the frame is
freed somewhere else?
Thanks, Artem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6531 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20100303/26f9d45f/attachment.bin
More information about the asterisk-dev
mailing list