|
From: Erdem G. <zu...@ya...> - 2004-12-04 15:42:11
|
Hi,
I use
VALGRIND_CREATE_MEMPOOL
VALGRIND_MEMPOOL_ALLOC
VALGRIND_MEMPOOL_FREE
macros for my memory pool.
I want to report un-freed allocations at the exit but
I can't find a way.
I tried these solutions:
1- Search pool for nonfree chunks and try to
VALGRIND_MEMPOOL_FREE
with chunk address+1 so valgrind reports as
invalid free.
Problem: As I don't use redzones, valgrind report
address as 1 byte
after
previouse block.
2- Tried to hack valgrind to add a client-request to
print info about
given address
so I can call it for un-freed chunks.
Problem: Structure of valgrind is very
complicated. So I decide to
ask for help.
Thanks
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
|