Some application threads (such as rpcbind) use tsd to store thread specific data. When the thread exits, it calls tmem_exit() to release libumem per thread caches, then tsd_exit() to release tsd. This causes leaks since releasing tsd calls free(), which adds the buffer to thread cache again.
Review Request #275 - Created June 3, 2017 and updated
8276 rpcbind leaks memory due to libumem per thread caching.
|Might be nice to have a short comment about the ordering constraint here.||Gordon Ross|
Ugh, that's a nasty issue. Sorry for not thinking about that sooner. Would you mind if we updated the bug synopsis to make it clearer as to what's going on? Thanks so much for working on this!