Bug 84541 - valgrind should keep more track of dynamic objects
Summary: valgrind should keep more track of dynamic objects
Status: RESOLVED DUPLICATE of bug 79362
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 2.1.1
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-06 05:05 UTC by Howard Chu
Modified: 2004-07-06 10:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Howard Chu 2004-07-06 05:05:13 UTC
Memory leak reporting is typically done at the end of execution. If the main
program had dynamically loaded some modules, and memory leaks occurred in those
modules, and the modules are unloaded before program termination, then the leak
reports will not have symbol name info for the addresses in the stack trace.

If the program loads and unloads modules repeatedly over the course of
execution, and the same address space is reused multiple times (does this
happen?) then the address/symbol info for the stack trace is unreliable; the
symbols found may not be relevant to the code that was actually executing at the
time.

It would be a good idea to add a time stamp or a sequence number to all the
malloc/free events, and remember the span of time or sequences in which a
particular module occupied a particular address space, so that the leaks can be
unambiguously tied to the specific module that caused them.
Comment 1 Howard Chu 2004-07-06 05:11:34 UTC
Sorry, I guess this is a dup of bug #79362.
Comment 2 Nicholas Nethercote 2004-07-06 10:39:36 UTC
Thanks for identifying the dup.

*** This bug has been marked as a duplicate of 79362 ***