Detecting memory errors using Valgrind
,n WhLV VHcWLRn, OHW XV HxSORUH hRw WR XVH VDOJULnG WR GHWHcW memory errors in a program written in C/CHH. Apart from the MemCheck tool, the salgrind distribution also includes thread error detectors, a cache and branch-prediction profiler, a call-graph generating cache and branchSUHGLcWLRn SURILOHU, D hHDS SURILOHU DnG WhUHH HxSHULPHnWDO tools: a heap/stack/global array overrun detector, a second hHDS SURILOHU WhDW HxDPLnHV hRw hHDS bORcNV DUH XVHG, DnG a SimPoint basic block vector generator. salgrind-3.U.1 is the latest stable version, which has been used for this article. The following platforms support salgrind: XU6/ /LnXx, AMD64//LnXx, ARM//LnXx, 33C32//LnXx, 33C64/ /LnXx, 6390;//LnXx, M,36//LnXx, ARM/AnGURLG (2.3.x DnG ODWHU), ;86/AnGURLG (4.0 DnG ODWHU), ;86/DDUwLn DnG AMD64/DDUwLn.