This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/15321] malloc/free can't give the memory back to kernel when main_arena is discontinous
- From: "xu.zhanxin at zte dot com.cn" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 02 Apr 2013 09:53:29 +0000
- Subject: [Bug malloc/15321] malloc/free can't give the memory back to kernel when main_arena is discontinous
- Auto-submitted: auto-generated
- References: <bug-15321-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15321
--- Comment #2 from Zhanxin.xu <xu.zhanxin at zte dot com.cn> 2013-04-02 09:53:29 UTC ---
(In reply to comment #1)
> Created attachment 6958 [details]
> new testcase
> Could you make it to leak memory repeately?
> I enclosed your test in loop and memory consumption remains stable.
The memory(8k) can be used by itself,so memory exhausted not occur in loop.
[@localhost t-arena]$ cat /proc/22652/smaps |grep Rss
Rss: 88 kB
Rss: 4 kB
Rss: 4 kB
Rss: 192 kB
Rss: 0 kB
Rss: 8 kB
Rss: 4 kB
Rss: 12 kB
Rss: 4 kB
Rss: 4 kB
Rss: 4 kB
Rss: 5028 kB /* can't free */
Rss: 0 kB
Rss: 3208 kB /* can't free */
Rss: 4 kB
Rss: 8 kB
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.