- General information
- Data readiness
- Grid and Cloud
- Infrastructure
- Online Computing
- Software Infrastructure
- Batch system, resource management system
- CVS->Git
- Computing Environment
- Facility Access
- FileCatalog
- HPSS services
- Home directories and other areas backups
- Hypernews
- Installing the STAR software stack
- Provision CVMFS and mount BNL/STAR repo
- RCF Contributions
- Security
- Software and Libraries
- Storage
- Tools
- Tutorials
- Data Carousel Quick Start/Tutorial
- Guide to AFS and ACLs
- How to determine what is happening in slow or stuck processes?
- How to use FORtran from a ROOT macro
- How to use valgrind
- Howto run pythia6/8 or hijing or... without running starsim
- Introduction to STAR software and makers
- Quick guide on CVS in STAR
- Setting up your computing environment
- StEvent/Special documentation
- UML Class Diagram
- Unix command location
- Video Conferencing
- Web Access
- Machine Learning
- Offline Software
- Production
- S&C internal group meetings
- Test tree
How to use valgrind
Updated on Wed, 2013-04-24 18:16. Originally created by jeromel on 2007-01-24 15:58.
Under:
- Check you run in debug mode
% echo $NODEBUG
should give:
NODEBUG: Undefined variable.
If not do
% unsetenv NODEBUG
% stardev - Compile your code using cons
ex: % cons +Hbt - Run valgrind by default. There are 2 cases
- Version valgrind-20030725 on RedHat 7.2
% valgrind `which root4star` -b -q 'macros.C()' - Version valgrind-2.1.1 on RedHat 8.0 greater
% valgrind --tool=memcheck `which root4star` -b -q 'macros.C()'
- Version valgrind-20030725 on RedHat 7.2
- You can add some options, for example
- To redirect outputs in a file: --log-file=Valgrind.log
- To check memory leaks : --leak-check=yes
- For more options please look at this page
»
- Printer-friendly version
- Login or register to post comments