Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 6 and Version 7 of CHowTo/Valgrind


Ignore:
Timestamp:
Apr 18, 2010, 7:55:02 PM (14 years ago)
Author:
darkrain42
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CHowTo/Valgrind

    v6 v7  
    1 This page is intended to help developers understand how to best memory check their plugin using the popular tool valgrind. It is currently bare bones, and will be updated soon!
     1Valgrind is a debugg
     2
     3This page is intended to help developers/users understand how to best memory check their plugin using the popular tool valgrind. It is currently bare bones, and will be updated soon!
    24{{{
    35$ export PURPLE_LEAKCHECK_HELP=1
    46$ export G_SLICE=always-malloc
    5 $ valgrind --tool=memcheck --leak-check=yes --leak-resolution=high --num-callers=20 --trace-children=no --child-silent-after-fork=yes --track-fds=yes pidgin -d 2>&1
     7$ valgrind --tool=memcheck --leak-check=yes --leak-resolution=high --num-callers=20 --trace-children=no --child-silent-after-fork=yes --track-fds=yes pidgin -d >valgrind.log 2>&1
    68}}}
    79
    810If valgrind supports it, add `--track-origins=yes` to the above.  It makes diagnosing issues ridiculously easier.
     11
     12I also enjoy using ` | tee valgrind.log` instead of `>valgrind.log 2>&` (visual feedback of what valgrind is doing)
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!