Debugging Dynamic Memory Usage Errors Using HP WDB (766161-001, March 2014)
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
100 bytes at 0x405504d0 (0.74% of all bytes allocated)
#0 main() at sample_program.c:24
#1 main_opd_entry() from /usr/lib/hpux32/dld.so
-------------------------------------------------------------------------
The RTC output file is set to /tmp/rtc_report.rep
RTC heap corruption detection is disabled
The RTC logfile /tmp/rtc_report.rep is turned off.
****New 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 0x4054eb90 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
-------------------------------------------------------------------------
RTC leaks detection is disabled
****Heap report**** on Thu Feb 28 00:15:41 2013
Actual Heap Usage:
Heap Start = 0x400100f0
Heap End = 0x4097b000
Heap Size = 9875216 bytes
Outstanding Allocations:
13808 bytes allocated in 107 blocks
No. Total bytes Blocks Address Function
0 8208 1 0x4054caa0 _findbuf()
1 5000 100 0x4054f590 main()
2 100 1 0x405503f0 main()
3 100 1 0x40550460 main()
4 100 1 0x405504d0 main()
5 100 1 0x40550540 main()
6 100 1 0x405505b0 main()
7 100 1 0x40550620 main()
-------------------------------------------------------------------------
Detailed Report
-------------------------------------------------------------------------
8208 bytes at 0x4054caa0 (59.44% of all bytes allocated)
#0 _findbuf() at ../../../../../core/libs/libc/shared_em_32_perf/../core/stdio/flsbuf.c:328
#1 _wrtchk() at ../../../../../core/libs/libc/shared_em_32_perf/../core/stdio/flsbuf.c:262
#2 _printf() at ../../../../../core/libs/libc/shared_em_32_perf/../core/stdio/printf.c:35
#3 main() at sample_program.c:12
-------------------------------------------------------------------------
5000 bytes in 100 blocks (36.21% of all bytes allocated)
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
92