This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/22111] malloc: per thread cache is not returned when thread exits


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]