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/21731] Bad malloc heuristic result in 30-40x memory consumption


https://sourceware.org/bugzilla/show_bug.cgi?id=21731

--- Comment #4 from Yichao Yu <yyc1992 at gmail dot com> ---
> And this does not seem to be a GLIBC issue based on the example provided

It is, since the memory consumption (measured by overall system memory usage
and also the maxrss of the process) grows much faster than what the actual
accumulated memory does (by more than 100x).

> Also, if you ran the example on valgrind you see it does have a lot of actual memory leaks (which I am not sure if they are intentional or not for the example itself).

Yes it will obviously detect leaks since the program does not free all the
memory it allocates. As mentioned in the original report and above though, that
small amount of accumulated allocation is causing a much higher memory
consumption increase (measured by overall system memory usage and also the
maxrss of the process).

-- 
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]