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 libc/2226] Memory leak in fputws


------- Additional Comments From markxjohnson at earthlink dot net  2006-02-12 19:32 -------
Although both buffers are deallocated, why is the buffer allocated via 

mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2acbc5eac000
             ^
 
allocating 16384 bytes but the corresponding

munmap(0x2acbc5e87000, 4096)            = 0
                         ^
only releasing 4096 bytes - what happened to the other 12288 bytes (12KB)

Your answer also doesn't explain why fputs will still only consume 176KB of 
memory but fputws consumes 120MB of memory in the second case - even though 
the entry in /proc is not a completely accurate value why would the difference 
be so huge?




-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=2226

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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