Debugging Dynamic Memory Usage Errors Using HP WDB (766161-001, March 2014)
Overriding the Configuration File Settings.........................................................................53
Printing Hexadecimal Address of Functions in Allocating Stack Traces Produced in Batch Mode
Heap or Leak Report.....................................................................................................54
Debugging in Batch Mode.............................................................................................54
Nudge/Signal Triggered Batch Mode Reporting...............................................................57
Debugging Multiple Applications in Batch Mode ..............................................................58
Debugging Memory from core file...................................................................................59
Debugging in Attach Mode.................................................................................................61
Debugging in RTC-API Mode...............................................................................................62
Calling RTC APIs from user application.............................................................................63
Details of RTC APIs........................................................................................................63
int rtc_logfile (char * log_file_name, int set_or_unset)....................................................63
int rtc_leaks (int new_or_all).......................................................................................63
int rtc_heap (void)....................................................................................................64
int rtc_heap_corruption (void).....................................................................................64
int rtc_enable (int which_check);int rtc_disable (int which_check).....................................64
int rtc_running (void).................................................................................................65
Memory-debugging without prior preparation............................................................................65
Summary of Memory Debugging Commands.............................................................................66
Debugging Memory Using WDB GUI.......................................................................................69
Using WDB GUI to Debug Memory-Related Problems.............................................................69
Heap and Leak Profiling Using WDB GUI.............................................................................69
Incremental Heap Profiling Using WDB GUI.....................................................................70
Arena Profiling Using WDB GUI..........................................................................................72
Step by Step Approach for Detecting Leaks................................................................................76
Steps to Detect Point of Memory Leak...................................................................................76
Sample Test Case to Detect Point of Memory Leak..................................................................77
Conclusion............................................................................................................................82
Additional Examples...............................................................................................................82
FAQ......................................................................................................................................94
Documentation feedback.........................................................................................................96
4 Contents