Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254489 - media-libs/fontconfig-2.6.0-r2 memory leak (patched)
Summary: media-libs/fontconfig-2.6.0-r2 memory leak (patched)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-10 21:40 UTC by Emopig
Modified: 2009-01-11 08:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emopig 2009-01-10 21:40:33 UTC
There is a small memory leak in fontconfig, patched on the mailing list here:
http://lists.freedesktop.org/archives/fontconfig/2008-November/003032.html

Reproducible: Always

Steps to Reproduce:




I just spent 45 mins tracking down a memory leak to find it had already been identified and patched. There hasn't been a fontconfig release since May and no commits to the GIT repository since June so I figured the ebuild might as well be bumped to include this patch?

http://lists.freedesktop.org/archives/fontconfig/2008-November/003032.html

I had a valgrind backtrace of a memory leak reaching this function but i foolishly overwrote the log file, here is a snippet from an earlier log, I was running valgrind on GNOME applets, in this case specifically the system monitor applet.

==9105== 80,672 (32,512 direct, 48,160 indirect) bytes in 45 blocks are definitely lost in loss record 221 of 225
==9105==    at 0x4C22E21: realloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
==9105==    by 0xBD4AD02: (within /usr/lib64/libfontconfig.so.1.3.0)
==9105==    by 0xBD4B794: (within /usr/lib64/libfontconfig.so.1.3.0)
==9105==    by 0xBD48221: FcFontRenderPrepare (in /usr/lib64/libfontconfig.so.1.3.0)

I have tested the patch and the leak vanished.
Comment 1 SpanKY gentoo-dev 2009-01-10 21:57:44 UTC
not sure why i was added to cc ... i dont deal with fontconfig (or fonts) at all
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2009-01-11 08:06:44 UTC
Thank you for report, Emopig.

(In reply to comment #0)
> There is a small memory leak in fontconfig, patched on the mailing list here:
> http://lists.freedesktop.org/archives/fontconfig/2008-November/003032.html

Please, read this discussion till the end. You'll find that upstream don't have any intentions to apply this patch as patch is broken.