This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Very confused about malloc in Linux, Help!!!
- From: Shigang Zan <zanshigang at hotmail dot com>
- To: <libc-help at sourceware dot org>
- Date: Sat, 9 Oct 2010 13:10:20 +0000
- Subject: Very confused about malloc in Linux, Help!!!
Hi,
Now I have met a problem about my software in Linux. The memory usage kept increasing until no memory to use.
I found that malloc will return many addresses higher than 0x40000000 when I requested memory using malloc, the addresses were not in heap area (below 0x40000000). I don't know why this scenario happened. And it seemed many blocks (1020K 1024K ...) were created and until memory was exhausted by them.
What can I do to found the root cause of this problem. I found many blocks had no content, but why system crote more and more blocks.
Thanks Very Much!!!!