public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers
@ 2008-01-04 12:54 andre dot cruz at co dot sapo dot pt
  2008-01-04 12:57 ` [Bug libc/5541] " andre dot cruz at co dot sapo dot pt
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: andre dot cruz at co dot sapo dot pt @ 2008-01-04 12:54 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/5541] Memory leak found on SUNRPC code on multi-threaded servers
  2008-01-04 12:54 [Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers andre dot cruz at co dot sapo dot pt
@ 2008-01-04 12:57 ` andre dot cruz at co dot sapo dot pt
  2008-01-04 14:49 ` ian at iay dot org dot uk
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: andre dot cruz at co dot sapo dot pt @ 2008-01-04 12:57 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From andre dot cruz at co dot sapo dot pt  2008-01-04 12:57 -------
Created an attachment (id=2169)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2169&action=view)
Patch to correct bug.

Looks like it works.

-- 


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/5541] Memory leak found on SUNRPC code on multi-threaded servers
  2008-01-04 12:54 [Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers andre dot cruz at co dot sapo dot pt
  2008-01-04 12:57 ` [Bug libc/5541] " andre dot cruz at co dot sapo dot pt
@ 2008-01-04 14:49 ` ian at iay dot org dot uk
  2008-01-05  0:14 ` ismail at pardus dot org dot tr
  2008-01-09 21:53 ` drepper at redhat dot com
  3 siblings, 0 replies; 6+ messages in thread
From: ian at iay dot org dot uk @ 2008-01-04 14:49 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at iay dot org dot uk


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/5541] Memory leak found on SUNRPC code on multi-threaded servers
  2008-01-04 12:54 [Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers andre dot cruz at co dot sapo dot pt
  2008-01-04 12:57 ` [Bug libc/5541] " andre dot cruz at co dot sapo dot pt
  2008-01-04 14:49 ` ian at iay dot org dot uk
@ 2008-01-05  0:14 ` ismail at pardus dot org dot tr
  2008-01-09 21:53 ` drepper at redhat dot com
  3 siblings, 0 replies; 6+ messages in thread
From: ismail at pardus dot org dot tr @ 2008-01-05  0:14 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ismail at pardus dot org dot
                   |                            |tr


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/5541] Memory leak found on SUNRPC code on multi-threaded servers
  2008-01-04 12:54 [Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers andre dot cruz at co dot sapo dot pt
                   ` (2 preceding siblings ...)
  2008-01-05  0:14 ` ismail at pardus dot org dot tr
@ 2008-01-09 21:53 ` drepper at redhat dot com
  3 siblings, 0 replies; 6+ messages in thread
From: drepper at redhat dot com @ 2008-01-09 21:53 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2008-01-09 21:52 -------
Applied to mainline.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libc/5541] Memory leak found on SUNRPC code on multi-threaded servers
       [not found] <bug-5541-131@http.sourceware.org/bugzilla/>
@ 2014-07-03 11:43 ` fweimer at redhat dot com
  0 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-07-03 11:43 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=5541

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-07-03 11:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-04 12:54 [Bug libc/5541] New: Memory leak found on SUNRPC code on multi-threaded servers andre dot cruz at co dot sapo dot pt
2008-01-04 12:57 ` [Bug libc/5541] " andre dot cruz at co dot sapo dot pt
2008-01-04 14:49 ` ian at iay dot org dot uk
2008-01-05  0:14 ` ismail at pardus dot org dot tr
2008-01-09 21:53 ` drepper at redhat dot com
     [not found] <bug-5541-131@http.sourceware.org/bugzilla/>
2014-07-03 11:43 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).