[FFmpeg-devel] Longevity Test Report

Michael Niedermayer michaelni
Wed Feb 4 12:52:57 CET 2009


On Wed, Feb 04, 2009 at 12:13:24PM +0100, Reimar D?ffinger wrote:
> On Wed, Feb 04, 2009 at 12:00:53PM +0100, Benjamin Larsson wrote:
> > My suggestion to find these kind of problems is to wrap av_malloc in a 
> > macro that expands av_malloc to av_leak_malloc(size,__FILE__,__LINE).
> 
> There are more than enough tools that do that already, only that most
> suck. Please spend your efforts on fixing/improving those general
> solutions instead implementing you own and very limited version.
> Also the issue is not really a leak otherwise valgrind would probably
> work fine (even if a little slow, and not on Windows).
> 
> > I know at least one ticket where this kind of tool would have helped 
> > alot. Or we could use memwatch.
> 
> Neither your suggestions nor memwatch allow to get a backtrace AFAICT.

what backtrace do you want that you dont get?
valgrind can provide pretty backtraces when you compile without
-fomit-frame-pointer and possibly -g<large number>


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090204/d015c7d1/attachment.pgp>



More information about the ffmpeg-devel mailing list