期刊文献+

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

Dynamic Trace Analysis on Memory Leak
下载PDF
导出
摘要 内存泄漏是软件开发中的一个难以定位和修正的严重错误。在大多数情况下,动态内存的有效域虽未明确写出,但仍是程序的局部;且程序动态运行的轨迹在一定程度上反映程序的静态性质。基于以上观察,开发了在面向函数定位框架中嵌入动态分析的内存泄漏监测新方法。新方法中,先建立程序的函数动态调用树,其中包含程序分配释放内存的信息,再在调用树中总结程序的静态性质,为内存泄漏定位提供有价值的信息。该文用两个实例展示这个方法的有效性。 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.
作者 吴民 涂奉生
出处 《计算机工程与应用》 CSCD 北大核心 2005年第14期18-20,共3页 Computer Engineering and Applications
基金 天津市自然科学基金资助项目(编号:013600211)
关键词 内存泄漏 动态内存分配 动态分析 memory leak,dynamic memory allocation,dynamic analysis
  • 相关文献

参考文献7

  • 1Jonas Maebe,Michiel Ronsse,Koen De Bosschere. Precise detection of memory leaks[C].In:Proceedings of the Second International Workshop on Dynamic Analysis,2004-05:25~31.
  • 2N Nethercote ,J Seward. Valgrind:a program supervison framework[C].In:O Sokolsky,M Viswanathan eds. Electronic Notes in Theoretical Computer Science ,Elsevier, 2003; 89.
  • 3吴民,涂奉生.Linux下面向函数的动态内存泄漏监测[J].计算机工程与应用,2003,39(6):37-40. 被引量:8
  • 4Kernighan,Brian W,Ritchie. The C Programming Language[M].Englewood Cliffs,N J,Prentice-Hall, 1978.
  • 5Samuel P Harbison Ⅲ,Guy L Steele Jr.C A Reference Manual[M].Fifth Edition, Prentice Hall, Pearson Education Inc, 2002.
  • 6Thomas Ball.The concept of dynamic analysis[C].In:Proceedings of the Seventh European Software Engineering Conference/Seventh ACM SIGSOFT Symposium on the Foundations of Software Engineering,Springer-Verlag, 1999-09: 216~234.
  • 7Jonathan et al ed. Proceedings of the Second International Workshop on Dynamic Analysis,2004-05.

二级参考文献1

  • 1Kerni曲an BrianW PikeRob.The Practice of Programming[M].北京:机械工业出版社,2002..

共引文献7

同被引文献21

  • 1李全虎.交互界面开发工具-Qt[J].中国科技信息,2005(5):33-33. 被引量:6
  • 2张广梅,李晓维.动态内存错误的静态检测[J].计算机辅助设计与图形学学报,2005,17(3):400-406. 被引量:3
  • 3王卫东,屈洋.可视化图形界面中有关控件的属性类的研究[J].微机发展,2005,15(12):27-28. 被引量:4
  • 4张威,卢庆龄,李梅,宫云战.基于指针分析的内存泄露故障测试方法研究[J].计算机应用研究,2006,23(10):22-24. 被引量:7
  • 5Hastings R, Joyce B. Purify: Fast Detection of Memory Leaks and Access Error[C]//Proceedings of the Winter USENIX Conference. 1999 : 125-136.
  • 6Sagiv M, Reps T, Wilhelm R. Solving Shape-analysis Problems in Language with Destructive Updating [C] // Symposium on Principles of Programming Languages. Florida, 1996 : 110-118.
  • 7Landi W,Ryder B G. Safe Approximate Algorithm for Interpro cedural Pointer Aliasing[C]//ACM SIGPLAN Notices. 1992 : 235-248.
  • 8Wilson R P, I.am M S. Efficient Context - sensitive Pointer Ana - lysis for C Program[C]..//Proceedings of the ACM SIGPLANE'95 Conference on Programming Language Design and Implementation(PLDI). California, 1995 : 18-21.
  • 9Heine D L,Lam M S. A practical flow sensitive and context sensitive C and C+ + memory leak deteetor[J]. ACM SIGPLAN Notices, 2003 : 168-181.
  • 10Austin T M,Breach S E,Sohi Gurindar S. Efficient detection of all pointer and array access errors[J]. ACM SIGPLAN Notices, 1994,29 (6):290-301.

引证文献3

二级引证文献6

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部