Debugging Dynamic Memory Usage Errors Using HP WDB (766161-001, March 2014)
-------------------------------------------------------------------------
100 bytes at 0x405503f0 (0.72% of all bytes allocated)
#0 main() at sample_program.c:22
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
100 bytes at 0x40550460 (0.72% of all bytes allocated)
#0 main() at sample_program.c:23
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
100 bytes at 0x405504d0 (0.72% of all bytes allocated)
#0 main() at sample_program.c:24
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
100 bytes at 0x40550540 (0.72% of all bytes allocated)
#0 main() at sample_program.c:42
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
100 bytes at 0x405505b0 (0.72% of all bytes allocated)
#0 main() at sample_program.c:43
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
100 bytes at 0x40550620 (0.72% of all bytes allocated)
#0 main() at sample_program.c:44
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
NOTE: After setting and before unsetting the rtc log file, all leak report goes to the rtc log file set
(in this example /tmp/rtc_report.rep)
$ cat /tmp/rtc_report.rep
****All Leaks report**** on Thu Feb 28 00:15:41 2013
150 bytes leaked in 3 blocks
No. Total bytes Blocks Address Function
0 150 3 0x4054ead0 main()
-------------------------------------------------------------------------
NOTE:
Function name "???" implies that user has set min-leak-size; function names
are not fetched for leaks of smaller sizes for better performance.
-------------------------------------------------------------------------
Detailed Report
-------------------------------------------------------------------------
150 bytes leaked in 3 blocks (100.00% of all bytes leaked)
These range in size from 50 to 50 bytes and are allocated
#0 main() at sample_program.c:19
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
****Heap report**** on Thu Feb 28 00:15:41 2013
Actual Heap Usage:
Heap Start = 0x400100f0
Heap End = 0x40553000
Heap Size = 5517072 bytes
Outstanding Allocations:
13508 bytes allocated in 104 blocks
No. Total bytes Blocks Address Function
0 8208 1 0x4054caa0 _findbuf()
1 5000 100 0x4054f510 main()
Additional Examples 93