Linux Purify command
I. Introduction in C/C ++ software development, there is no tool for your application to avoid the introduction of memory problems, however, we can use tools such as Purify to check the memory problems of the programs that have been completed. The strength of Purify is that it can locate all the memory problems in the application, and can be used with GDB, DBX, and other debuggers to make your memory errors clear at a glance. Purify is a Run-Time tool. That is to say, you can only check whether the program has memory problems under certain running conditions based on the program running conditions, it can locate memory errors in a very complex program, including the multi-process or multi-thread program. It can also be tested. Purify detects every memory operation in the program, and accurately reports variables and statements in the memory to provide analysis of the cause of the error. Purify mainly detects the following memory errors: 1) whether the Array Memory is out of bounds read/write 2) Whether uninitialized memory is used 3) whether to read/write the released memory 4) Whether to read/write the NULL pointer 5) memory vulnerability copy Code 2, install http://blog.chinaunix.net/uid-209416-id-2410716.htmlhttp://download.csdn.net/detail/wobuabcd/4071346 3, use http://www.ibm.com/developerworks/cn/rational/r-cail/