期刊文献+

Demand-Driven Memory Leak Detection Based on Flow-and Context-Sensitive Pointer Analysis 被引量:2

Demand-Driven Memory Leak Detection Based on Flow-and Context-Sensitive Pointer Analysis
原文传递
导出
摘要 We present a demand-driven approach to memory leak detection algorithm based on flow- and context-sensitive pointer analysis. The detection algorithm firstly assumes the presence of a memory leak at some program point and then runs a backward analysis to see if this assumption can be disproved. Our algorithm computes the memory abstraction of programs based on points-to graph resulting from flow- and context-sensitive pointer analysis. We have implemented the algorithm in the SUIF2 compiler infrastructure and used the implementation to analyze a set of C benchmark programs. The experimental results show that the approach has better precision with satisfied scalability as expected. We present a demand-driven approach to memory leak detection algorithm based on flow- and context-sensitive pointer analysis. The detection algorithm firstly assumes the presence of a memory leak at some program point and then runs a backward analysis to see if this assumption can be disproved. Our algorithm computes the memory abstraction of programs based on points-to graph resulting from flow- and context-sensitive pointer analysis. We have implemented the algorithm in the SUIF2 compiler infrastructure and used the implementation to analyze a set of C benchmark programs. The experimental results show that the approach has better precision with satisfied scalability as expected.
出处 《Journal of Computer Science & Technology》 SCIE EI CSCD 2009年第2期347-356,共10页 计算机科学技术学报(英文版)
基金 supported by the National Natural Science Foundation of China under Grant Nos. 60725206, 60673118, and 90612009 the National High-Tech Research and Development 863 Program of China under Grant No. 2006AA01Z429 the National Basic Research 973 Program of China under Grant No. 2005CB321802 the Program for New Century Excellent Talents in University under Grant No.NCET-04-0996 the Hunan Natural Science Foundation under Grant No. 07JJ1011
关键词 flow-sensitive memory leak detection demand-driven static analysis flow-sensitive, memory leak detection, demand-driven, static analysis
  • 相关文献

参考文献24

  • 1Hastings R, Joyce B. Fast detection of memory leaks and access errors. In Proe. the Winter USENIX Conference, San Francisco, USA, Winter, 1992, pp.125-136.
  • 2Bush W R, Pincus J D, Sielaff D J. A static analyzer for finding dynamic programming errors. Software -- Practice and Experience, 2000, 30(7): 775-802.
  • 3Xie Y, Aiken A. Saturn: A scalable framework for error detection using Boolean satisfiability. ACM Trans. Program. Lang. Syst., 2007, 29(3): 16.
  • 4Evans D. Static detection of dynamic memory errors. In Proc. SIGPLAN Conference on Programming Language Design and Implementation (PLDI'96), Philadelphia, USA, May 21-24, 1996, pp.44-53.
  • 5Engler D R, Chen D Y, Chou A. Bugs as inconsistent behavior: A general approach to inferring errors in systems code. In Proc. Symposium on Operating Systems Principles, Chateau Lake Louise, Canada, Oct. 21-24, 2001, pp.57-72.
  • 6Hallem S, Chelf B, Xie Y, Engler D. A system and language for building system-specific, static analyses. In Proc. the ACM SIGPLAN 2002 Conference on Programming Language Design and Implementation (PLDI'02), New York, NY, USA, ACM Press, 2002, pp.69 82.
  • 7Orlovich M, Rugina R. Memory leak analysis by contradiction. In Proc. SAS, Seoul, Korea, August 29-31, 2006, pp.405-424.
  • 8Emami M, Ghiya R, Hendren L J. Context-sensitive interprocedural points-to analysis in the presence of function pointers. In Proe. SIGPLAN Conference on Programming Language Design and Implementation, Orlando, USA, June 20-24, 1994, pp.242-256.
  • 9Hind M, Burke M, Carini P, Choi J D. Interprocedural pointer alias analysis. ACM Transactions on Programming Languages and Systems, 1999, 21(4): 848-894.
  • 10Rugina R, Rinard M. Pointer analysis for multithreaded programs. In Proe. the ACM SIGPLAN 1999 Conference on Programming Language Design and Implementation (PLDI'99), New York, NY, USA, ACM Press, 1999, pp.77-90.

同被引文献3

引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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