Valgrind: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:
=Valgrind=
=Valgrind=


[http://valgrind.org/ Valgrind] is a powerful debugging tool to detect bad memory usage. It can detect memory leaks, but also access to unallocated or deallocated memory, multiple deallocation or other bad memory usage. If your program ends with a ''segmentation fault'', ''broken pipe'' or ''bus error'', you most likely have such a problem in your code.  
[http://valgrind.org/ Valgrind] is a powerful debugging tool to detect bad memory usage. It can detect memory leaks, but also access to unallocated or deallocated memory, multiple deallocation or other bad memory usage. If your program ends with a ''segmentation fault'', ''broken pipe'' or ''bus error'', you most likely have such a problem in your code. [http://valgrind.org/ Valgrind] is installed on Compute Canada clusters as part of the base software distribution - there is no need to load a module to use it.
 
[http://valgrind.org/ Valgrind] is installed on most of the Calcul Québec clusters and is available through a module. To know the exact name of the module on the server you are using, run the following command:
{{Commande|module avail 2>&1 {{!}} grep valgrind}}


== Preparing your application ==
== Preparing your application ==
Bureaucrats, cc_docs_admin, cc_staff
2,318

edits