Bug 445627 - Query on Leak summary
Summary: Query on Leak summary
Status: RESOLVED NOT A BUG
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (other bugs)
Version First Reported In: 3.15 SVN
Platform: Other Other
: NOR major
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-17 07:26 UTC by amita dwivedi
Modified: 2021-11-17 08:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description amita dwivedi 2021-11-17 07:26:49 UTC
Can you please let us know how to check for memory leak or to print that output again when we need.
This is required when we do a 24 hour run on Valgrind and check memory leak after 24 hours.

Currently the leak summary gets printed at the very beginning of testing.
Comment 1 Tom Hughes 2021-11-17 08:34:58 UTC
This is a bug tracker - enquiries about how to use valgrind are better directed to the users mailing list.

If the leak summary is printed immediately then the program you are running is exiting immediately and you're not actually running your program under valgrind.

Most likely you have run valgrind on a shell script or other launcher that then launches the real program and you're not using --trace-children=yes so valgrind exits when that initial launcher does and tells you about leaks in the launcher. If you are using --trace-children=yes then valgrind will still be tracing the launched program and will issue an additional report when that exits.