Search the web
Sign In
New User? Sign Up
dmalloc · Debug Malloc Library (dmalloc) Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
glibc internal malloc issues   Message List  
Reply | Forward Message #524 of 529 |
I've noticed that dmalloc will be able to report mallocs made by
internal glibc functions. (In particular, calls like setprotoent()).
glibc does free them, as I can see in their source code, they make
use of some sort of text segment __libc_subfreeres. However, I get
the impression that this happens all of dmalloc's exit calls. So
dmalloc thinks it's unfree'd memory.

Does anyone know how I can get around this? Perhaps a call to glibc
that will force it to run all it's deallocate functions? I tried
calling __libc_freeres() right before program exit, but that had no
effect. It makes it somewhat difficult to be sure that you write
programs that are free of memory leaks when you see this
misrepresented not-free pointers.

Thanks.

I'm using glibc-2.2.5 on linux 2.4.18, btw.





Thu Sep 25, 2003 10:57 pm

dannys42
Offline Offline
Send Email Send Email

Forward
Message #524 of 529 |
Expand Messages Author Sort by Date

I've noticed that dmalloc will be able to report mallocs made by internal glibc functions. (In particular, calls like setprotoent()). glibc does free them, as...
Danny Sung
dannys42
Offline Send Email
Sep 28, 2003
2:46 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help