OpenSource For You

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 distributi­on also includes thread error detectors, a cache and branch-prediction profiler, a call-graph generating cache and branchSUHG­LcWLRn SURILOHU, D hHDS SURILOHU DnG WhUHH HxSHULPHnW­DO 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.

Newspapers in English

Newspapers from India