AW: [Tremor] Question to memory leaks in Tremor

Lorber, Markus markus.lorber at siemens.com
Mon Sep 25 03:03:50 PDT 2006


Hi Roland,
 
thanks for the hint. Frederic Bastien told me about your fixes and I
tried them out. Thinks have improved but my Tremor version still suffers
from remaining memory leaks. The solution for my application will
probably be that I am going to use different heaps for different
OggVorbis channels. After haveing finished a stream on one channel, I am
going to clear the corresponding heap. This is not the most elegant
methode but it seems to make things save. And luckyly I have enough
memory for the needed heaps.
 
Thanks and best regards,
Markus

________________________________

Von: Roland Wintersteller [mailto:rwinters at europe.com] 
Gesendet: Samstag, 23. September 2006 12:44
An: Lorber, Markus
Betreff: AW: [Tremor] Question to memory leaks in Tremor


Hi Markus, 
 
it's more than 2 years ago when I worked on tremor. Here a links to that
what I found out during my investigations...
 
http://lists.xiph.org/pipermail/tremor/2004-April/000965.html
 
Have fun and best regards, Roland 
 
________________________________

Von: tremor-bounces at xiph.org [mailto:tremor-bounces at xiph.org] Im Auftrag
von Lorber, Markus
Gesendet: Mittwoch, 20. September 2006 16:12
An: tremor at xiph.org
Betreff: [Tremor] Question to memory leaks in Tremor
 
Hello,
 
I am working with Tremor (codec source as of date 2002 09 02, version
1.0.0) on a Blackfin DSP. Basically my implementaion works but there
remains a problem with memory leaks. If I playback an OggVorbis File
several times (were I always call ov_open_callbacks(),..., ov_read(),
ov_clear() similar to the example code), it ends up in a DSP-exception
because of a heap overflow.
 
I found some hints in the Tremor forum that there exists a memory leak
problem. Is that correct or could it be that I do a wrong usage of the
API-functions (e.g. ov_clear())? 
 
I am planing to do a work-around by implementing a list, were each
pointer allocated by malloc(), calloc(), realloc() is written to. Every
free() (and if neccessary every realloc() ) would clear the
corresponding pointer in the list. Finally after having finished an
OggVorbis stream, I would do a free() on each pointer remaining after
ov_clear() to clean up the heap.
 
My question now is: Does enyone have suggestions for a better
work-around or does a newer version of Tremor exist, which overcomes the
memory leak problem?
 
Thank you and best regards,
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/tremor/attachments/20060925/2395ffe0/attachment.htm


More information about the Tremor mailing list