search for: watch_malloc_sizes

Displaying 1 result from an estimated 1 matches for "watch_malloc_sizes".

2006 Oct 30
3
Why does gethostbyname_r appear to leak?
....final contains a list showing that the last operation on several addresses is a malloc or calloc rather than a free as expected which suggests that it is leaking. How to repeat my dtrace test. 1. Run leak in the background. prompt> leak & 509 prompt> 2. [u]Within 10 seconds[/u] start watch_malloc_sizes.d passing in the pid of leak and a time interval. Thus:- prompt> ./watch_malloc_sizes.d 509 5s where 509 is the PID taken from above. The DTrace script is trying to match allocated memory with a call to free in any other thread. Every <interval> seconds it displays an interim report and f...