Memory Leak Detection in Sun Solaris OS

Qinqin Ni, Weizhen Sun, Sen Ma · 2008

Memory leak has been exposed to be one of the most serious bugs which are hard to locate and fix in computer program. This paper describes three methods of detecting memory leaks in Solaris when programmers do applications. Using dbx can get specific lines of source codes where memory leak occurs and memory leak sizes. MDB and DTrace can inform the users allocation and reclamation of memory blocks, and fix the memory leak points. The experiments show these three tools can enable us to find memory leaks quickly and correctly. It provides new ways to detect memory leak and avoid this serious bug in program.

Read the paper · More papers on PaperTik