内存泄漏的动态跟踪分析  被引量:3

Dynamic Trace Analysis on Memory Leak

在线阅读下载全文

作  者:吴民[1] 涂奉生[1] 

机构地区:[1]南开大学信息科学院自动化系,天津300071

出  处:《计算机工程与应用》2005年第14期18-20,共3页Computer Engineering and Applications

基  金:天津市自然科学基金资助项目(编号:013600211)

摘  要:内存泄漏是软件开发中的一个难以定位和修正的严重错误。在大多数情况下,动态内存的有效域虽未明确写出,但仍是程序的局部;且程序动态运行的轨迹在一定程度上反映程序的静态性质。基于以上观察,开发了在面向函数定位框架中嵌入动态分析的内存泄漏监测新方法。新方法中,先建立程序的函数动态调用树,其中包含程序分配释放内存的信息,再在调用树中总结程序的静态性质,为内存泄漏定位提供有价值的信息。该文用两个实例展示这个方法的有效性。Memory leak has been exposed to be one of the most serious bugs that are hard to locate and fix in computer program development.In this paper though it is noted that dynamic variables have some local inexplicit extent under most circumstances,the running trace of a program can reflect its static property to a certain degree.Based on these two observations a new approach for memory leak detection is developed which incorporates dynamic analysis under the framework of function oriented locating?In the new approach,dynamic function calling tree with data about memory allocation and release of the running program is constructed first,then the static property of the program is extracted from the dynamic tree which provides some valuable information for memory leak detection and location.The effectiveness of our approach is demonstrated by two examples in the paper.

关 键 词:内存泄漏 动态内存分配 动态分析 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象