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 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 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. Valgrind is installed on Compute Canada clusters as part of the base software distribution, so there is no need to load a module to use it.


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

edits