|
From: | Bob Friesenhahn |
Subject: | Re: libltdl leaks when unloading plugins depending on external lib |
Date: | Tue, 3 Apr 2012 17:04:11 -0500 (CDT) |
User-agent: | Alpine 2.01 (GSO 1266 2009-07-14) |
On Tue, 3 Apr 2012, Brice Goglin wrote:
It is common for glibc to secretly allocate some memory for its own use, and this is particularly true for multi-threaded programs. Often it has no way to safely release this memory.I tried with another dependency (libpci instead of libpthread), the leaks go away, so indeed the problem is likely outside of libltdl.
The important thing to test for is that if you load and unload this module 1000 times, do you see 1000X as much "leak" or the same amount as when loading/unloading one time?
Bob -- Bob Friesenhahn address@hidden, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
[Prev in Thread] | Current Thread | [Next in Thread] |