This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers
- From: "andre dot cruz at co dot sapo dot pt" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 4 Jan 2008 12:53:59 -0000
- Subject: [Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers
- Reply-to: sourceware-bugzilla at sourceware dot org
Not all structures are being freed on __rpc_thread_destroy() . This causes
memory usage to grow ad infinitum when the server is multithreaded.
Apply the following patch to fix:
--- glibc-2.3.6/sunrpc/rpc_thread.c 2003-02-22 01:57:51.000000000 +0000
+++ build-tree/glibc-2.3.6/sunrpc/rpc_thread.c 2008-01-04 12:52:06.000000000 +0000
@@ -29,6 +29,8 @@
free (tvp->svcraw_private_s);
free (tvp->authdes_cache_s);
free (tvp->authdes_lru_s);
+ free (tvp->svc_xports_s);
+ free (tvp->svc_pollfd_s);
free (tvp);
__libc_tsd_set (RPC_VARS, NULL);
}
--
Summary: Memory leak found on SUNRPC code on multi-threaded
servers
Product: glibc
Version: 2.3.6
Status: NEW
Severity: critical
Priority: P3
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: andre dot cruz at co dot sapo dot pt
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=5541
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.