Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172014 - nfs-utils-1.0.12 rpc.mountd has a huge memory leak
Summary: nfs-utils-1.0.12 rpc.mountd has a huge memory leak
Status: RESOLVED DUPLICATE of bug 171844
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-24 08:25 UTC by Bardur Arantsson
Modified: 2007-03-24 09:23 UTC (History)
0 users

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


Attachments
nfs-utils-1.0.12-memleak.patch (nfs-utils-1.0.12-memleak.patch,517 bytes, patch)
2007-03-24 08:26 UTC, Bardur Arantsson
Details | Diff
e2fsprogs-1.39-memleak.patch (e2fsprogs-1.39-memleak.patch,930 bytes, patch)
2007-03-24 08:27 UTC, Bardur Arantsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bardur Arantsson 2007-03-24 08:25:03 UTC
The rpc.mountd in nfs-utils version 1.0.12 leaks memory like a sieve. On my nfs server (2 clients doing ... not very much) it would end up leaking around 1GB over 24h-48h.

This is apparently caused by a memory leak in e2fsprogs (which rpc.mountd uses as a library starting with 1.0.12). See http://article.gmane.org/gmane.linux.nfs/12887 for official confirmation from the upstream maintainer. :)

Two patches are needed to fix the leak, one against sys-fs/e2fsprogs and one against net-fs/nfs-utils -- both are referred to by the above mentioned post, but I'll attach them to this bug shortly (for your convenience).

Cheers,
Comment 1 Bardur Arantsson 2007-03-24 08:26:24 UTC
Created attachment 114208 [details, diff]
nfs-utils-1.0.12-memleak.patch
Comment 2 Bardur Arantsson 2007-03-24 08:27:21 UTC
Created attachment 114209 [details, diff]
e2fsprogs-1.39-memleak.patch
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-03-24 09:02:38 UTC

*** This bug has been marked as a duplicate of bug 171844 ***
Comment 4 SpanKY gentoo-dev 2007-03-24 09:10:42 UTC
nfs-utils-1.0.12-r1 now in the tree with that mountd fix, cheers
Comment 5 Bardur Arantsson 2007-03-24 09:21:23 UTC
Sorry about the semi-duplicate (don't know why i didn't think to search for e2fsprogs :/), but #171844 doesn't seem to address the leak in rpc.mountd itself. This second leak is not nearly as serious, but it's still a leak and as such it should be patched.

Cheers,
Comment 6 Bardur Arantsson 2007-03-24 09:23:39 UTC
Nevermind that. Didn't notice vapier's comment until it was too late :).

Thanks.