This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/24026] malloc_info() returns wrong numbers
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 18 Nov 2019 17:58:56 +0000
- Subject: [Bug malloc/24026] malloc_info() returns wrong numbers
- Auto-submitted: auto-generated
- References: <bug-24026-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24026
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.29/master branch has been updated by Arjun Shankar
<arjun@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c6e4c3198b0ec78a921bfc03874fca662c5e9599
commit c6e4c3198b0ec78a921bfc03874fca662c5e9599
Author: Niklas Hamb�chen <mail@nh2.me>
Date: Thu Aug 8 22:02:27 2019 +0200
malloc: Fix missing accounting of top chunk in malloc_info [BZ #24026]
Fixes `<total type="rest" size="..."> incorrectly showing as 0 most
of the time.
The rest value being wrong is significant because to compute the
actual amount of memory handed out via malloc, the user must subtract
it from <system type="current" size="...">. That result being wrong
makes investigating memory fragmentation issues like
<https://bugzilla.redhat.com/show_bug.cgi?id=843478> close to
impossible.
(cherry picked from commit b6d2c4475d5abc05dd009575b90556bdd3c78ad0)
--
You are receiving this mail because:
You are on the CC list for the bug.