Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294045 - sys-apps/groff uses an insane amount of memory when generating libX11 docs
Summary: sys-apps/groff uses an insane amount of memory when generating libX11 docs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-22 13:50 UTC by Maurice van der Pot (RETIRED)
Modified: 2010-07-24 08:18 UTC (History)
0 users

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


Attachments
Fixed upstream patch (groff-1.20.1-memusage.patch,1.63 KB, patch)
2009-11-22 13:51 UTC, Maurice van der Pot (RETIRED)
Details | Diff
Fix for "definitely lost" memleaks reported by valgrind (groff-1.20.1-fix-memleaks.patch,1.60 KB, patch)
2009-11-22 13:52 UTC, Maurice van der Pot (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice van der Pot (RETIRED) gentoo-dev 2009-11-22 13:50:03 UTC
troff uses over 500MB of memory when generating the html documentation for libX11-1.3.2, causing the OOM killer to trigger on one of my systems.

Upstream has implemented a partial fix, but that fix introduces a double-free and other even nastier problems.

The patches I have attached include the upstream fix, a fix for that fix and several fixes for the most important memory leaks in troff. I've sent these fixes to the upstream mailing list as well.

Be sure to enable the new doc USE flag to libX11 if you want to reproduce this.
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2009-11-22 13:51:51 UTC
Created attachment 210881 [details, diff]
Fixed upstream patch
Comment 2 Maurice van der Pot (RETIRED) gentoo-dev 2009-11-22 13:52:39 UTC
Created attachment 210883 [details, diff]
Fix for "definitely lost" memleaks reported by valgrind
Comment 3 SpanKY gentoo-dev 2010-07-24 08:18:43 UTC
should be fixed with groff-1.20.1-r3.  i grabbed the fixes from the upstream cvs.