Debugging Dynamic Memory Usage Errors Using HP WDB (766161-001, March 2014)

(gdb) info corruption
Current thread is inside the allocator. Try again later.
This error message signifies that the program execution is in a frame that belongs to a GDB
internal leak detection library. When this error is encountered, it is not safe to enter commands
that involve calls to the leak detection library procedures. The user must set the frame to the
last leak detection library frame and enter the finish command before resuming to debug
memory.
Example 26 (page 89) illustrates the use of the finish to resume memory debugging when
the program execution is in a frame that belongs to the GDB internal leak detection library.
14 Does memory heap or leak detection work if libmallocng is used for heap allocation
management instead of libc?
Yes. On Itanium systems, the heap or leak detection works if libmallocng is used for heap
management. The arena information cannot be obtained when the application uses
libmallocng.
15 The batch mode RTC sometimes crashes when the application has atfork handlers.
The batch mode RTC might have problems if the application has atfork handler. This issue
has been resolved from version 6.1 of librtc on Itanium systems.
Documentation feedback
HP is committed to providing documentation that meets your needs. To help us improve the
documentation, send any errors, suggestions, or comments to Documentation Feedback
(docsfeedback@hp.com). Include the document title and part number, version number, or the URL
when submitting your feedback.
Index
A
Access Errors, 8
Attach Mode, 61
B
Batch Mode , 49
Batch Mode Configuration File, 52
BATCH_RTC, 49
C
catch nomem , 23
D
Dangling pointerinfo dangling, 43
Debugging Memory Using WDB GUI, 69
E
Environment Variables for Batch Mode , 49
Error Injection, 23
Event Monitoring, 29
H
Heap Corruption, 7
Heap Profiling, 11
I
Incremental Heap Profiling, 13
info corruption, 36, 41
96 Index