Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294045

Summary: sys-apps/groff uses an insane amount of memory when generating libX11 docs
Product: Gentoo Linux Reporter: Maurice van der Pot (RETIRED) <griffon26>
Component: [OLD] UnspecifiedAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixed upstream patch
Fix for "definitely lost" memleaks reported by valgrind

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.