Why does memory leak occur in rpc.mountd?

Solution Verified - Updated -

Issue

  • mountd is consumes memory over time
  • valgrind output shows that rpc.mountd is leaking memory
==00:00:00:24.636 10815== 18 bytes in 1 blocks are definitely lost in loss record 14 of 37
==00:00:00:24.636 10815==    at 0x4C29BEB: malloc+114 (vg_replace_malloc.c:299)
==00:00:00:24.636 10815==    by 0x573B0C9: strdup+25 (strdup.c:42)
==00:00:00:24.636 10815==    by 0x11730F: parseopts.isra.3+2895 (exports.c:649)
==00:00:00:24.636 10815==    by 0x11787C: getexportent+476 (exports.c:182)
==00:00:00:24.636 10815==    by 0x115049: xtab_read+89 (xtab.c:44)
==00:00:00:24.636 10815==    by 0x10E54B: auth_reload+155 (auth.c:107)
==00:00:00:24.636 10815==    by 0x10E65F: auth_init+15 (auth.c:51)
==00:00:00:24.636 10815==    by 0x10D01D: main+1821 (mountd.c:902)
==00:00:00:24.636 10815==    by 0x56D13D4: __libc_start_main+244 (libc-start.c:266)
==00:00:00:24.636 10815==    by 0x10D3CA: ??? (in /root/rpmbuild/BUILD/nfs-utils-1.3.0/utils/mountd/mountd)

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • rpc.mountd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In