This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/22111] malloc: per thread cache is not returned when thread exits
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 27 Sep 2017 05:34:40 +0000
- Subject: [Bug malloc/22111] malloc: per thread cache is not returned when thread exits
- Auto-submitted: auto-generated
- References: <bug-22111-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22111
--- Comment #6 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Carlos O'Donell from comment #5)
> I'm preparing the patch for this with a test that validates the leak.
cat ~/build/glibc-work/malloc/tst-malloc-tcache-leak.out
INFO: 688 (bytes) are in use before starting threads.
INFO: 10864 (bytes) are in use after all threads joined.
OK, I got the test done somewhat portably using mallinfo and some heuristics.
If you see greater than 1000x size difference from the start to the end, then
you've got a leak.
--
You are receiving this mail because:
You are on the CC list for the bug.