top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

C: Is there any tool to check memory corruption for a program written in C language ?

0 votes
718 views
C: Is there any tool to check memory corruption for a program written in C language ?
posted Mar 30, 2018 by Harshita

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

3 Answers

+3 votes

Hi.

For user space debugging: Valgrind would be the best tool (for checking memory leaks in user applications).
For Kernel space debugging: Enabling Kmemleak for checking memory leaks in kernel space memory allocations.
And of course we can go with gdb debugger also.

Thanks,
Sudharshan S

answer Apr 3, 2018 by Sudharshan
+1 vote

Hi,
Valgrind is the best option to find out memory corruption.

answer Mar 30, 2018 by Jaganathan
0 votes

Along with Valgrind, you can use static analyzer like scan-build which will show the places where memory leaks or corruptions can happen.

answer Apr 1, 2018 by Manohar Venkat.ch
Similar Questions
+6 votes

Can someone please share the tool(s) except "cloc" for sloc.

+3 votes

Please let me know any open source c/c++ static code analysis tool, I need to use that tool for stataic analysis

+1 vote

There is a use case in which two machines are located in same network or different network but both are reachable to each other.
Can remotely captured packets in one machine be seen in wireshark running in another machine on real time basis ?

+1 vote

Tool, which is having good performance, high Scalability and should revirew document as well

...