Help running valgrind

Hi,
I’m having some trouble runnign valgrind on root. When I run it, I get basically nothing back - which I have trouble believing… :slight_smile:

[code]bash-3.2$ valgrind --leak-check=full root -q
==32657== Memcheck, a memory error detector
==32657== Copyright © 2002-2009, and GNU GPL’d, by Julian Seward et al.
==32657== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
==32657== Command: root -q
==32657==


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.27/05 30 June 2010 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      http://root.cern.ch            *
    
  •                                     *
    

ROOT 5.27/05 (trunk@35498, Sep 21 2010, 00:48:05 on linuxx8664gcc)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
==32657==
==32657== HEAP SUMMARY:
==32657== in use at exit: 53 bytes in 2 blocks
==32657== total heap usage: 683 allocs, 681 frees, 425,889 bytes allocated
==32657==
==32657== LEAK SUMMARY:
==32657== definitely lost: 0 bytes in 0 blocks
==32657== indirectly lost: 0 bytes in 0 blocks
==32657== possibly lost: 0 bytes in 0 blocks
==32657== still reachable: 53 bytes in 2 blocks
==32657== suppressed: 0 bytes in 0 blocks
==32657== Reachable blocks (those to which a pointer was found) are not shown.
==32657== To see them, rerun with: --leak-check=full --show-reachable=yes
==32657==
==32657== For counts of detected and suppressed errors, rerun with: -v
==32657== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
[/code]

This was a debug build (I did the build)… W/out the suppression file there is no way it was that clean. And even if I do more, I still see a report almost as clean. So - is it really this clean? Or am I running this incorrectly? :slight_smile: -GOrdon.

you must run on root.exe, not root. see Users Guide

Rene

Ah! Thanksm Rene. I didn’t think to look in the users guide for something like this, and on Linux, it didn’t occur to me that a .exe would exist (nor does it show up in the process list). Have created a script to do this so I don’t forget next time. Should help me with my other problems!